Steven Sim
2009-Mar-06 14:53 UTC
[zfs-discuss] ZFS snapshot successfully but zfs list -r does not list the snapshot
Gurus; I am using OpenSolaris 2008.11 snv_101b_rc2 X86 Prior to this I was using SXCE built 91 (or thereabout) On build 91, after the command #zfs snapshot -r myplace I could easily see the snapshot using ZFS list. But after install OpenSolaris 2008.11 snv 101b, I once again created a snapshot using zfs snapshot. root at sunlight:/root# zfs snapshot -r myplace at First root at sunlight:/root# echo $? 0 But subsequent attempts to use zfs list simply does not list the snapshot, only the original volumes and file systems. root at sunlight:/root# zfs list -r myplace NAME USED AVAIL REFER MOUNTPOINT myplace 1.06T 1.61T 28.4K /myplace myplace/Docs 3.23G 1.61T 3.23G /export/home/admin/Docs myplace/fedora 26.9K 1.61T 26.9K /export/home/admin/vbox/fedora myplace/home 17.9G 1.61T 17.9G /export/home myplace/projects 5.41G 1.61T 5.41G /export/home/admin/projects myplace/solaris 9.30G 1.61T 9.30G /export/home/admin/vbox/solaris myplace/solzone 1.58G 18.4G 1.58G /myplace/solzone myplace/windoze 26.9K 1.61T 26.9K /export/home/admin/vbox/windoze I can easily remove the snapshot using "#zfs destroy -r myplace at First" and this proves the snapshot was successfully created (besides the fact that the zfs snapshot command returned a zero exit code). root at sunlight:/root# root at sunlight:/root# zfs destroy -r myplace at First root at sunlight:/root# echo $? 0 Has there been a change in the interface? Warmest Regards Steven Sim
Mark J Musante
2009-Mar-06 14:58 UTC
[zfs-discuss] ZFS snapshot successfully but zfs list -r does not list the snapshot
Hi Steven, Try doing ''zfs list -t all''. This is a change that went in late last year to list only datasets unless snapshots were explicitly requested. On Fri, 6 Mar 2009, Steven Sim wrote:> Gurus; > > I am using OpenSolaris 2008.11 snv_101b_rc2 X86 > > Prior to this I was using SXCE built 91 (or thereabout) > > On build 91, after the command > > #zfs snapshot -r myplace > > I could easily see the snapshot using ZFS list. > > But after install OpenSolaris 2008.11 snv 101b, I once again created a > snapshot using zfs snapshot. > > root at sunlight:/root# zfs snapshot -r myplace at First > root at sunlight:/root# echo $? > 0 > > But subsequent attempts to use zfs list simply does not list the snapshot, > only the original volumes and file systems. > > root at sunlight:/root# zfs list -r myplace > NAME USED AVAIL REFER MOUNTPOINT > myplace 1.06T 1.61T 28.4K /myplace > myplace/Docs 3.23G 1.61T 3.23G /export/home/admin/Docs > myplace/fedora 26.9K 1.61T 26.9K /export/home/admin/vbox/fedora > myplace/home 17.9G 1.61T 17.9G /export/home > myplace/projects 5.41G 1.61T 5.41G /export/home/admin/projects > myplace/solaris 9.30G 1.61T 9.30G /export/home/admin/vbox/solaris > myplace/solzone 1.58G 18.4G 1.58G /myplace/solzone > myplace/windoze 26.9K 1.61T 26.9K /export/home/admin/vbox/windoze > > I can easily remove the snapshot using "#zfs destroy -r myplace at First" and > this proves the snapshot was successfully created (besides the fact that the > zfs snapshot command returned a zero exit code). > > root at sunlight:/root# > root at sunlight:/root# zfs destroy -r myplace at First > root at sunlight:/root# echo $? > 0 > > Has there been a change in the interface? > > Warmest Regards > Steven Sim > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >Regards, markm
Darren J Moffat
2009-Mar-06 15:04 UTC
[zfs-discuss] ZFS snapshot successfully but zfs list -r does not list the snapshot
Steven Sim wrote:> Gurus; > > I am using OpenSolaris 2008.11 snv_101b_rc2 X86 > > Prior to this I was using SXCE built 91 (or thereabout) > > On build 91, after the command > > #zfs snapshot -r myplace > > I could easily see the snapshot using ZFS list. > > But after install OpenSolaris 2008.11 snv 101b, I once again created a > snapshot using zfs snapshot. > > root at sunlight:/root# zfs snapshot -r myplace at First > root at sunlight:/root# echo $? > 0 > > But subsequent attempts to use zfs list simply does not list the > snapshot, only the original volumes and file systems.[snip]> Has there been a change in the interface?Yes as discussed on this list previously. Snapshots are now not in the default zfs list output, but can be requested with -t all or -t snapshot. Or you can change the pool level listsnapshots property to revert to the old behaviour. -- Darren J Moffat
Richard Morris - Sun Microsystems - Burlington United States
2009-Mar-06 15:31 UTC
[zfs-discuss] ZFS snapshot successfully but zfs list -r does not list the snapshot
On 03/06/09 09:53, Steven Sim wrote:> Gurus; > > I am using OpenSolaris 2008.11 snv_101b_rc2 X86 > > Prior to this I was using SXCE built 91 (or thereabout) > > On build 91, after the command > > #zfs snapshot -r myplace > > I could easily see the snapshot using ZFS list. > > But after install OpenSolaris 2008.11 snv 101b, I once again created a > snapshot using zfs snapshot. > > root at sunlight:/root# zfs snapshot -r myplace at First > root at sunlight:/root# echo $? > 0 > > But subsequent attempts to use zfs list simply does not list the > snapshot, only the original volumes and file systems. > > root at sunlight:/root# zfs list -r myplace > NAME USED AVAIL REFER MOUNTPOINT > myplace 1.06T 1.61T 28.4K /myplace > myplace/Docs 3.23G 1.61T 3.23G /export/home/admin/Docs > myplace/fedora 26.9K 1.61T 26.9K /export/home/admin/vbox/fedora > myplace/home 17.9G 1.61T 17.9G /export/home > myplace/projects 5.41G 1.61T 5.41G /export/home/admin/projects > myplace/solaris 9.30G 1.61T 9.30G /export/home/admin/vbox/solaris > myplace/solzone 1.58G 18.4G 1.58G /myplace/solzone > myplace/windoze 26.9K 1.61T 26.9K /export/home/admin/vbox/windoze > > I can easily remove the snapshot using "#zfs destroy -r myplace at First" > and this proves the snapshot was successfully created (besides the > fact that the zfs snapshot command returned a zero exit code). > > root at sunlight:/root# > root at sunlight:/root# zfs destroy -r myplace at First > root at sunlight:/root# echo $? > 0 > > Has there been a change in the interface?Since snv build 99, zfs list no longer displays ZFS snapshots by default. Instead, the zfs list command will display only filesystems and volumes. On systems with large number of snapshots, the snapshot info can flood the output, making the default zfs list command less useful in the case where the user is not interested in information about snapshots. A new pool level property called "listsnaps" permits control of the zfs list output for that pool. The value for the new property can be set at pool creation time and import time, and can be changed later with the "zpool set" command. The -t option to the zfs list command takes precedence over the value of the "listsnaps" property so "zfs list -t snapshot" or "zfs list -t all" will display all snapshots including those associated with pools where the "listsnaps" property is off. -- Rich