System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Add primary disk back to mirror

 
SOLVED
Go to solution
sagi_1
Advisor

Add primary disk back to mirror

Hi All,

I have a rx2620 inwhich the primary disk failed and i am able to boot the server with teh secondary disk.
Now i have to add a new primary disk back to the mirror. Can you please advice me if a simple lvsync command would do?
Please inform if there is any risk involved in this.

Thanks in advance.

Regards,
Sagar.
7 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: Add primary disk back to mirror

Restoring Mirrored disk after Replacement of failed disk
=============================================

# vgcfgrestore -n vg00 /dev/rdsk/cxtxdx
# vgchange -a y vg00
# vgsync vg00

Script to run to check status of vgsync:

while true
do
pvdisplay -v /dev/dsk/c1t2d0|grep stale|wc -l sleep 5 done
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: Add primary disk back to mirror

1) Remove lvol mirrors:
# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/cxtxdx
# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/cxtxdx
2) Remove faulty drive from vg00:
# vgreduce /dev/vg00 /dev/dsk/cxtxdx
3) Call for CE replacement of hot-swappable drive cxtxdx at H/W path 0/0/2/1.6.0:
SCSI describe of /dev/rdsk/cxtxdx:
vendor: HP 36.4G
product id: ST336706LC
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
4) When drive is replaced, add back into vg00 and make bootable:
# pvcreate -B /dev/rdsk/cxtxdx
# vgextend /dev/vg00 /dev/dsk/cxtxdx
# mkboot -l /dev/rdsk/cxtxdx
5) Re-mirror logical volumes, must be done in lvol order:
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx
# lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cxtxdx
# lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cxtxdx
And repeat for remaining logical volumes lvol4 through lvol13.
Problems are common to all, but attitude makes the difference
sagi_1
Advisor

Re: Add primary disk back to mirror

Hi John,

Thanks for the reply. Please advice me if i have to move the lvmtab file before restoring the vg00.
are there any further steps to be taken in case of the boot disk.

Regards,
Sagar.
Aneesh Mohan
Honored Contributor

Re: Add primary disk back to mirror

Hi Sagar,

Just do.

#vgchange -a y vg00
#vgsync vg00

Regards,
Aneesh
Johnson Punniyalingam
Honored Contributor

Re: Add primary disk back to mirror

>>Please advice me if i have to move the lvmtab file before restoring the vg00.
are there any further steps to be taken in case of the boot disk<<

NO need,
Problems are common to all, but attitude makes the difference
R.K. #
Honored Contributor

Re: Add primary disk back to mirror

Hi Sagar,

Moving lvmtab is NOT required.
Don't fix what ain't broke
Torsten.
Acclaimed Contributor
Solution

Re: Add primary disk back to mirror

Better to follow the official procedure:

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf


In the procedures above I miss some very important steps regarding make the disk bootable (idisk, mkboot etc)

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!