Sumit Gupta
2008-Jun-27 00:11 UTC
[zfs-discuss] ''zfs list'' output showing incorrect mountpoint after boot -Z
I installed snv_92 with zfs root. Then took a snapshot of the root and clonned it. Now I am booting from the clone using the -Z option. The system boots fine from the clone but ''zfs list'' still shows that the ''/'' is mounted on the original mountpoint instead of the clone even though the output of ''mount'' shows that ''/'' is mounted on the clone. Here is the output. # zfs list NAME USED AVAIL REFER MOUNTPOINT rpool 22.1G 44.8G 63K /rpool rpool/ROOT 6.11G 44.8G 18K legacy rpool/ROOT/snv_92 6.10G 44.8G 6.09G / rpool/ROOT/snv_92 at fresh_install 5.55M - 6.09G - rpool/ROOT/snv_92.backup 8.00M 44.8G 6.10G legacy rpool/dump 8.00G 44.8G 8.00G - rpool/export 38K 44.8G 20K /export rpool/export/home 18K 44.8G 18K /export/home rpool/swap 8.00G 52.8G 2.55M - # mount / on rpool/ROOT/snv_92.backup read/write/setuid/devices/dev=3f50002 on Wed Dec 31 16:00:00 1969 snv_92 at fresh_install is the snapshot of the original installation on snv_92. snv_92.backup is the clone. You can see that the / is mounted on snv_92.backup but in zfs list output it still shows that ''/'' is mounted on snv_92. Is that a bug or did I misss a step ? Thanks Sumit This message posted from opensolaris.org
Mark J Musante
2008-Jun-27 00:38 UTC
[zfs-discuss] ''zfs list'' output showing incorrect mountpoint after boot -Z
On Jun 26, 2008, at 8:11 PM, Sumit Gupta wrote:> snv_92 at fresh_install is the snapshot of the original installation on > snv_92. snv_92.backup is the clone. You can see that the / is > mounted on snv_92.backup but in zfs list output it still shows that > ''/'' is mounted on snv_92. >It''s showing where it *would* mount, if it were mounted. It''s not mounted, however (type ''zfs mount'' to see a list of currently mounted datasets), so everything is OK. To see if a dataset will be automatically mounted at boot, look at the ''canmount'' property of the dataset. Only those datasets with a canmount set to ''on'' will be mounted. If the property is ''off'', then it will not be mounted. If it is set to ''noauto'', then it will only be mounted if it is the root dataset (or the /var dataset). Regards, markm