Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
老机器上lvremove
#!/bin/sh
lvremove /dev/vol_vdb1/lvol0
lvremove /dev/vol_vdb1/lvol1
lvremove /dev/vol_vdb1/lvol2
pvremove /dev/vdb1 --force --force
fdisk -c -u /dev/vdb <<EOF
D
w
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.