Jump to content

Zettabyte File System

From sexy wiki
Revision as of 00:53, 29 August 2026 by Xbl (talk | contribs) (→See useful things)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

zfs

is best.

Migrate pool

system1

zpool export mainframe

system2

zpool import
zpool import mainframe
zpool list
zpool status

See useful things

zpool status [pool]
zfs list -o name,used,avail,refer,mountpoint,compressratio,used,usedbysnapshots,usedbychildren,usedbydataset

Destroy dataset

=== Checks ===
Mounted?
zfs get mounted mainframe/iocage
Snapshots?
zfs list -t snapshot mainframe/iocage
Destroy:
zfs destroy -r mainframe/iocage

Expand zpool

Scan current SCSI devices for changes
for i in /sys/class/scsi_device/*/device/rescan; do echo "- - -" > $i; done
8MB partition at the end of the disk may be deleted (perhaps an artefact from the Solaris days?)
parted /dev/sdb rm 9
Increase ZFS partition to maximum size
growpart /dev/sdb 1
Expand the pool
zpool online -e ZPOOLNAME /dev/sdb