- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to mirror boot disks for hp-ux 11iv2 Integr...
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
07-30-2008 11:46 PM
07-30-2008 11:46 PM
Script to mirror boot disks for hp-ux 11iv2 Integrity server
Hi All,
I would be very thankful if somebody could provide me a script to mirror the boot disks of a hp-ux 11iv2 Itanium server.
I have this script - to mirror both PARISC and Itanium. It works on PARISC but it is encountering an error on Itanium. This script was actually modified from HP's document post Ignite recovery mirroring of boot disks. Refer to the attached.
Many thanks,
Charlie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 12:25 AM
07-31-2008 12:25 AM
Re: Script to mirror boot disks for hp-ux 11iv2 Integrity server
This is not something you generally script.
Though you can.
Here is a procedure that you can modify slightly to work with 11.23 and then script if you wish.
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
# real disk. repeat for other lvols
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
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-31-2008 12:32 AM
07-31-2008 12:32 AM
Re: Script to mirror boot disks for hp-ux 11iv2 Integrity server
SEP,
Thank you for this but we already have the procedure.
Thanks,
Charlie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 12:49 AM
07-31-2008 12:49 AM
Re: Script to mirror boot disks for hp-ux 11iv2 Integrity server
What error you get?
I assume there is a problem here:
PARTS2=${PART2}s2
...
idisk -qwf /tmp/partitionfile /dev/rdsk/$PART2
The idisk command need the disk device file, NOT the partition device file!
Same for this:
mknod /dev/rdsk/${PART2}s1
this becaomes likely cxtydzs2s1 ???
Next wrong line is here:
mkboot -a "hpux -lq" /dev/rdsk/${PARTS2}
Needs to be
===============================
(from my script:)
autobootstring="boot vmunix -lq"
echo "write AUTO file to disk ..."
efi_cp -d /dev/rdsk/${mirrdisk}s1 /tmp/AUTOfile /EFI/HPUX/AUTO
===============================
Consider to write the script based on the procedure in Appendix:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 01:24 AM
07-31-2008 01:24 AM
Re: Script to mirror boot disks for hp-ux 11iv2 Integrity server
Boot disk mirroring is not that complex on Itanium only few changes.
Please refer to following PDF.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Appendix A. Page 26 to 28.
You can use this doc for more than mirroring task. Nicely written..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2008 01:12 AM
08-01-2008 01:12 AM
Re: Script to mirror boot disks for hp-ux 11iv2 Integrity server
This is the script I'm talking about on the HP Document Ignite-UX and MirrorDisk/UX. You'll see the script from page 10 to 13.
http://docs.hp.com/en/5992-2900/5992-2900.pdf
Torsten, thanks for pointing the major error.
I know the script is more complicated than the once you've all mentioned ... but this has the feature to identify the right size of the EFI and HPSP sections on the primary boot disk.
Thanks,
Charlie