I have several filesystems created from the pool; and some mountpoints are inside the others, e.g.: # zfs list NAME USED AVAIL REFER MOUNTPOINT nfsv4pool 15.5M 33.5G 98.5K /nfsv4pool nfsv4pool/KRB5_FS 1.87M 33.5G 1.87M /export/test/KRB5_FS nfsv4pool/NOSPC_FS 3.01M 0 3.01M /export/test/NoSPC_FS nfsv4pool/NOTSHARE_FS 105K 33.5G 105K /export/test/NotShare_FS nfsv4pool/PUBLICFS 1.87M 33.5G 1.87M /export/test/PublicFS nfsv4pool/ROFS 105K 33.5G 105K /export/test/RoFS nfsv4pool/ROOTFS 105K 33.5G 105K /export/test/RootFS nfsv4pool/SRVSP_D2 100K 33.5G 100K /export/test/SRVsp_FS/hide/SRVsp_d2 nfsv4pool/SRVSP_D3 98.5K 33.5G 98.5K /export/test/SRVsp_FS/hide/SRVsp_d2/hide2/SRVsp_d3 nfsv4pool/SRVSP_FS 1.88M 33.5G 1.88M /export/test/SRVsp_FS nfsv4pool/TEST 2.92M 33.5G 2.92M /export/test # When the system reboot, it failed to re-mount all the filesystems: cannot mount ''/export/test/SRVsp_FS'': directory is not empty use legacy mountpoint to allow this behavior, or use the -O flag cannot mount ''/export/test'': directory is not empty use legacy mountpoint to allow this behavior, or use the -O flag svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a failed: exit status 1 Nov 26 12:25:32 svc.startd[100004]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95. [ system/filesystem/local:default failed fatally (see ''svcs -x'' for details) ] Then after I umounting all and removing the mountpoints under those filesystems, and remount them in order, I can "zfs mount -a" again. # zfs umount -a # rm -fr /export/test/SRVsp_FS # rm -fr /export/test # zfs mount nfsv4pool <== mount this first # zfs mount nfsv4pool/TEST <== and following the order # zfs mount nfsv4pool/SRVSP_FS # zfs mount -a # echo $? 0 # So, is there a way to tell "zfs mount -a" to mount the filesystems in certain order, to make sure reboot remount them correctly? -- Thanks, Helen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20051126/9f7caaed/attachment.html>
Eric Schrock
2005-Nov-27 01:16 UTC
[zfs-discuss] how to get ''zfs mount -a'' in some order?
If you use ZFS filesystems as conainers for other filesystems, it will work as advertised. In this case, you have an arbitrary ZFS filesystem (nfsv4pool/TEST) acting as a parent filesystem (in the filesystem namespace, not ZFS) for others, which is not currently supported. See: 6266604 Layered ZFS mounts can be confusing You are better off (for various other reasons) setting up ''nfsv4pool/test'', set its mountpoint to ''/export/test'', and then create children (i.e. ''nfsv4pool/test/RoFS'') and have them inherit the mountpoint. - Eric On Sat, Nov 26, 2005 at 04:23:25PM -0800, Helen Chao wrote:> I have several filesystems created from the pool; and some > mountpoints are inside the others, e.g.: > > # zfs list > NAME USED AVAIL REFER MOUNTPOINT > nfsv4pool 15.5M 33.5G 98.5K /nfsv4pool > nfsv4pool/KRB5_FS 1.87M 33.5G 1.87M /export/test/KRB5_FS > nfsv4pool/NOSPC_FS 3.01M 0 3.01M /export/test/NoSPC_FS > nfsv4pool/NOTSHARE_FS 105K 33.5G 105K /export/test/NotShare_FS > nfsv4pool/PUBLICFS 1.87M 33.5G 1.87M /export/test/PublicFS > nfsv4pool/ROFS 105K 33.5G 105K /export/test/RoFS > nfsv4pool/ROOTFS 105K 33.5G 105K /export/test/RootFS > nfsv4pool/SRVSP_D2 100K 33.5G 100K > /export/test/SRVsp_FS/hide/SRVsp_d2 > nfsv4pool/SRVSP_D3 98.5K 33.5G 98.5K > /export/test/SRVsp_FS/hide/SRVsp_d2/hide2/SRVsp_d3 > nfsv4pool/SRVSP_FS 1.88M 33.5G 1.88M /export/test/SRVsp_FS > nfsv4pool/TEST 2.92M 33.5G 2.92M /export/test > # > > > When the system reboot, it failed to re-mount all the filesystems: > > cannot mount ''/export/test/SRVsp_FS'': directory is not empty > use legacy mountpoint to allow this behavior, or use the -O flag > cannot mount ''/export/test'': directory is not empty > use legacy mountpoint to allow this behavior, or use the -O flag > svc:/system/filesystem/local:default: WARNING: /usr/sbin/zfs mount -a > failed: exit status 1 > Nov 26 12:25:32 svc.startd[100004]: svc:/system/filesystem/local:default: > Method "/lib/svc/method/fs-local" failed with exit status 95. > [ system/filesystem/local:default failed fatally (see ''svcs -x'' for > details) ] > > > Then after I umounting all and removing the mountpoints under those > filesystems, and remount them in order, I can "zfs mount -a" again. > > # zfs umount -a > # rm -fr /export/test/SRVsp_FS > # rm -fr /export/test > # zfs mount nfsv4pool <== mount this first > # zfs mount nfsv4pool/TEST <== and following the order > # zfs mount nfsv4pool/SRVSP_FS > # zfs mount -a > # echo $? > 0 > # > > > So, is there a way to tell "zfs mount -a" to mount the filesystems > in certain order, to make sure reboot remount them correctly? > > > -- > > Thanks, > Helen >> _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://opensolaris.org/mailman/listinfo/zfs-discuss-- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock