1833777 Members
2020 Online
110063 Solutions
New Discussion

Re: Remirroring issue

 
Atul Goel
Frequent Advisor

Remirroring issue

Suppose I have a mirrored system. I have taken out its mirrored disk (external and internal)
I have upgraded my system on the existing disk. But, it failed.
So I halted the system, swapped the disk (inserted the mirrored disk) and booted the system with mirrored disk
After system came up properly I inserted the disk (internal and external) which have upgrade failure
So now system has all the disk present in the /etc/lvmtab
My queries are
As all the disks are there so will system start mirroring itself? If yes then on what criteria will it start mirroring? I mean to say is there a possibility that It start syncing the mirrored disk (from which system was booted ) from disk inserted later on (with upgrade failure and latest data on it, lvm information is intact on it)? If yes, then how to avoid it.
If system will not start mirroring byself how to restart the mirroring from the active disk (from which system was booted ) to the stale disk (with upgrade failure and latest data on it, lvm information is intact on it) considering the fact that my system has two volume groups which are in cluster active mode on which LVM commands does not run when thy are in cluster active mode
4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Remirroring issue

Sometimes after you did a

# vgchange -a y vg00

the system starts syncing automagically, sometimes not. It depends on the patch level.

If not, do a

# vgsync vg00

and you are done, because all the disk structure remains, only the contents changed.

The running disk will be sync to the newly inserted disk, because the data on it is newer.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
jaivinder
Frequent Advisor

Re: Remirroring issue

To do the activity on a system which have the mirrored root disks always use following procedure:
1.Boot your system with secondary boot disk
2. Split the volume group using
#vgsplit vg00
3.Remove the primary boot disk out of the slot
4. Perform your activity and boot the system with secondary disk, if your activity is successful then put the primary disk in the slot and just issue a
#vgsync vg00
If the activity got failed then reboot the system with the primary disk and remove the secondary disk, Once the booting is complete then insert the secondary disk and issue a vgsync command it will mirror the secondary disk with the primary disk.
sujit kumar singh
Honored Contributor

Re: Remirroring issue

hello Jaivinder,


is there a command called vgsplit as u have said in HPUX LVM or is it any script that u have called to assist the task.


I know lvsplit is there but not heard of the vgsplit commmand in HP-UX.


regards Sujit
sujit kumar singh
Honored Contributor

Re: Remirroring issue

Hello


all the LV level syncing of the data that takes place while we are doing syncing of the Mirrored Extents either using vgsync or using lvsync, is taken care of the Intelligent LVM itself that keeps the record in the mirror write cache and refers to the same while syncing the stalePEs.

So just give the command to sync and leave the rest to LVM, LVM is really reliable u need not worry for such cases where u feel old data is going to be sysnced.


Sujit