1834651 Members
2205 Online
110069 Solutions
New Discussion

Re: Missing LV

 
SOLVED
Go to solution
Brian Pyle
Frequent Advisor

Missing LV

Do I get any points for asking questions ?? :) I've lost a logical volume. I'm not going to go into too much detail, but I removed it by mistake via "rm". It didn't have anything on it, but now I've got question marks in my pvdisplay in the status where that logical volume used to be. How can I clear up the status ?? I'm on HP-UX 11.0

TIA

Brian
Follow The Path With Heart
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Missing LV

Hi Brian:

No points for you. I've never done what you did but I think that this will fix you. I use vg02 lvol4 as my example but you should get the idea. I don't know if you removed both the character special device and the block special device but I'll illustrate both.

as root
cd /dev/vg02
mknod lvol4 b 64 0x020004
mknod rlvol4 c 64 0x020004

chmod 640 lvol4 rlvol4
chown root:sys lvol4 rlvol4

The first 4 hex digits in the minor device number following the 0x should match all the remaining entries and the last 2 should indicate which logical volume from 01 through ff.



In the future, try using the lvremove command; it works a bit better.

Regards, Clay
If it ain't broke, I can fix that.
Alex Yuen
New Member

Re: Missing LV

Other than using mknod to re-make those devices (the best), I believed that you could also try recover those device files back from your last valid file system backup. Maybe you could restore those files back to a temporary directory for checking first before futher actions. This should work even both block and character device had been removed.
sleepycasper
Brian Pyle
Frequent Advisor

Re: Missing LV

Well thanx for the help on the mknod command. I ended up converting all my hex to decimal so I could see which one was missing. I then just replaced that with the mknod, and were back in business :) I didn't intend to remove them via "rm" it was fumbly fingers at the end of the day. I was actually moving them, because I didn't like the name I had given them. I did remove both devices, because after I had realized that I had removed the block special device, I saw the mess I had and thought that maybe if I'd removed the character device, that would clean things up.... wrong :( I was just in the process of creating the logical volumes so I hadn't had time to get a backup of them yet. Thanx again for your help :)
Follow The Path With Heart