ZFS mount point - problem


 
Thread Tools Search this Thread
Operating Systems Solaris ZFS mount point - problem
# 1  
Old 06-26-2009
Error ZFS mount point - problem

Hi,
We are using ZFS to take the sanpshots in our solaris 10 servers. I have the problem when using ZFS mount options.

The solaris server we are used as,

SunOS emch-mp89-sunfire 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440Sys
tem = SunOS

Steps:
1. I have created the zfs pool named as lmspool
2. Then created the file system lmsfs
3. Now I want to set the mountpoint for this ZFS file system (lmsfs) as "/opt/database" directory (which has some .sh files).
4. Then need to take the snapshot of the lmsfs filesystem.
5. For the mountpoint set, I tried two ways.
1. zfs set mountpoint=/opt/database lmspool/lmsfs
it returns the message "cannot mount '/opt/database/': directory is not empty
property may be set but unable to remount filesystem".
If I run the same command in second time, the mount point set properly and then I taken the snapshot of the ZFS filesystem (lmsfs). After done some modification in the database directory (delete some files), then I rollback the snapshot but the original database directory was not recovered. :-(

2. In second way, I used the "legacy" option for mounting.
# zfs set mountpoint=legacy lmspool/lmsfs
# mount -F zfs lmspool/lmsfs /opt/database
After run this command, I cant able to see the files of the database directory inside the /opt. So I cant able to modify anything inside the /opt/database directory.

Please someone suggest me the solution for this problem. or anyother ways to take the ZFS snapshot with mounting point in UFS file system?..

Thanks,
Muthukrishnan G
# 2  
Old 06-26-2009
You tried to create a filesystem to be mounted on a directory that was already having files on it, and possibly open files. You can't do that. You first create a filesystem then you use it, not the other way around.
# 3  
Old 06-30-2009
Quote:
Originally Posted by jlliagre
You tried to create a filesystem to be mounted on a directory that was already having files on it, and possibly open files. You can't do that. You first create a filesystem then you use it, not the other way around.
Hi jlliagre,
Thanks for your reply. I can understand that we can't mount the ZFS filesystem to the directory, already having files.

I want to take the snapshot of the solaris server (which has installed my web application product). The installed directories are present inside /opt , /var , directories. Thats why I tried ZFS snap shot with the mount point of that folders.

Please suggest me any other way to take the snap shot of those directories and rollback. Smilie
Thanks,
Muthukrishnan G
# 4  
Old 06-30-2009
These directories aren't on ZFS but on UFS. You cannot do a ZFS snapshot of a non ZFS filesystem. You might want to use fssnap instead but fssnap isn't designed to allow rollback.
Alternatively, you can move the directory contents to ZFS.

Last edited by jlliagre; 06-30-2009 at 04:04 AM..
# 5  
Old 06-30-2009
ok. is it possible to boot the solaris server in ZFS file system ?. because our product supports ZFS file system too.. so that I can install our product in ZFS file system, and take the snap shot of that.

Please give me suggestion how to boot the server in ZFS file system ? .

Need to remove all mount point present already in UFS,

/opt /var ?? and create new root pool in ZFS ?.. or ..

Thanks,.
Muthukrishnan G
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies

2. AIX

How to change the mount point of LV?

I have situation where my disk upon reboot, has its mount point as # LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write VG STATE: active/complete LV STATE: closed/syncd TYPE: jfs2 WRITE VERIFY: off MAX LPs: 512 PP SIZE: 512... (1 Reply)
Discussion started by: mrmurdock
1 Replies

3. Red Hat

Regarding NFS mount point

Dear All, We have two different mount points in Linux NFS one is 15 TB and another one is 15 TB. Can we club both of the two mount points and club in to a single volume in Linux. As we need to restore Database in that single volume. Kindly help us on this. Regards , rj (10 Replies)
Discussion started by: jegaraman
10 Replies

4. Solaris

what is the use of setting canmount=noauto in zfs mount point?

while using oracle solaris live upgrade it is mentioned to set few mountpoints like that.. what is the point doing that. (1 Reply)
Discussion started by: chidori
1 Replies

5. Red Hat

NFS mount point problem

Hi Forum I am trying to mount /NFS as nfs mountpoint on two servers ( A & B ). After mounting the nfs filesystem, both of them behave normally for around 10 mins and after that the NFS file handle become stale and the mountpoints dont respond. While executing df -kh, the output hang out and the... (15 Replies)
Discussion started by: rajdasuwal
15 Replies

6. Solaris

Size of Mount Point

Hi, On Solaris 5.10, I have a following mount point: /dev/dsk/emcpower0a 492G 369G 118G 76% /u02 In /u02, from the du -h command, I can see that only 110G is used by couple of directories. I am wondering where the rest of 259G has gone? Any ideas please? How can I check... (17 Replies)
Discussion started by: fahdmirza
17 Replies

7. AIX

Creating a new mount point

Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you. - David (7 Replies)
Discussion started by: dkranes
7 Replies

8. UNIX for Dummies Questions & Answers

concept of mount point

Hi All I Know it is a really basic and stupid question perhaps...But I am going bonkers.. I have following valid paths in my unix system: 1. /opt/cdedev/informatica/InfSrv/app/bin 2. /vikas/cdedev/app Both refer to the same physical location. So if I created one file 'test' in first... (3 Replies)
Discussion started by: Vikas Sood
3 Replies

9. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies

10. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies
Login or Register to Ask a Question