Jump to content

Zettabyte File System: Difference between revisions

From sexy wiki
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
<code>zpool status</code><br>
<code>zpool status</code><br>


== See useful things =
== See useful things ==
<code>zpool status</code><br>
<code>zpool status [pool]</code><br>
<code>zfs list -o name,used,avail,refer,mountpoint,compressratio,used,usedbysnapshots,usedbychildren,usedbydataset</code>
<code>zfs list -o name,used,avail,refer,mountpoint,compressratio,used,usedbysnapshots,usedbychildren,usedbydataset</code>
== Destroy dataset ==
== Destroy dataset ==
=== Checks ===<br>
=== Checks ===<br>
Line 24: Line 25:
<code>zfs destroy -r mainframe/iocage</code><br>
<code>zfs destroy -r mainframe/iocage</code><br>


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

Latest revision as of 00:53, 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 [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