LVM and VxVM

HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

 
SOLVED
Go to solution
Matthew Darcy_2
Frequent Advisor

HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

I've got a 2 disk HPUX 11.31 IA64 box.

I've done a DVD based install which has vg00 setup and configured.

I want to add the second disk to vg00 for mirrorview disk mirroring (installed)

I've created an idisk partition file containing
3
EFI 100MB
HPSP 400MB
HPUX 100%

(based on the standards / defaults) - there must be a simple way to generate this file from the existing disk.

I've put this partition table to the second disk with

idisk -wf /tmp/partitionfile /dev/rdsk/c3t0d0

which worked great.

created the new partition device files with
insf -e -C disk

populated the efi and lif data with
mkboot -e -l /dev/rdsk/c3t0d0

verified lif data with
lifls -l /dev/rdsk/c3t0d0s1
which looked ok

added the auto boot info with
mkboot -a "boot vmunix" /dev/dsk/c3t0d0

put the efi boot data to partition 1on with
efi_cp cp -d /dev/rdsk/c3t0d0s1 -u /EFI/HPUX/AUTO

made it a physical volume
pvcreate -f -B /dev/rdsk/c3t0d0s2

added it to vg00

vgextend vg00 /dev/dsk/c3t0d0s2

now here is where it is interesting,

when I tried to mirror lvol1 I got an error of not enough free space.

when I do a vgdisplay -v vg00 I see both disks in vg00

(note the install added the first disk as /dev/disk/disk2_p2 - I've referenced the second disk as /dev/dsk/c3t0d0s2 - but I've also tried it as /dev/disk/disk3_p2 with no difference)

however the ammount of PE free has not gone up (explaining why I can't mirror the logical volume)

if I use vgreduce to remove the second disk, the PE doesn't change (obviously as it wasn't added int he first place)

What's going on ? why is the available PE not going up when I add the second disk to the volume group ?
4 REPLIES 4
Jayakrishnan G Naik
Trusted Contributor
Solution

Re: HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

Hi Darcy

As per your statement above you havr followed the following order for the partition file?

EFI 100MB
HPSP 400MB
HPUX 100%

Can you check the diskinfo output for /dev/rdsk/cxtxdxs1 s2 and s3?

For me this looks like a mistake in partitioning and the disk structure should be
as below.

3
EFI 100MB
HPUX 100%
HPSP 400MB

Can you check this and let me know?

Thanks & Regards
Jayakrishnan G Naik
Matthew Darcy_2
Frequent Advisor

Re: HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

superb spot, I hadn't clicked on the partition order

# diskinfo /dev/rdsk/c3t0d0s1
SCSI describe of /dev/rdsk/c3t0d0s1:
vendor: HP
product id: EH0146FARWD
type: direct access
size: 102400 Kbytes
bytes per sector: 512
# diskinfo /dev/rdsk/c3t0d0s2
SCSI describe of /dev/rdsk/c3t0d0s2:
vendor: HP
product id: EH0146FARWD
type: direct access
size: 409568 Kbytes
bytes per sector: 512
# diskinfo /dev/rdsk/c3t0d0s3
SCSI describe of /dev/rdsk/c3t0d0s3:
vendor: HP
product id: EH0146FARWD
type: direct access
size: 142862336 Kbytes
bytes per sector: 512


partition 3 is the big data partition, not 2 as it should be.

I'll recreate this, great spot and thank you very much.

have some points for good eyes and common sense.

Matt
Ismail Azad
Esteemed Contributor

Re: HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

Hi,

The order is sytem partition, O.S partition and HPSP partition as standard integrity boot disk structures. Don't know if it works jumbled up. And are you sure you executed an lifls on an itanium box??
Read, read and read... Then read again until you read "between the lines".....
Anoop Sivan
Frequent Advisor

Re: HPUX 11.31 IA64 - adding mirror disk to vg00 does not increase PE

Hello,
HPUX 11.31,EFI partision should be 500MB
follow below procedure

cat >> /tmp/idf
3
EFI 500MB
HPUX 100%
HPSP 450MB
EOF<<

Write the EFI information on new disk.
idisk -wf /tmp/idf /dev/rdsk/cxtxdx -->(new disk)

Verify the partition information.
idisk /dev/rdsk/cxtxdx

Create device files for the new disk.
insf -eC disk

make the disk as bootable.
mkboot -e -l /dev/rdsk/cxtxdx

Update the auto file information.
efi_cp -d /dev/rdsk/cxtxdxs1 -u /EFI/HPUX/AUTO /tmp/auto (your primary disk)

efi_cp -d /dev/rdsk/cxtxdxs1 /tmp/auto /EFI/HPUX/AUTO (New disk)

Create the lvm structure in the cxtxdxs2 slice
pvcreate -fB /dev/rdsk/cxtxdxs2


Add the disk in to vg00
vgextend /dev/vg00 /dev/dsk/cxtxdxs2

Mirror the lv's

Update the BDRA
lvlnboot -R /dev/vg00

Add the new disk entry in to /stand/bootconf
l /dev/dsk/cxtxdxs2

Add the new disk path as alternate boot path
setboot -a