HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

break mirror for PA and IA servers

 
hpux_sun
Occasional Advisor

break mirror for PA and IA servers

hi,

can you please tell me how to break the mirror disk for PA-RISC and Itanium based servers.

 

also how to merge the Lvols for the same.

4 REPLIES
UVK
Trusted Contributor

Re: break mirror for PA and IA servers

have you tried using lvsplit and lvmerge before ?

-------------------------------------------
Like it or worked !! Click kudos !!
hpux_sun
Occasional Advisor

Re: break mirror for PA and IA servers

i haven't work on lvsplit and lvmerge , can you please provide me procedure?

Steven E. Protter
Exalted Contributor

Re: break mirror for PA and IA servers

Shalom,

 

See these procedures:

http://unixbites.blogspot.com/2011/02/how-to-break-mirror-with-two-identical.html

 

http://www.maulvi.net/2009/06/02/hpux-breaking-mirror-and-extending-lvm/

 

On the off chance you are using VxVM to manage your root disk:

http://www.hpux.ws/?cat=7

 

vxbrk_mirror

 

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Arunabha Banerjee
Valued Contributor

Re: break mirror for PA and IA servers

Before you break the mirror PLEASE verify (with both disk mirrored) that you can boot up from the 2ndary mirrored disk as well as primary mirrored disk. Just change the boot path accordingly. Basically we just want to make sure both disks boots up fine.

 

Now the steps...

Assuming c1t2d0 is primary mirrored disk & c2t2d0 is the 2ndary mirrored disk

Assuming (lvol1=/stand;lvol2=primary swap;lvol3=/;lvol4->lvol8 representing the rest of root's FS)

 

To break the mirror..

# lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t2d0

# lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c2t2d0

# lvreduce -m 0 /dev/vg00/lvol3 /dev/dsk/c2t2d0

==> Repeat for the rest of the lvols.

# vgreduce vg00 /dev/dsk/c2t2d0

# lvlnboot -v

==> Just checking. c2t2d0 should be out.

 

Change boot path ..

# setboot

=> Display boot path.

# setboot -p 0/0/2/0.2.0

=> Change primary boot path to c2t2d0

# setboot

=> Check again.

 

Now you can do your activity and reboot the server if you want shutdown -ry now

 

For PA

After it comes up .. re-do the mirroring process ..

# pvcreate -f -B /dev/rdsk/c1t2d0

# mkboot -l /dev/rdsk/c1t2d0

=> Create boot track (place boot utilities in boot area), -l means treat device as LVM disk.

# mkboot -a "hpux -lq" /dev/rdsk/c1t2d0

=> Add AUTO file in boot LIF area, "lq" option is to bypass quorum check.

=> Repeat for primary disk (c2t2d0) as well.

# lifcp /dev/rdsk/c1t2d0:AUTO -

=> Check content of AUTO file. Repeat for primary disk (c1t2d0).

# vgextend /dev/vg00 /dev/dsk/c1t2d0

=> Adding disk to root VG.

# pvdisplay -v /dev/dsk/c1t2d0

=> Note of the order of LVs (assuming it's lvol1,lvol2,lvol3,lvol4->lvol8)

# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0

=> Repeat for lvol2->lvol8

# lvlnboot -r /dev/vg00/lvol4 /dev/vg00

# lvlnboot -b /dev/vg00/lvol1 /dev/vg00

# lvlnboot -s /dev/vg00/lvol2 /dev/vg00

# lvlnboot -d /dev/vg00/lvol2 /dev/vg00

# lvlnboot -R /dev/vg00

=> Update BDRA (root, boot, swap and dump)

# lvlnboot -v

=> Check to make sure both disks are listed for root, boot and swap definition.

# setboot

=> Display boot path an set the boot path to the desired path with "setboot -a|-p"

 

For IA

# idisk -Rw /dev/rdsk/c1t2d0
# vi /tmp/pdf
3
EFI 500MB
HPUX 100%
HPSP 400MB
# idisk -f /tmp/pdf -w /dev/rdsk/c1t2d0
# idisk /dev/rdsk/c1t2d0
# insf -e -H 0/0/0/0.1.0
# insf -eCdisk
# efi_fsinit -d /dev/rdsk/c1t2d0s1
# pvcreate -fB /dev/rdsk/c1t2d0s2
# vgextend /dev/vg00 /dev/dsk/c1t2d0s2
# mkboot -e -l /dev/rdsk/c1t2d0
# efi_ls -d /dev/rdsk/c1t2d0s1
# lifls -l /dev/rdsk/c1t2d0s2
# efi_cp -d /dev/rdsk/c2t2d0s1 -u /EFI/HPUX/AUTO /tmp/prim
# echo "boot vmunix -lq" > ./AUTO
# efi_cp -d /dev/rdsk/c1t2d0s1 ./AUTO /efi/hpux/auto
# efi_cp -d /dev/rdsk/c1t2d0s1 -u /EFI/HPUX/AUTO /tmp/mir
# for lvol in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8
> do
> lvextend -m 1 /dev/vg00/$lvol /dev/dsk/c0t1d0s2
> done

# lvlnboot -r /dev/vg00/lvol4 /dev/vg00

# lvlnboot -b /dev/vg00/lvol1 /dev/vg00

# lvlnboot -s /dev/vg00/lvol2 /dev/vg00

# lvlnboot -d /dev/vg00/lvol2 /dev/vg00

# lvlnboot -R /dev/vg00

# lvlnboot -v

=> Check to make sure both disks are listed for root, boot and swap definition.

# setboot

=> Display boot path an set the boot path to the desired path with "setboot -h|-p"

.

AB