How to properly unplug (remove) and later plug (insert) removable (hot-plug, usb etc) storage device with LVM2 on it ?
I've found this note
Remove (unplug, eject):
lvchange -an /dev/your_volume_group_name vgexport -a
vgimport -a lvchange -ay /dev/your_volume_group_name
but I'm unsure if using "all" option
-a isn't and overkill ?
Another thing, I wonder if there might be in some circumstances need of using
pvscan in such scenario ? I'm thinking about automatized solution.