- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror UX
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
Forums
Discussions
Discussions
Discussions
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
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
01-19-2006 07:50 AM
01-19-2006 07:50 AM
3 disks included in a system.the first disk was included in root vg00. Planning on mirroring root vg00 to third disk.
It is been a long time for me worked on mirror ux stuff.
Appreciate your help in this.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 07:57 AM
01-19-2006 07:57 AM
SolutionMirroring root, boot and primary swap
=====================================
pvcreate -B /dev/dsk/c0t3d0
vgextend /dev/vg00 /dev/dsk/c0t3d0
mkboot /dev/dsk/c0t3d0
mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c0t3d0
lvextend -m 1 /dev/vg00/boot /dev/dsk/c0t3d0
lvextend -m 1 /dev/vg00/root /dev/dsk/c0t3d0
lvextend -m 1 /dev/vg00/prswaplv /dev/dsk/c0t3d0
Reactivate disks with vgchange -a y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 08:01 AM
01-19-2006 08:01 AM
Re: Mirror UX
A recent (and best) guidelines I've seen are in the document below. You don't say if your server is an Itanium one. The procedure differs slightly for IA versus PA-RISC so see pages 24-28:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 08:07 AM
01-19-2006 08:07 AM
Re: Mirror UX
Check this doc and its covering the root disk mirror on 11.23 ,
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 08:11 AM
01-19-2006 08:11 AM
Re: Mirror UX
Identify your disk with ioscan.
# ioscan -fnC disk
then do the following
# pvcreate -fB /dev/rdsk/cxtxd0
# mkboot -l /dev/rdsk/cxtxd0
# mkboot -a "hpux -lq ;0)/stand/vmunix" /dev/rdsk/cxtxd0
lifcp /dev/rdsk/cxtxd0:AUTO -
# vgextend /dev/vg00 /dev/dsk/cxtxd0
# bdf
You can mirror your vg00 LVs with this simple loop script.. or do lvextend -m 1 on each LV to the disk.
for i in 1 2 3 4 5 6 7 8 ;do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cxtxd0
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 08:19 AM
01-19-2006 08:19 AM
Re: Mirror UX
for x in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8
do
echo "\n******** Doing ${x} ********\n"
lvextend -m 1 /dev/vg00/${x} /dev/dsk/c1t2d0
done ; banner All Done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 09:00 AM
01-19-2006 09:00 AM
Re: Mirror UX
Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.
1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
vgdisplay -v vg00
Then lvextend for all other lvols:
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0
lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 09:16 AM
01-19-2006 09:16 AM
Re: Mirror UX
You can use the attached script
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 09:21 AM
01-19-2006 09:21 AM
Re: Mirror UX
examples below should be good enough for you to understand, but only if its a pa 11.23 insatll.
If its itanium install then further steps are needed, as the disk will need partitioning first otherwise it will not boot/work should a failure happen.
Andy
Also, please take time to amend this situation and reward people for there efforts in trying to help you.
I have assigned points to 87 of 300 responses
9doesnt look very good in your profile)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 09:33 AM
01-19-2006 09:33 AM
Re: Mirror UX
You must review your threads after posting.
Andrew is correct. Please take out some time to do that.
Enjoy foruming ,
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 09:57 AM
01-19-2006 09:57 AM
Re: Mirror UX
Like to thank you for your responses.
SUCCESSFULLY created a mirror disk.
Will be sure to review the thread and will award your replies with out fail.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 10:10 AM
01-19-2006 10:10 AM
Re: Mirror UX
( * 0 point please. )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 11:03 AM
01-19-2006 11:03 AM
Re: Mirror UX
u'r funny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2006 11:04 AM
01-19-2006 11:04 AM