Operating System - HP-UX
1825795 Members
2288 Online
109687 Solutions
New Discussion

Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

 
SOLVED
Go to solution
François Brugère
Frequent Advisor

Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

Hello,

I'm try to mirror the boot disk with LVM.
I use the excellent documentation provide by Bernhard Mueller in another thread.
But the boot disk has three partitions instead two in the doc. I give in attached file the description of my partition table. My question is how to recreate the third partition with the same size of the original one.

Thanks in advance.

Francois.
7 REPLIES 7
Bernhard Mueller
Honored Contributor
Solution

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

Francios,

for the (now typical) three partition layout of itanium boot disks use a partitionfile that looks like:

-----------------
3
EFI 500MB
HPUX 100%
HPSP 400MB
-----------------

then use:
idisk -wf

use diskinfo on the slices s1 and s3 device files of your current boot disk to find out the size; I *think* the about is what HP uses in default installs.

Regards
Bernhard
François Brugère
Frequent Advisor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

Hello Bernhard,

I had exactly the same idea. But the result is not exactly the same compare with original boot disk. There is a difference of 10 PE between the two layout disk.
I'am trying to give the size in MB for the HPUX partition.

Regards, Francois.
François Brugère
Frequent Advisor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

I used this partition file :
3
EFI 500MB
HPUX 33824MB
HPSP 400MB

and now I reduced to one PE the difference between the two disk layout :

--- Physical volumes ---
PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4228
Free PE 257
Autoswitch On

PV Name /dev/dsk/c2t0d0s2
PV Status available
Total PE 4227
Free PE 4227
Autoswitch On

Is somebody knows a command to create the partition file from the original boot disk ?

Regards, Françoi
Bernhard Mueller
Honored Contributor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

François,

could you tells us what ioscan -fnkCdisk says.

and also what sizes diskinfo tells you about
/dev/rdsk/c2t1d0
/dev/rdsk/c2t1d0s1
/dev/rdsk/c2t1d0s2
/dev/rdsk/c2t1d0s3

and similar for c2t0###

Regards,
Bernha
Bernhard Mueller
Honored Contributor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

François,

bye the way: as an additional step for mirroring a boot disk with a service partition (s3) you should copy this partition to the mirror disk as well using dd, i.e.

dd if=/dev/rdsk/c2t1d0s3 of=/dev/rdsk/c2t0d0s3 bs=1024k

Regards,
Bernhar
François Brugère
Frequent Advisor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

Bernhard,

I succeeded the creation of the layout disk of the mirrored disk in term of sizes but not in good order. Here is the partition file I used :

3
EFI 500MB
HPSP 400MB
HPUX 100%

In this case, I use the partition s3 instead s2 with the mirrored disk. I'm not totaly satisfied with this solution.
I join in the attached file the informations you asked me.

Regards, Francois.


François Brugère
Frequent Advisor

Re: Problem to mirror a boot disk with LVM with HP-UX 11iv2 (IPF)

This third partition is another EFI partition. But it seems empty. Here is the result of the command efi_ls against the original boot disk :

# efi_ls -d /dev/rdsk/c2t1d0s3
FileName Last Modified Size

total space 418598912 bytes, free space 418578432 bytes

#

Regards, Francois.