Solaris Express Community Edition, build 69: The zpool history command has been enhanced to provide the following new features:
ZFS file system event information is displayed. For example:
# zpool history History for 'rpool': 2009-08-26.16:49:07 zpool create -f -o failmode=continue -R /a -m legacy -o cachefile= /tmp/root/etc/zfs/zpool.cache rpool c1t1d0s0 2009-08-26.16:49:08 zfs set canmount=noauto rpool 2009-08-26.16:49:08 zfs set mountpoint=/rpool rpool 2009-08-26.16:49:09 zfs create -o mountpoint=legacy rpool/ROOT 2009-08-26.16:49:10 zfs create -b 8192 -V 2048m rpool/swap 2009-08-26.16:49:11 zfs create -b 131072 -V 1024m rpool/dump 2009-08-26.16:49:14 zfs create -o canmount=noauto rpool/ROOT/zfs1009BE 2009-08-26.16:49:15 zpool set bootfs=rpool/ROOT/zfs1009BE rpool 2009-08-26.16:49:15 zfs set mountpoint=/ rpool/ROOT/zfs1009BE 2009-08-26.16:49:16 zfs set canmount=on rpool 2009-08-26.16:49:17 zfs create -o mountpoint=/export rpool/export 2009-08-26.16:49:18 zfs create rpool/export/home 2009-08-28.08:17:59 zpool attach rpool c1t1d0s0 c1t0d0s0 |
A -l option for displaying a long format that includes the user name, the hostname, and the zone in which the operation was performed. For example:
# zpool history -l rpool History for 'rpool': 2009-08-26.16:49:07 zpool create -f -o failmode=continue -R /a -m legacy -o cachefile= /tmp/root/etc/zfs/zpool.cache rpool c1t1d0s0 [user root on neo:global] 2009-08-26.16:49:08 zfs set canmount=noauto rpool [user root on neo:global] 2009-08-26.16:49:08 zfs set mountpoint=/rpool rpool [user root on neo:global] 2009-08-26.16:49:09 zfs create -o mountpoint=legacy rpool/ROOT [user root on neo:global] 2009-08-26.16:49:10 zfs create -b 8192 -V 2048m rpool/swap [user root on neo:global] 2009-08-26.16:49:11 zfs create -b 131072 -V 1024m rpool/dump [user root on neo:global] 2009-08-26.16:49:14 zfs create -o canmount=noauto rpool/ROOT/zfs1009BE [user root on neo:global] 2009-08-26.16:49:15 zpool set bootfs=rpool/ROOT/zfs1009BE rpool [user root on neo:global] 2009-08-26.16:49:15 zfs set mountpoint=/ rpool/ROOT/zfs1009BE [user root on neo:global] 2009-08-26.16:49:16 zfs set canmount=on rpool [user root on neo:global] 2009-08-26.16:49:17 zfs create -o mountpoint=/export rpool/export [user root on neo:global] 2009-08-26.16:49:18 zfs create rpool/export/home [user root on neo:global] 2009-08-28.08:17:59 zpool attach rpool c1t1d0s0 c1t0d0s0 [user root on neo:global] |
A -i option for displaying internal event information that can be used for diagnostic purposes. For example:
# zpool history -i rpool History for 'rpool': 2009-08-26.16:49:07 zpool create -f -o failmode=continue -R /a -m legacy -o cachefile= /tmp/root/etc/zfs/zpool.cache rpool c1t1d0s0 2009-08-26.16:49:07 [internal property set txg:6] mountpoint=/ dataset = 16 2009-08-26.16:49:07 [internal property set txg:7] mountpoint=legacy dataset = 16 2009-08-26.16:49:08 [internal property set txg:8] canmount=2 dataset = 16 2009-08-26.16:49:08 zfs set canmount=noauto rpool 2009-08-26.16:49:08 [internal property set txg:10] mountpoint=/rpool dataset = 16 2009-08-26.16:49:08 zfs set mountpoint=/rpool rpool 2009-08-26.16:49:09 [internal create txg:12] dataset = 31 2009-08-26.16:49:09 [internal property set txg:13] mountpoint=legacy dataset = 31 2009-08-26.16:49:09 zfs create -o mountpoint=legacy rpool/ROOT 2009-08-26.16:49:09 [internal create txg:15] dataset = 37 2009-08-26.16:49:10 [internal property set txg:16] refreservation=2147483648 dataset = 37 2009-08-26.16:49:10 [internal refreservation set txg:16] 2147483648 dataset = 37 2009-08-26.16:49:10 zfs create -b 8192 -V 2048m rpool/swap 2009-08-26.16:49:10 [internal create txg:18] dataset = 43 2009-08-26.16:49:10 [internal property set txg:19] refreservation=1073741824 dataset = 43 2009-08-26.16:49:10 [internal refreservation set txg:19] 1073741824 dataset = 43 . . . |
For more information about using the zpool history command, see Identifying Problems in ZFS.