Disk Enclosures
1748031 Members
4991 Online
108757 Solutions
New Discussion юеВ

Can anybody tell me how to configure a Mirror Disk?

 
David_42
New Member

Can anybody tell me how to configure a Mirror Disk?

Hi,
We have an HP9000/L2000, with two Seagate ST318404LC UW SCSI Single-Ended disks. Have already installed HP-UX version B.11.00 and the license of MirrorDisk/UX on one of those. We want to make a mirror, but don,t know how to. Could anyboy help us?.
Thanks in advance, David.
3 REPLIES 3
Shahul
Esteemed Contributor

Re: Can anybody tell me how to configure a Mirror Disk?

Hi

I hope U installed HPUX in one 18GB HDD..right? Its VG is vg00..right?

Follow this

#ioscan -fnC disk

Now U will get the device file for both HDDs. Find out the device file for the second HDD. Then


#pvcreate -f /dev/dsk/cxtxdx

Be carefull...Don't do this on OS installed HDD. Then
#vgextend /dev/vg00 /dev/dsk/cxtxdx

How many LVs U created in vg00? Find out by using

#vgdisplay -v /dev/vg00 |pg

Then

I assume that U are having lvol1 as boot, lvol2 as swap, and lvol3 as root. Now

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cxtxdx
#lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/cxdxtx
#lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cxdxtx

Now ur these three volumes are mirrored to the second HDD. U can verify by using

#lvdisplay -v /dev/vg00/lvol1 |pg
And so on


Best of luck

Shahul
John Tyler
Advisor

Re: Can anybody tell me how to configure a Mirror Disk?

To mirror boot disk, it's not just using lvextend.. You would also need to put in the bootstring.

Here is what i do:
1. pvcreate -B /dev/rdsk/
2. vgextend /dev/vg00 /dev/dsk/
3. mkboot /dev/dsk/
4. mkboot -a "hpux -lq" /dev/rdsk/
5.lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/

Repeat step 5 for any additional logical volumnes that need to be mirrored.

6. lvlnboot -R

Reboot system, hit escape key to stop autoboot.
Boot system from the second disk to verify it.
Reboot again with autoboot from primary disk.

You will get many hits by doing a search for "boot disk mirroring" in the forum.
Philip P. Hartl
Valued Contributor

Re: Can anybody tell me how to configure a Mirror Disk?

The full procedure is stepped through in the "Managing System and Workgroups" manual, B2355-90157, E1097, page 386. You can also find this manual on the docs.hp.com site. Search for "Mirroring the Root, Boot"
Don't take life so seriously; nobody gets out alive.