Observe ZFS
zpool status
zfs list
zfs get compression,mountpoint,used,available- zpool status reports pool health.
- zfs list/get reports dataset state and properties.
Work with pools, datasets, properties, snapshots and rollback while understanding operational safety.
A ZFS pool aggregates storage; datasets are filesystems or volumes created within the pool. Properties such as compression, quota and mountpoint are inherited unless overridden.
Snapshots are lightweight references to dataset state. They support comparison, cloning and rollback workflows, but rollback can discard newer changes and must be deliberate.
zpool status
zfs list
zfs get compression,mountpoint,used,availableGoal: Create an isolated lab pool on the verified disposable disk, prove snapshot preservation and rollback, then cleanly remove the lab state.
# Replace only after positively identifying the disposable second disk:
LABDISK=vtbd1
gpart show "$LABDISK" || true
zpool status
zpool list academypool 2>/dev/null || true
gpart create -s GPT "$LABDISK"
gpart add -t freebsd-zfs -a 1M -l academyzfs "$LABDISK"
gpart show "$LABDISK"
ls -l /dev/gpt/academyzfszpool create academypool /dev/gpt/academyzfs
zpool status academypool
zfs create academypool/academy
zfs set compression=lz4 academypool/academy
zfs get compression,mountpoint academypool/academyecho before > /academypool/academy/state.txt
cat /academypool/academy/state.txt
zfs snapshot academypool/academy@baseline
zfs list -t snapshotecho after > /academypool/academy/state.txt
printf "live: "; cat /academypool/academy/state.txt
printf "snapshot: "; cat /academypool/academy/.zfs/snapshot/baseline/state.txtRollback discards changes made after the selected snapshot. Confirm you are operating only on the disposable Academy dataset.
zfs rollback academypool/academy@baseline
cat /academypool/academy/state.txtzfs destroy academypool/academy@baseline
zfs destroy academypool/academy
zpool destroy academypool
gpart destroy -F "$LABDISK"
zpool list
gpart show "$LABDISK" || trueSnapshots are useful recovery points, but rollback is destructive to newer state and snapshots are not independent backups.
Open each answer only after you have tried to answer the question yourself.
A pool provides storage capacity; datasets are manageable filesystems/volumes within that pool.
They let administrators apply storage behavior such as compression, quotas and mountpoints declaratively.
It can discard changes made after the target snapshot.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.