- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: break mirror for PA and IA servers
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2011 09:47 AM
тАО07-20-2011 09:47 AM
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.
- Tags:
- break mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2011 09:50 AM
тАО07-20-2011 09:50 AM
Re: break mirror for PA and IA servers
have you tried using lvsplit and lvmerge before ?
Like it or worked !! Click kudos !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2011 09:54 AM
тАО07-20-2011 09:54 AM
Re: break mirror for PA and IA servers
i haven't work on lvsplit and lvmerge , can you please provide me procedure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2011 12:31 PM
тАО07-20-2011 12:31 PM
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:
vxbrk_mirror
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2011 07:46 AM
тАО07-21-2011 07:46 AM
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"
.