1834117 Members
2469 Online
110064 Solutions
New Discussion

Create Mirror Disk

 
SOLVED
Go to solution
Gurcharan Sahota_2
Frequent Advisor

Create Mirror Disk

We have a HP rx2600 server and I need to create a root mirror disk.

We have 2 disks - HP 36.4Gb 15K. The mirror disk must be bootable.

How do i go about creating it?
20 REPLIES 20
Peter Godron
Honored Contributor

Re: Create Mirror Disk

Gurcharn,
have you got the additional HP_UX Mirror product ?
If it is installed, just change the number of mirrors on the area you want to mirror.
I use SAM for this, nice and easy.
Bharat Katkar
Honored Contributor

Re: Create Mirror Disk

Hi,
See attached doc.

Regards,
You need to know a lot to actually know how little you know
Doug Burton
Respected Contributor

Re: Create Mirror Disk

Mirror the ROOT disk
Reference HP Doc ID: LVMKBRC00005103

Mirror root disk to a second disk drive while making sure the second drive is bootable.
I am going to assume that c2t2d0 is the main bootable drive and c1t2d0 will be our second, mirrored bootable drive we need to build.
The "-B" option is used to create a bootable Physical Volume: pvcreate -B /dev/rdsk/c1t2d0
Make sure to use the character device file when using mkboot: mkboot -l /dev/rdsk/c1t2d0
Make sure disks are not in a quorum.
The "-lq" indicates no quorum when two disks are used. When three or more are used you don't need "-lq". You also need to do this with the primary disk. Otherwise, when you boot normally to "pri" and the "alt" disk is not there for whatever reason, you will **NOT** be able to boot. The "pri" disk will "look" for the "alt" disk. No quorum???? To bad so sad, you loose. Ack!
So do this:

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0

Don't forget the main boot drive:
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0

Add Diag to lif:
32 Bit:
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c1t2d0

64 Bit:
mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c1t2d0

Check the contents of the AUTO file:
lifls /dev/rdsk/c1t2d0 or this command: lifcp /dev/rdsk/c1t2d0:AUTO -

Add the Physical Volume to the root volume group:
vgextend /dev/vg00 /dev/dsk/c1t2d0

Do this next command for each "lvol"......
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0

******* or *******
for x in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8
do
echo "\n******** Doing ${x} ********\n"
lvextend -m 1 /dev/vg00/${x} /dev/dsk/c1t2d0
done ; banner All Done

Don't forget any extra swap you added (like /dev/vg00/swap2). Do "swapinfo" and "bdf" to check for swap and any other lvols that may have been created.
Specify the root logical volume: lvlnboot -r /dev/vg00/lvol3
Specify the swap logical volume: lvlnboot -s /dev/vg00/lvol2
Specify the dump logical volume: lvlnboot -d /dev/vg00/lvol2
Specify the boot logical volume: lvlnboot -b /dev/vg00/lvol1
Recover any BDRA info: lvlnboot -R
Verify boot, root, swap and dump settings: lvlnboot -v
Display the Primary and Alternate boot paths that are currently set: setboot
Set alternate boot path to the new mirrored disk.
Use "ioscan -funC disk" to find out what the path should be:
setboot -a 0/0/1/1.2.0
Activate AutoSearch and AutoBoot: setboot -s on -b on
Run "setboot" again to confirm the change.
Do "shutdown -r 0" (or "reboot") to test. After halting the boot process, type in "bo alt" to boot from the alternate disk.
A good test would be to remove the primary and then boot to the alternate drive. After that test, place the primary back into the server, then remove the alternate to check that booting process as well. The server should boot from either the primary or alternate disk if no quorum was properly set.
Patrick Wallek
Honored Contributor

Re: Create Mirror Disk

Since you have an rx2600, which is an Itanium machine, the above 2 procedures will NOT work for you. The procedure for Itanium is quite different.

Check out the following document in the knowledge base:

Title: How to mirror vg00 using LVM on IA with 11.23
Document ID: KBRC00014526
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576
Torsten.
Acclaimed Contributor
Solution

Re: Create Mirror Disk

I never used SAM to create a root mirror, but don't try the procedures above. This will create a mirror, but NOT a bootable one.

Follow Patricks suggestion!

Notice, the first step (idisk) is necessary to create partitions,

EFI (boot) cxtydzs1
OS cxtydzs2
Diag cxtydzs3

