1752778 Members
6104 Online
108789 Solutions
New Discussion юеВ

Re: LVM recovery

 
Jerry Jiangwei
Advisor

LVM recovery

Hi All,

I just remove the all files under /dev/ and /etc/, now I recover almost all except lvm-relatec configuration.

How can recover /dev/vg00 and /dev/vg01?

thanks
-- Jerry
8 REPLIES 8
avizen9
Esteemed Contributor

Re: LVM recovery


HI
why you need to remove all files from /etc/?
i believe you should only recover /etc/ from your good backup.

for lvm check below,

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1251102223996+28353475&threadId=1081453

Jerry Jiangwei
Advisor

Re: LVM recovery

Hi,

The files was removed by a unsanity script.

I just recover /etc/* from /usr/newconfig/etc/*,

However, all this files is very original, and no any information about lvm, which is updated after OS installation.

Now, I think the /etc/lvmconf is re-generated by vgscan, which may refer to /dev/*,

and if manage to recover /dev/*, /etc/lvmconf might be required.

so I don't know how to fix.

R.K. #
Honored Contributor

Re: LVM recovery

Hi Jerry,

Do you have any kind of backup for the server?

Regds..
Don't fix what ain't broke
Jerry Jiangwei
Advisor

Re: LVM recovery

Hello,

I have no any backup for this server, the real situation is the server is running.

I just copy /usr/newconfig/etc/* to /etc/* and did _insf_ to back some /dev/*.

I have a vm machine running on this host, but it can't hpvmstart.

root@sshia1# ./hpvmstart -p 7
HPVM guest ux23 configuration problems:
Warning 1 on item /dev/vg01/rux23: '/dev/vg01/rux23' backing device does not exist.
These problems may prevent HPVM guest ux23 from starting.
hpvmstart: Unable to continue.


it seems that this vm has been attached a boot disk /dev/vg01/run23, which is removed.

I worried about once I reboot the server, it can't back to running status. But current problem is I want to recover LVM so that the vm machine can run again.

avizen9
Esteemed Contributor

Re: LVM recovery

Hello Jerry,
as per my knowledge we can not re-create whole /dev

if we have backup for / then we can recover it from there,

Jerry Jiangwei
Advisor

Re: LVM recovery

Thanks,

but can we recover the lvm-related device file? like /dev/vg01/rux23
avizen9
Esteemed Contributor

Re: LVM recovery

create /dev manually

and follow as in this below fourm, may help i am not really sure it will work but just try it

best of luck

http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1251112495229+28353475&threadId=1081453
Dennis Handly
Acclaimed Contributor

Re: LVM recovery

>The files was removed by a unsanity script.
>I have no any backup for this server

I hope you know what to do next time to recover from this. ignite

Is the problem only on the host? Have you done a backup on the guests so at least you can save them?