1846456 Members
2345 Online
110256 Solutions
New Discussion

Re: setup mirroring disk

 
wanaka_1
Occasional Advisor

setup mirroring disk

Hi,

Can anyone point out any procedure that I need to follow in order to setup mirroring.

I have two disks available and I want to resinstall the HPUX11. All FS should be in the first disk and second disk is act as a mirror.

please help
8 REPLIES 8
Dan Hetzel
Honored Contributor

Re: setup mirroring disk

Hi Wanaka,

Setup of mirroring is an easy task (c?t?d0 is 2nd disk):

1. pvcreate -B /dev/rdsk/c?t?d0
2. vgextend /dev/vg00 /dev/dsk/c?t?d0
3. mkboot /dev/rdsk/c?t?d0
4. mkboot -a "hpux -lq" /dev/rdsk/c?t,d0
5.
6. For x in 1 2 3 4 5 6 7 8 9
do
lvextend -m 1 /dev/vg00/lvol$x /dev/dsk/c?t?d0
done
7. lvlnboot -R


Best regards,

Dan

Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Eric SAUBIGNAC
Honored Contributor

Re: setup mirroring disk

Hi Wanaka,

Just a few more features to add to Dan's procedure

3. I do like the -l option. I had some troubles on HPUX 9.X if not used. May be it's OK now, but i'm a bit supersticious ... ?
5. mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/dsk/c?t?d0
5.2 before point number 6, make sure that lvol1 is the boot volume, lvol2 the swap area and lvol3 the root volume.
For example, use a pvdisplay -v /dev/dsk/ | pg. If not, you MUST do the lvextend first on the boot volume, then swap area, then root volume
Order of others logical volumes doesn't matter.
8 It could be a good idea to add a setboot -a where HW path can be get with lssf /dev/dsk/c?t?d0.

Eric,

PBFWME : Please Be Fair With My English

Eric SAUBIGNAC
Honored Contributor

Re: setup mirroring disk

Erratum :

In point 5, mkboot should be done on the raw device. Replace /dev/dsk/c?t?d0 with /dev/rdsk/c?t?d0

Eric,

PBFWME : Please Be Fair With My English
Andreas Voss
Honored Contributor

Re: setup mirroring disk

Hi,

i have written a script to mirror the vg00, see attachment.

Regards
Darrel Louis
Honored Contributor

Re: setup mirroring disk

Hi,

Attached you will find a document with instructions.

Good Luck
Patrick Wallek
Honored Contributor

Re: setup mirroring disk

A good "cookbook" approach is found in the System Administrators Task Manual.

Here is the link for the 10.20 version of the document. Most of the information is applicable to version 11 as well.

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html
Ajitkumar Rane
Trusted Contributor

Re: setup mirroring disk

Finally after step 7, it is always good to check if you see both the disks as bootable.
do lvlnboot -v . this should show lvols on both the disk for root,boot,swap and not sure about dump.A couple of time I ran into problems.After performing step 7 rebooted the system using the mirror copy and it did not come up, finally I had to boot in single user mode and found that the secound disk showed as boot disk but the lvols were not marked as boot root and swap. so I did lvlnboot -r /dev/vg00/lvol3, lvlnboot -b /dev/vg00/lvol2 lvlnboot -s /dev/vg00/lvol2, lvlnboot -d /dev/vgxy/lvoldump.as far as I know we cant configure the dump if does not lie within the 2gb boundry of the physical vol.

Good luck
Amidsts difficulties lie opportunities
Tom Danzig
Honored Contributor

Re: setup mirroring disk

Just a note: I assume you have purchased MirrorDisk/UX? You need it to do mirroring. It costs extra and is not part of the base OS.