- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace a boot mirror disk
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
03-20-2006 04:01 AM
03-20-2006 04:01 AM
Replace a boot mirror disk
I have a failed boot mirror disk on a rx1620 with 11.23.
How is the procedure to replace the bad disk without stop the system operation?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:07 AM
03-20-2006 04:07 AM
Re: Replace a boot mirror disk
pvcreate -B /dev/rdsk/c1t0d0
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t0d0
# vgchange -a y /dev/vg00
# mkboot -a /dev/rdsk/c1t0d0
# mkboot -a "hpux -lq" /dev/rdsk/c1t0d0
# lvlnboot -R
# lvlnboot -v #(check).
# vgsync
# setboot #(check)
& check after rebooting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:12 AM
03-20-2006 04:12 AM
Re: Replace a boot mirror disk
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:15 AM
03-20-2006 04:15 AM
Re: Replace a boot mirror disk
Here is how I'd do it.
If possible, break the mirrors and vgreduce the volume group prior to doing the hot swap.
Do the hot swap dance.
Lets say the device is c2t0d0
pvcreate -B -f /dev/rdsk/c2t0d0
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t0d0
vgchange -a y /dev/vg00
mkboot -a /dev/rdsk/c1t0d0
mkboot -a "hpux -lq" /dev/rdsk/c2t0d0
lvlnboot -R
lvlnboot -v
A full mirroring procedure, which you would do if you were successful in reducing the disk out of the volume group.
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
03-20-2006 04:17 AM
03-20-2006 04:17 AM
Re: Replace a boot mirror disk
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
Don't forget to stop the disk access (pvchange -a n /dev/rdsk/cxtydz) and to initialize the disk partitions (idisk) like descripted in the manual.
It's NOT neccessary to do a "pvcreate"!
Please read the section "Mirroring the Root Volume on Integrity Servers" for how to make the disk bootable (copy EFI content and set boot string).
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
03-20-2006 04:21 AM
03-20-2006 04:21 AM
Re: Replace a boot mirror disk
How to replace failed mirror of root disk
After failed disk has been replaced by HP (assuming the disk is c1t5d0):
vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t5d0
mkboot /dev/rdsk/c1t5d0
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c1t5d0
vgchange -a y /dev/vg00
lvlnboot -Rv /dev/vg00
vgsync /dev/vg00
I attached steps to mirror root on Itanium.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:23 AM
03-20-2006 04:23 AM
Re: Replace a boot mirror disk
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
03-20-2006 04:29 AM
03-20-2006 04:29 AM
Re: Replace a boot mirror disk
as its an itanium you need to partition the disk first with
#idisk
commands first before continuing with lvm commands.
then afterwards populate the 3rd partition(service) with diagnostics.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:35 AM
03-20-2006 04:35 AM
Re: Replace a boot mirror disk
Take a look at this document...it'll be helpful in providing the steps that you are trying to accomplish:
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000079971585
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:35 AM
03-20-2006 04:35 AM
Re: Replace a boot mirror disk
RX1620 is a Itanium box. So the mirror of your boot disk is slightly different from the usual PA-RISC activity.
Firstly, I believe rx1620 will have a hot swappable disk. Just make sure, which disk is gone bad and locate the HDD bay with the help of RX1620 Hardware manual and H/W address. Once you replace the HDD, you need to do the following to restore the boot mirror...
For the explanatiuon I assume the replace disk is.../dev/dsk/c2t1d0
From the below link, execute the commands till STEP 4,
Now,
5) Initialize the LVM regions...
pvcreate -B /dev/rdsk/c2t1d0s2
6) Restore the LVm metadata's...
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0s2
7) activate vg00
vgchange -a y /dev/vg00
8) syncronize the LV's..
vgsync /dev/vg00
NOTE: the above action will take a while..
9) Recover the missing links if any..
lvlnboot -R
10) check the sanity..
vgdisplay -v vg00
When you get a down window, you can check by booting through the second disk, and confirm that all is fine..
Regards,
Senthil Kumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 04:41 AM
03-20-2006 04:41 AM
Re: Replace a boot mirror disk
Hi Montano,
RX1620 is a Itanium box. So the mirror of your boot disk is slightly different from the usual PA-RISC activity.
Firstly, I believe rx1620 will have a hot swappable disk. Just make sure, which disk is gone bad and locate the HDD bay with the help of RX1620 Hardware manual and H/W address. Once you replace the HDD, you need to do the following to restore the boot mirror...
For the explanatiuon I assume the replace disk is.../dev/dsk/c2t1d0
From the below link, execute the commands till STEP 4,
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html
Now,After step 4 of the above link...
5) Initialize the LVM regions...
pvcreate -B /dev/rdsk/c2t1d0s2
6) Restore the LVm metadata's...
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0s2
7) activate vg00
vgchange -a y /dev/vg00
8) syncronize the LV's..
vgsync /dev/vg00
NOTE: the above action will take a while..
9) Recover the missing links if any..
lvlnboot -R
10) check the sanity..
vgdisplay -v vg00
When you get a down window, you can check by booting through the second disk, and confirm that all is fine..
Regards,
Senthil Kumar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2006 12:55 PM
03-20-2006 12:55 PM
Re: Replace a boot mirror disk
these are some link you can refer to:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=907309
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=974862
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=885030
Hope these are enought for U.
tienna