I walk in the office on a fine Sunday morning to find out electricity has gone down restarting all boxes. One of my Debians wouldn’t leave runlevel 1 because of a logical volume not being mapped. I started the a typical bottom up troubleshooting procedure and at the first step (forget the vgscan and lvm libraries loading) :
timon:~# pvdisplay
Couldn’t find device with uuid ‘CMXpz2-HQQw-RO4k-5K2J-0mO4-oxTY-WvkY7W’.
— Physical volume —
PV Name unknown device
VG Name data_vol_grp
PV Size 74.53 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 19079
Free PE 0
Allocated PE 19079
PV UUID CMXpz2-HQQw-RO4k-5K2J-0mO4-oxTY-WvkY7W— Physical volume —
PV Name /dev/hdd
VG Name data_vol_grp
PV Size 37.27 GB / not usable 0
Allocatable yes (but full)
….
This was – of course – creepy, knowing the drive was brand new, seen by the BIOS and detectable with a simple `fdisk -l`! Also check out the contradiction in italic.
After an hour of playing around … given I know the device path all I had to do is a `pvdisplay /dev/hdc` to get a healthy listing right there :O
I carried on with a `vgchange -a y data_vol_grp` followed by a `fsck.reiserfs` and finally mounted the volume and all was good!
Just thought I’d save some time and ATP burning surprise fellow admins should you ever experience this, especially that (as sledomly as it happens) google wasn’t that helpful.
Happy Hacking