Comment 3 for bug 995709

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

I agree that bug 460906 is a valid bug and should be fixed.
I also agree that this bug needs to be fixed.
I do think that the patterns need to be checked and expanded a little more.

When I plugged in my external hard-drive with full disk LVM2 (no partitions) (as normal people usually do ;-) ) the following happened:
* Symlink in /dev/disk/by-id/ was not created
* After running $ pvscan there was this symlink:
 ls -la /dev/disk/by-id/usb-ST1000DM_003-9YN162_1D0C2FFFFFFF-0\:0
lrwxrwxrwx 1 root root 9 Aug 21 16:13 /dev/disk/by-id/usb-ST1000DM_003-9YN162_1D0C2FFFFFFF-0:0 -> ../../sdc
* And VGs and LVs become visible

Maybe this is another bug that my external drive didn't get symlinks, VG setup and LVMs mounted. (which would be my expectation similar to encrypted/unencrypted USB flash drives)

I haven't tested, but I often loop-mount virtual machine drives & mount VG/LVMs from there for troubleshooting. And again there are no entreis in /dev/disk/by-id/ in that case.

Scanning everything is too permissive, I am not sure what a good distro-wide default is.