Operating System - HP-UX
1833780 Members
2314 Online
110063 Solutions
New Discussion

How to break the mirror in LVM

 
SOLVED
Go to solution
csreenivas
Frequent Advisor

How to break the mirror in LVM

/home/root filesystem was deleted and there is no backup but i have mirrors. can anyone of you help us how to break the mirror and how to mount it so that i can use the /home/root file system.
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: How to break the mirror in LVM

If it was deleted - then the data on the mirror was as well....

Unless you had performed a lvsplit prior to deletion.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
James R. Ferguson
Acclaimed Contributor

Re: How to break the mirror in LVM

Hi:

Mirroring isn't going to save you. Mirroring simply replicates filesystem changes, including changes in its metadata. Now you know the value of good backups!

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: How to break the mirror in LVM

Mirroring saves you from hardware problems.

It does NOT help when files are deleted. That is what backups are for!
Hoang Chi Cong_1
Honored Contributor

Re: How to break the mirror in LVM

Hi

Mirror just protect your data when one of the disk was fail!(Hardware failure).
Not as you think!
When data was deleted and you don't have any backup, you will lost is!
Looking for a special chance.......
Vishu
Trusted Contributor

Re: How to break the mirror in LVM

mirroring is there for disk failure not for such deletion. now understand the importance of having backups.

Vishu
Andrew Young_2
Honored Contributor
Solution

Re: How to break the mirror in LVM

Hi.

As far as I can see there are two options avialable to you. If you have recovery media you could install that.

Alternatively you could use the installation media to boot with, break out of into a shell, someone here will tell you how to do that, create a /root folder on your root filesystem, edit the /etc/passwd file to change root's home directory to /root and reboot.

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Raj D.
Honored Contributor

Re: How to break the mirror in LVM

Csreenivas,

Mirroring gives you protection against boot disk failure, here /home/root also deleted from the mirror disk , as it copies the primary disk one to one.

So you have only option to restore from backup. or Ignite tape,

hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
csreenivas
Frequent Advisor

Re: How to break the mirror in LVM

I have changed the question