I'm running Debian 8.6. The Sharkoon box is connected via e-sata cable. The harddisk I want to access holds an lvm2 logical volume [which was created with a different machine, also debian 8.6]. My problem is this: I can access the disk if the Sharkoon device was switched on before I powered on the computer. If it is done the other way round I can't. Is there a command that saves me from rebooting?
Become root (of course) e.g. via
pvscan vgscan vgchange –available y lvscan
pvscan looks for any LVM physical volume on attached devices.
vgscan then looks for any LVM volume groups on discovered physical volumes.
vgchange -available y marks the discovered volume groups as active.
lvscan finally looks for logical volumes in the discovered volume groups.
Now the logical volumes should be available under /dev/mapper/volgroup-logvol (where of course
volgroup-logvol depends on your config).
These steps are basically performed during booting which is why you can access the logical volumes directly when the drive was available during boot.