1832783 Members
3537 Online
110045 Solutions
New Discussion

lvremove

 
SOLVED
Go to solution
MárcioAFM
Frequent Advisor

lvremove

I have executred de following command:

lvremove -f -A y /dev/vg01/lvol1

Did i lost all data or just lvm configuration on disk?

Is it possible to recover the data with lvm commands?

Thanks

Márcio
3 REPLIES 3
Kenan Erdey
Honored Contributor
Solution

Re: lvremove

Hi,

no you lost just lvm configuration.

you should run vgcfgrestore for all disks containing your lv. with -A option vg information is backed up in . you can check conf file
ls /etc/lvmconf/vg01.conf and lvm configuration:
vgcfgrestore -n /dev/vg01 -l

first deactivate vg :vgchange -a n vg01
then do vgcfgrestore for all disks in vg:

vgcfgrestore -n /dev/vg01 /dev/rdsk/cxtydz

activate vgchange -a y vg01
and check filesystem with fsck.

Hope it helps.
Kenan.
Computers have lots of memory but no imagination
Steven E. Protter
Exalted Contributor

Re: lvremove

Shalom,

No, the data is probably recoverable.

You should be able to recover whats there so long as its not been over-written.

http://docs.hp.com/en/B2355-90672/ch03s10.html

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
MárcioAFM
Frequent Advisor

Re: lvremove

Hello Kenan,

Your solution worked just fine!

Thanks,

Regards,

Márcio