ZPOOL-ADD(8) | System Manager's Manual | ZPOOL-ADD(8) |
zpool-add
— add
vdevs to ZFS storage pool
zpool |
add [-fgLnP ]
[--allow-in-use
--allow-replication-mismatch
--allow-ashift-mismatch ]
[-o
property=value]
pool vdev… |
Adds the specified virtual devices to the given pool. The
vdev specification is described in the
Virtual
Devices section of
zpoolconcepts(7). The behavior of
the -f
option, and the device checks performed are
described in the zpool
create
subcommand.
-f
-g
-L
-n
-P
-L
flag.-o
property=value--allow-ashift-mismatch
--allow-in-use
--allow-replication-mismatch
The following command adds two mirrored disks to the pool tank, assuming the pool is already made up of two-way mirrors. The additional space is immediately available to any datasets within the pool.
# zpool
add
tank
mirror
sda sdb
The following command adds two disks for use as cache devices to a ZFS storage pool:
# zpool
add
pool
cache
sdc sdd
Once added, the cache devices gradually fill with content from
main memory. Depending on the size of your cache devices, it could take over
an hour for them to fill. Capacity and reads can be monitored using the
iostat
subcommand as follows:
# zpool
iostat
-v
pool
5
zpool-attach(8), zpool-import(8), zpool-initialize(8), zpool-online(8), zpool-remove(8)
March 8, 2024 | OpenZFS |