Skip to content
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

Note that keys must be loaded if encrypted datasets exist for top-level vdevs to be removed #10948

Closed
wants to merge 1 commit into from

Conversation

geudrik
Copy link

@geudrik geudrik commented Sep 18, 2020

This change is relation to #10939

Motivation and Context

The error returned when keys aren't loaded when a top-level vdev is attempted to be removed isn't descriptive, and the man pages make no note that keys need to be loaded. This MR obviously doesn't resolve the error message, but at least the man pages will make a note that keys need to be loaded

Description

Just a quick man page addition to ensure that it's clear that keys need to be loaded for encrypted datasets to be able to remove a top-level vdev

How Has This Been Tested?

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

This change is relation to openzfs#10939
@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Sep 18, 2020
@behlendorf behlendorf requested a review from ahrens September 21, 2020 17:57
man/man8/zpool-remove.8 Show resolved Hide resolved
@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) Status: Revision Needed Changes are required for the PR to be accepted and removed Status: Code Review Needed Ready for review and testing labels Sep 22, 2020
@behlendorf behlendorf removed the Status: Revision Needed Changes are required for the PR to be accepted label Sep 28, 2020
behlendorf pushed a commit that referenced this pull request Oct 1, 2020
The error returned by `zpool remove` when the encryption keys aren't
loaded isn't very helpful.  Furthermore, the man pages make no
mention that the keys need to be loaded. This change doesn't resolve
the error message but it does update the man page to mention this
requirement.

Authored-by: grodik <pat@litke.dev>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10939
Closes #10948
jsai20 pushed a commit to jsai20/zfs that referenced this pull request Mar 30, 2021
The error returned by `zpool remove` when the encryption keys aren't
loaded isn't very helpful.  Furthermore, the man pages make no
mention that the keys need to be loaded. This change doesn't resolve
the error message but it does update the man page to mention this
requirement.

Authored-by: grodik <pat@litke.dev>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#10939
Closes openzfs#10948
sempervictus pushed a commit to sempervictus/zfs that referenced this pull request May 31, 2021
The error returned by `zpool remove` when the encryption keys aren't
loaded isn't very helpful.  Furthermore, the man pages make no
mention that the keys need to be loaded. This change doesn't resolve
the error message but it does update the man page to mention this
requirement.

Authored-by: grodik <pat@litke.dev>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#10939
Closes openzfs#10948
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants