Operating System - HP-UX
1752808 Members
5787 Online
108789 Solutions
New Discussion юеВ

Re: How to mirror the primary disk.......

 
SOLVED
Go to solution
Prashant Bahuguna
Occasional Advisor

How to mirror the primary disk.......

I restored my HPUX-11.23 OS, on RISC machine, from the backup taken on DDS tape using the make_tape_recover -A a /dev/rmt/0m command. Every worked well after restoration, but I noticed that one of my mirror disk LED completely stoped glowing. Do I need to configure disk mirroring and if yes then how can it be done.

Best regards and thanks in advance.
4 REPLIES 4
Sandy Chen
Honored Contributor

Re: How to mirror the primary disk.......

Hi,

yes you will have to re-mirror your disk.

Follow this thread: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1032537

regards,
Sandy
I never think of the future. It comes soon enough.
Pete Randall
Outstanding Contributor
Solution

Re: How to mirror the primary disk.......

It sounds like maybe the disk died - check with "dd if=/dev/rdsk/cXtXdX of=/dev/null bs=1024k". If you get an I/O error, you've got a dead disk and it needs to be replaced.

To re-mirror, follow this procedure:

The steps to mirror your boot volume are (PA-RISC):

1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"

2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"

3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/c1t6d0"
"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"

4. Use mkboot to update the AUTO file on the primary boot disk
"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"

5. Mirror the stand, root and swap logical volumes in order
"lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"

6. Then mirror the rest of your root logical volumes
"lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c1t6d0"
etc.

7. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"

8. Edit /stand/bootconf and add your new mirrored boot disk.

That's all there is to it. You may notice that I left out any
lvlnboot commands. That is because they are not
necessary - see the man page:

"This command should be run in recovery mode (-R)
whenever the configuration of the root volume group is
affected by one of the following commands: lvextend,
lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend,
or vgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M),
lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and
vgreduce(1M)). Starting with HP-UX Release 10.0, this is
done automatically."


For Itanium architecture, follow this guide:
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html
-or-
http://docs.hp.com/en/B2355-90950/ch06s02.html#cchgjafa


Pete

Pete
Ivan Krastev
Honored Contributor

Re: How to mirror the primary disk.......

For mirroring you need additional software called MirrorDisk/UX - http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B2491BA


For exact steps see docid LVMKBRC00005103 in knowledge base or search forums.

regards,
ivan
Prashant Bahuguna
Occasional Advisor

Re: How to mirror the primary disk.......

Thanks to you all.