Zettabyte File System: Difference between revisions
Appearance
| Line 24: | Line 24: | ||
<code>zfs destroy -r mainframe/iocage</code><br> | <code>zfs destroy -r mainframe/iocage</code><br> | ||
== Expand | == Expand zpool == | ||
<code>for i in /sys/class/scsi_device/*/device/rescan; do echo "- - -" > $i; done</code> Scan current SCSI devices for changes</br> | <code>for i in /sys/class/scsi_device/*/device/rescan; do echo "- - -" > $i; done</code> Scan current SCSI devices for changes</br> | ||
<code>parted /dev/sdb rm 9</code> 8MB partition at the end of the disk may be deleted (perhaps an artefact from the Solaris days?)</br> | <code>parted /dev/sdb rm 9</code> 8MB partition at the end of the disk may be deleted (perhaps an artefact from the Solaris days?)</br> | ||
<code>growpart /dev/sdb 1</code> Increase ZFS partition to maximum size</br> | <code>growpart /dev/sdb 1</code> Increase ZFS partition to maximum size</br> | ||
<code>zpool online -e ZPOOLNAME /dev/sdb</code> Expand the pool</br> | <code>zpool online -e ZPOOLNAME /dev/sdb</code> Expand the pool</br> | ||
Revision as of 00:51, 29 August 2026
zfs
is best.
Migrate pool
system1
zpool export mainframe
system2
zpool import
zpool import mainframe
zpool list
zpool status
See useful things
zpool status
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
for i in /sys/class/scsi_device/*/device/rescan; do echo "- - -" > $i; done Scan current SCSI devices for changes
parted /dev/sdb rm 9 8MB partition at the end of the disk may be deleted (perhaps an artefact from the Solaris days?)
growpart /dev/sdb 1 Increase ZFS partition to maximum size
zpool online -e ZPOOLNAME /dev/sdb Expand the pool