mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-04-06 17:49:11 +03:00
Clarify 'zpool remove' restrictions
Update zpool(8) to clarify what type of vdevs may be safely removed and that the existence of any top-level raidz device which is part of the primary pool will prevent device removal. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Signed-off-by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7880 Closes #7893
This commit is contained in:
parent
5140a58f3b
commit
2ced3cf0b2
@ -1926,8 +1926,10 @@ result in partially resilvered devices unless a second scrub is performed.
|
|||||||
.Ar pool Ar device Ns ...
|
.Ar pool Ar device Ns ...
|
||||||
.Xc
|
.Xc
|
||||||
Removes the specified device from the pool.
|
Removes the specified device from the pool.
|
||||||
This command currently only supports removing hot spares, cache, log
|
This command supports removing hot spare, cache, log, and both mirrored and
|
||||||
devices and mirrored top-level vdevs (mirror of leaf devices); but not raidz.
|
non-redundant primary top-level vdevs, including dedup and special vdevs.
|
||||||
|
When the primary pool storage includes a top-level raidz vdev only hot spare,
|
||||||
|
cache, and log devices can be removed.
|
||||||
.sp
|
.sp
|
||||||
Removing a top-level vdev reduces the total amount of space in the storage pool.
|
Removing a top-level vdev reduces the total amount of space in the storage pool.
|
||||||
The specified device will be evacuated by copying all allocated space from it to
|
The specified device will be evacuated by copying all allocated space from it to
|
||||||
@ -1938,8 +1940,10 @@ command initiates the removal and returns, while the evacuation continues in
|
|||||||
the background.
|
the background.
|
||||||
The removal progress can be monitored with
|
The removal progress can be monitored with
|
||||||
.Nm zpool Cm status.
|
.Nm zpool Cm status.
|
||||||
This feature must be enabled to be used, see
|
The
|
||||||
.Xr zpool-features 5
|
.Sy device_removal
|
||||||
|
feature flag must be enabled to remove a top-level vdev, see
|
||||||
|
.Xr zpool-features 5 .
|
||||||
.Pp
|
.Pp
|
||||||
A mirrored top-level device (log or data) can be removed by specifying the top-level mirror for the
|
A mirrored top-level device (log or data) can be removed by specifying the top-level mirror for the
|
||||||
same.
|
same.
|
||||||
|
Loading…
Reference in New Issue
Block a user