-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify 'zpool remove' restrictions #7893
Conversation
While I don't condone non-redundant pools, disks in a pure RAID-0 configuration can also be removed. |
7cec0d3
to
ba1de51
Compare
Good point, refreshed and slightly reworded.
|
As long as this is being clarified, I think it might be a good idea to refer to the
Even some more additional text might be prudent to make it clear that removing a top-level vdev has compatibility ramifications as opposed to removing a log or cache device. |
LGTM, and @dweeezil's comment about restrictions is probably valid as well. |
ba1de51
to
4fd4424
Compare
Refreshed to include @dweeezil's additions. |
man/man8/zpool.8
Outdated
This command currently only supports removing hot spares, cache, log | ||
devices and mirrored top-level vdevs (mirror of leaf devices); but not raidz. | ||
This command supports removing hot spare, cache, log, and both mirrored and | ||
non-redundant primary top-level vdevs, this includes dedup and special vdevs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would flow better with "this includes" -> "including"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that flows a little better.
man/man8/zpool.8
Outdated
This command supports removing hot spare, cache, log, and both mirrored and | ||
non-redundant primary top-level vdevs, this includes 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this, but IMO it would be more easily understood to say When the primary pool storage includes a raidz vdev, other top-level vdevs may not be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I considered a wording very similar, but decided against it in favor of this clunkier more precise wording. My concern was that it implied spare, cache, and log devices, which look like top-level vdevs in the zpool status
output, could not be removed. But I'd love a better way to phase this.
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. Signed-off-by: Tim Chase <tim@chase2k.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
4fd4424
to
afcccf4
Compare
Motivation and Context
Make the documentation clear about the restrictions of device removal. #7880
Description
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.
How Has This Been Tested?
Proofread.
Types of changes
Checklist:
Signed-off-by
.