zfs:pools:expand_a_zfs_pool
This is an old revision of the document!
Table of Contents
ZFS - Pools - Expand a ZFS Pool
zpool add - This adds a vdev to a pool. This generally results in more storage space.
zpool attach - This attaches a device to a vdev in the pool. This generally results in more redundancy.
Adding vdevs
Adding a RAID Z1 vdev to a pool
zpool add testpool raidz1 ada4 ada5 ada6
Adding a mirrored vdev to a pool:
zpool add testpool mirror ada4 ada5 ada6
zpool add otherpool ada4 # add disk to pool
NOTE: This will increase capacity.
Attaching disks
A Disk can be attached.
zpool attach testpool ada1 ada4
NOTE: This will add ada4 to whichever vdev has ada1.
- This results in no capacity increase.
Detaching Disks
A disk can also be detached:
zpool detach testpool ada4
zfs/pools/expand_a_zfs_pool.1634160904.txt.gz · Last modified: 2021/10/13 21:35 by peter