Operating System - HP-UX
1752788 Members
5983 Online
108789 Solutions
New Discussion юеВ

Re: by mistake made a lvremove need help

 
mclmicha_1
Advisor

by mistake made a lvremove need help

I am a fool.

Had make a lvremove without want it. No I need recover the LV and the filesystem information.

Have a VG with four disks and one LV. As described I had removed the LV with lvremove, but now need the information.
How can I recover this information.

Thanks very much in advance.

Michael
3 REPLIES 3
Mohanasundaram_1
Honored Contributor

Re: by mistake made a lvremove need help

Hi Michael,

Is this LV spread on all 4 disks? if so you can create the LV again with lvcreate with exactly the same number of LEs as it was prior to the lvremove.

Another option is, if you had the copy of .conf file prior to deleting this lV at /etc/lvmconf directory, then you can use that conf file and do a vgcfgrestore on all the 4 disks.

You have to perform an fsck after the above action.

All the best.

With regards,
Mohan.
Attitude, Not aptitude, determines your altitude
Mohanasundaram_1
Honored Contributor

Re: by mistake made a lvremove need help

Hi Michael,


Did you succeed?
Attitude, Not aptitude, determines your altitude
mclmicha_1
Advisor

Re: by mistake made a lvremove need help

Hi Mohanasundaram,

thanks for your tips. Yes I succseded, but not doing your way. Decided to Create new, making new filesystem and restore the backup.
Olny the new lvcreate and than a fsck does not work.

But nevertheless thanks very much for your help.

Regards

Michael