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.
r...@sunlight:/root# zfs snapshot -r mypl...@first
r...@sunlight:/root# echo $?
0
But subsequent attempts to use zfs list simply does not list the
snapshot, only the original volumes and file systems.
r...@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 mypl...@first"
and this proves the snapshot was successfully created (besides the
fact that the zfs snapshot command returned a zero exit code).
r...@sunlight:/root#
r...@sunlight:/root# zfs destroy -r mypl...@first
r...@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
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss