### Zettabyte file system(ZFS)###
features:
  1. 256 quadrillion zettabytes( Terabytes -petabytes -
exabytes -zettabytes(1024 exabytes)
  2. Raid-0 &r RAID -Z (RAID-5 with enhancements) (2-
required virtual devices)
 3. snapshots -read-only copies of file systems or
volumes
 4. creates volumes
 5. uses storage pools to manage storage -aggregates
virtual devices
 6. file systems attached to pools grow dynamically as
storage is added
 7. file systems may span mutltiple physical disks
 8. ZFS os tramcactional
 9. pools & file systems are auto-mounted. No need to
maintain /etc/vsftab
 10.supports file system hierachies: /pool/{home(50GB),
var(10GB).etc}
 11. supports reserveration of storage: /pool{home
(10G),var}
 12. provides a secure web-based management tool- https://localhosts:6789/zfs
###ZFS -CLI###
zpool list -list know pools
zpool create pool_name (alphanumeric,_,-,:,.)
pool name constrains (do not use these names for your
pool names);
1. mirror
2.raidz
zpool create pool_name1, device_name2,
device_name3,etc.
zpool create pool1 c0t1d0|dev/dsk/c0t1d0
ZFS pool statuses:
 1.Online
 2. Degraded
 3. Faulted
 4. Offline
 5. Unvailable
 zfs list -returns ZFS dataset info.
 zfs mount -returns pools and mount points
zpools status -returns virtual devices that constitute pools
Notes: ZFS requires a minimum of 128MB virtual device to
create a pool
zpool destroy pool1 -destroys pool and associated file
systems
### create file systems within pool1###
zfs create pool1/home -creates file system name 'home'
in pool1
Note: default action of 'zfs create pool1/home' assigns all
storage available to 'pool1', to 'pool1/home'
###set quota on existing file system###
zfs set quota=10G pool1/home
### create user-based file system beneath
pool1/home###
zfs create pool1/home/unixcbt
Note: zfs inherits properties from immediate ancestor
zfs get -r compression pool1 -returns compression
property for file systems associated with 'pool1'
###rename file system###
zfs rename pool1/home/unixbt pool1/home/unixcbt2
### Extending dynamically, pool storage###
zpool add pool1 c0t2d0
###zfs redundancy/replication###
 1.Mirroring -Raid -1
 2. Raid-5 -Raid-Z
Virtual Devices:
 1. c0t1d0 -36GB
 2. c0t2d0 -36GB
Note: redundancy/Replication is associated directly with
the pool
zpool create poolmirror1 mirror c0t1d0 c0t2d0
###ZFS snapshots###
features:
 1: read-only copies of volume or file systems
 2. use no additional space, initially
zfs list -t snapshot -returns available snapshots
zfs snapshot poolraidz1/home@homesnap1
zfs rename poolraidz1/home@homesnap3