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

lvm: Use pvremove when removing PVs after deleting a VG #1237

Merged

Conversation

vojtechtrefny
Copy link
Member

udisks_daemon_util_lvm2_wipe_block is a huge hammer that also tries to call vgreduce and pvscan and does other steps that are not necessary when removing the PV signature after removing the VG.

Fixes: #1228

udisks_daemon_util_lvm2_wipe_block is a huge hammer that also
tries to call vgreduce and pvscan and does other steps that are
not necessary when removing the PV signature after removing the
VG.

Fixes: storaged-project#1228
Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I'm not really familiar whether the extra steps in udisks_daemon_util_lvm2_wipe_block() like the bd_lvm_pvscan() quirk are not needed anymore so my ack is a tentative one.

@tbzatek
Copy link
Member

tbzatek commented Jan 4, 2024

Cc: @mvollmer

@vojtechtrefny
Copy link
Member Author

So I'm not really familiar whether the extra steps in udisks_daemon_util_lvm2_wipe_block() like the bd_lvm_pvscan() quirk are not needed anymore so my ack is a tentative one.

These can be useful when removing PV from an existing VG (but I think running vgreduce should be enough for that), but I don't see a reason for doing all this when removing an empty PV after removing the VG.

@vojtechtrefny vojtechtrefny merged commit 0b3879a into storaged-project:master Jan 25, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VolumeGroup.Delete doesn't remove wiped PVs from LVM devices file
2 participants