How to properly unplug (remove) and later plug (insert) removable (hot-plug, usb etc) storage device with LVM2 on it ?I've found this noteRemove (unplug, eject):lvchange -an /dev/your_volume_group_namevgexport -aInsert (plug):vgimport -alvchange -ay /dev/your_volume_group_namebut 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 vgscan pvscan in such scenario ? I'm thinking about automatized solution.
How to properly unplug/plug removable LVM2 device?
partition;storage;removable storage;lvm