You see the difference: the appended s1, s2, s3 to the "normal" devicefile.

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!   
Luk Vandenbussche
Honored Contributor

Re: Create Mirror Disk

Hi,

The procedure from Patrick is the valid for integrity servers running HPUX
Doug Burton
Respected Contributor

Re: Create Mirror Disk

Yep - sorry about that. The info I gave was for a Risc box. I didn't know an rx2600 was an Itanium box. Should have checked first.
Geoff Wild
Honored Contributor

Re: Create Mirror Disk

Here's it is as I just did it for my rx2600:

(couldn't embed - so I attached it...

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Gurcharan Sahota_2
Frequent Advisor

Re: Create Mirror Disk

This is the ioscan from the server;

The boot disk already has an 's' number appended to it, what does it signify and why are there 3 separate entries for it?
Torsten.
Acclaimed Contributor

Re: Create Mirror Disk

Read my previous post again!

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!   
Senthil Kumar .A_1
Honored Contributor

Re: Create Mirror Disk

Hi Gurucharan,


Basically, in the itanium boxes, we have a different boot loader as opposed to PDC, called EFI(Extensible Firmware interface). This is a "fat" partition.

"idisk" utility helps you create 3 slices namely "cxtxdxs1(EFI),cxtxdxs2(OS),cxtxdxs3(Diag)".

If you feel the already create slices are not upto the doc standards ,submitted by Walleck,

just "rmsf" the s1,s2,s3 of second disk, and follow the link provided by patrick walleck.

The Doc is spot on for Itanium box, I used the same doc, in one of the rx2600 and even booted from the second disk successfully, without any issue's.

Best of luck and enjoy the exciting procedure.

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Gurcharan Sahota_2
Frequent Advisor

Re: Create Mirror Disk

thanks for your responses everyone, i'm in the process of working my way thru the document and I'll let you know how I get on.
Indrajit_1
Valued Contributor

Re: Create Mirror Disk

Hi;

Do the following steps..

#vgdisplay -v vg00 |more

See the out put, if the alternet disk is present. Both the disk should similar in size.
Now..

#lvextend -m 1 /dev/vg00/lvol1
it take some time to complete the mirror
do it for all the LVs.
Now..
#mkboot -a "hpux -lq"
#setboot (see the output)
(use "setboot -p" & "setboot -a" interms of change the boot order.

Cheers
indrajit
Never Ever Give Up
Gurcharan Sahota_2
Frequent Advisor

Re: Create Mirror Disk

Hit a slight problem, whilst in the process of intializing the LVM partition (s2) and adding it to vg00, I encountered the following error-

root@bduxdv01:/> vgextend vg00 /dev/dsk/c2t1d0s2
vgextend: Warning: Max_PE_per_PV for the volume group (4238) too small for this
PV (4329).
Using only 4238 PEs from this physical volume.
Volume group "vg00" has been successfully extended.
vgcfgbackup: Invalid LVMREC on Physical Volume /dev/rdsk/c2t1d0

any suggestions?
Muthukumar_5
Honored Contributor

Re: Create Mirror Disk

Devender Khatana
Honored Contributor

Re: Create Mirror Disk

Hi,

Here is the official disk replacement guide describing root-mirroring for itanium systems in HPUx at page 26.

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

HTH,
Devender
Impossible itself mentions "I m possible"
Gurcharan Sahota_2
Frequent Advisor

Re: Create Mirror Disk

In the process of lvextending vg00 and copying across all the lvols to the mirror disk but have encountered the following error -

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t1d0s2
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option

I've read that I need to have the MirrorDisk product installed? the PA-RISC version is different from the itanium based version? is it downloadable or does it have to be paid for? are there any other workarounds?
Patrick Wallek
Honored Contributor

Re: Create Mirror Disk

Yes, you have to buy Mirror Disk in order to use it.

Yes, Itanium version is different from PA-RISC version.

Workarounds? None that I know of.
Geoff Wild
Honored Contributor

Re: Create Mirror Disk

If you have the Enterprise OE (or Mission Critical)- then mirror disk is included - sounds like you have Foundation OE:

swlist |grep OE

You will have to purchase a license for Mirrordisk UX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Gurcharan Sahota_2
Frequent Advisor

Re: Create Mirror Disk

It's Foundation OE, so will be purchasing MirrorDisk - which has slowed down progress unfortunately.