Operating System - HP-UX
1753784 Members
6811 Online
108799 Solutions
New Discussion юеВ

Root Disk Mirroring Problem

 
roobala
Frequent Advisor

Root Disk Mirroring Problem

Dear All,

Config:

HP-9000, L-1000, HPUX-11.00
On 9GB disk OS had been installed and mirrored with another 9GB disk.While mirroring itself some of the LVs gave error
stale...We found some bad sectors and we got the new disk.We tried to remove the LVs and reduce the VG also..as per the procedure.
But it didn't work out. So we removed that ans put new disk.The physical address for the new drive also same. But we are not able to remove the mirror from that old disk and enable mirrr n this new drive.

Now we don't have the Old HDD, So now In what way we can add this new disk and make it as a mirror copy of the OS disk.

I am new for LVM...please help me out...
Thanks in advance
Roobala....
6 REPLIES 6
Andreas Voss
Honored Contributor

Re: Root Disk Mirroring Problem

Hi,

have you tried vgsync vg00 ?
roobala
Frequent Advisor

Re: Root Disk Mirroring Problem

Hi Andreas,
I got the fllowing error.
---------------------------------------------
blrmrs #vgsync /dev/vg00
Resynchronized logical volume "/dev/vg00/lvol1".
vgsync: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
vgsync: Couldn't resynchronize logical volume "/dev/vg00/lvol2".
vgsync: Couldn't resynchronize volume group "/dev/vg00".
---------------------------------------------
Roobala
Rita C Workman
Honored Contributor

Re: Root Disk Mirroring Problem

You said it was an OS disk, but you didn't say if it was the boot disk. So I'm just going to respond with what I generally do when I replace a disk that is mirrored.
1. Replace the bad disk
2. pvcreate the new disk
3. vgcfgrestore /dev/vg00/lvol_ _ /dev/rdsk/
Now sometimes I see an error message with this stmt, but it does put the label back and restores it to the vg.
4. vgchange -a y /dev/vg
You can do a lvdisplay and you will see it and that it is stale
5. vgsync or lvsync /dev/vg/lvol_ _(in your case I'd do vgsync...)
6. .......wait and it will resync your disks back...may take awhile depending on data, there are not messages on screen while it's working.


Rita C Workman
Honored Contributor

Re: Root Disk Mirroring Problem

I forgot to mention...when I replace a bad mirrored disk.
I never do a reduce or remove on my volumes...I just replace and restore and resync.

Regards,
roobala
Frequent Advisor

Re: Root Disk Mirroring Problem

Hi rita,

This is a Boot disk/Root Disk also...will
UR procedure will do
Roobala
Rita C Workman
Honored Contributor

Re: Root Disk Mirroring Problem

Yes you can do this on the boot disk.

I did it once. I hope I never have to do it again...
It took me a couple tries till it worked right, but it was just a matter of integrating the commands to make a disk the bootdisk (pvcreate -B /dev/rdsk/c_t_) etc. Then resyncing the drive from the mirror and doing a reboot to ensure that it worked ok.....