- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring Root Disk with different drives
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
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
10-24-2002 07:35 AM
10-24-2002 07:35 AM
Greetings!
I have a c240 running HP-UX 11.00 with Mirroring. I'd like to mirror the root disk with an available internal disk. My root disk is a 4g drive and the available disk is a 9gig drive. I looked high and low for information on this but couldn't find any.
Your advice will be greatly appreciated.
-john
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 07:43 AM
10-24-2002 07:43 AM
Solutiono Assuming c1t2d0 is primary disk and c2t2d0 is the disk to be mirrored.
o Assuming (lvol1=/stand;lvol2=primary swap;lvol3=/;lvol4->lvol8=the rest)
# swlist -l bundle| grep -i mirror
=> Make sure you have MirrorUX installed
# pvcreate -f -B /dev/rdsk/c2t2d0
# mkboot -l /dev/rdsk/c2t2d0
=> Create boot track (place boot utilities in boot area), -l means treat device as LVM disk.
# mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
=> Add AUTO file in boot LIF area, "lq" option is to bypass quorum check.
=> Repeat for primary disk (c1t2d0) as well.
# lifcp /dev/rdsk/c2t2d0:AUTO -
=> Check content of AUTO file. Repeat for primary disk (c1t2d0).
# vgextend /dev/vg00 /dev/dsk/c2t2d0
=> Adding disk to root VG.
# pvdisplay -v /dev/dsk/c2t2d0
=> Note of the order of LVs (assuming it's lvol1,lvol2,lvol3,lvol4->lvol8)
# lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c2t2d0
=> Repeat for lvol2->lvol8
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /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.
# setboot -a 0/0/2/0.2.0
=> Change alternate boot path to mirrored disk.
# shutdown -r -y 0
=> Interrupt upon bootup and select alt path to boot from in order to test.
For the official doc take a look at the SOftware Recovery Handbook (chap 16)
http://us-support3.external.hp.com/iv/data/documents/DE_SW_UX_swrec_EN_01_E/Introduction.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 07:44 AM
10-24-2002 07:44 AM
Re: Mirroring Root Disk with different drives
You can do it, but if your vg has been created with default options for max PE and PE size, you will not be able to use it entirely (some PE will not be addressed). Theses parameters cannot be modified without reinstalling your system (but you can use ignite).
Regards,
Jean-Louis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 07:45 AM
10-24-2002 07:45 AM
Re: Mirroring Root Disk with different drives
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 08:11 AM
10-24-2002 08:11 AM
Re: Mirroring Root Disk with different drives
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 08:39 AM
10-24-2002 08:39 AM
Re: Mirroring Root Disk with different drives
In this situation I would recomend you to take an ignite backup of vg00 and restore it on 9GB disk. And then do the mirroring on the 4GB Disk as described by SK.
And regarding the size difference, nothing will happen. Only the limitation is , you can mirror only upto the size of your smaller disk.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2002 10:24 AM
10-24-2002 10:24 AM
Re: Mirroring Root Disk with different drives
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 07:48 AM
10-25-2002 07:48 AM
Re: Mirroring Root Disk with different drives
You guys are great! It looks like my only limitation is lossing 5 gig of space on the 9gig drive.
Thanks!
-john
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 07:48 AM
10-25-2002 07:48 AM
Re: Mirroring Root Disk with different drives
As Sandip has said reverse the two disks and you will not loose the 5 gig.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 07:52 AM
10-25-2002 07:52 AM
Re: Mirroring Root Disk with different drives
You might consider making an Ignite 'make_tape_recovery' tape of vg00 and reinstalling your system. If you do so, choose the 9GB disk as the installation target, *or*, preferably, modify the target volume group parameters to specify a 'max_pe' and 'pe_size' value that spans at *least* a 9GB volume. Then, remirror your volume group.
You can't change the 'max_pe' and 'pe_size' once a volume group is created.
The suggestion above would allow you to replace the 4GB disk with a larger one later and be able to expand utilization of the physical disk beyond 4GB.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 08:20 AM
10-25-2002 08:20 AM
Re: Mirroring Root Disk with different drives
You may want to run your ignite tape and rebuild your root volume group on the 9GB disk making that the primary drive then mirror over to the 4GB disk. You won't loose the 5GB even though the diskspace is allocated to VG00 it is still usable by you for other things.
have a good day.
fg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 09:15 AM
10-25-2002 09:15 AM
Re: Mirroring Root Disk with different drives
I've never used ignite. Does it come with the standard install of HP-UX? Will it allow me to recreate the same boot image/filesystems/patches that I currently have on the 4 gig drive?
-john
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2002 09:35 AM
10-25-2002 09:35 AM
Re: Mirroring Root Disk with different drives
A current version of Ignite along with documentation can be obtained from the Ignite site here:
http://www.software.hp.com/products/IUX/index.html
Installation is done with 'swinstall' and includes man pages. A reboot is not necessary to configure Ignite.
You should always have a current Ignite recovery tape available. With it, you can capture a bootable image of your root volume group (vg00) and use it to clone or restore a server. You can also use it to recreate your root volume group logical volume sizes by doing the equivalent of a "cold" install.
Yes, your *complete* system configuration is captured by an Ignite recovery tape.
Use this to create a tape archive for all of vg00:
# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn
The 'make_tape_recovery' command also allows the specification of include or exclude options for other volume groups, and directories (see the man pages), although Ignite is *not* designed to be a backup solution.
For cloning, or for installing, interrupt the boot process and boot from the Ignite tape. You can choose the Advanced Installation tab and resize any filesystems as needed.
I have found that it is easiest to defer network configuration during the Ignite recovery. Indicate when queried by Ignite that you wish to run '/sbin/set_parms' to configure networking afterwards.
Regards!
...JRF...