- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root disk problem.
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
09-16-2007 03:02 AM
09-16-2007 03:02 AM
One of the root disk which is mirrored has failed and we need to replace the disk.
what is the best way to replace the disk.
OS is hpux 11.0.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2007 04:01 AM
09-16-2007 04:01 AM
SolutionIf possible break the mirrors.
lvsplit
lvextend m=0
Normally its not possible to break the mirrors.
So.
Remove and replace the disk.
If the disk is not hot swappable, restart the system.
vgreduce -f vg00
This will force the now dead disk out of vg00. Follow the post vgreduce instructions strictly and carefully.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf.
re-mirror and test vg00 mirror configuration.
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
09-16-2007 11:22 PM
09-16-2007 11:22 PM
Re: Root disk problem.
Thanks for the detailed reply.
how abt the below process.
1.replace the def disk with new disk.
2.mv /etc/lvmtab /etc/lvmtab.old
3.pvcreate -f -B /dev/rdsk/newdisk.
4.mv /etc/lvmtab.old /etc/lvmtab
5.vgcfgrestore -n vg00
6.vgchange -a y /dev/vg00
7.vgsync vg00
8.mkboot /dev/rdsk/newdisk
9.mkboot -a "hpux -lq" /dev/rdsk/newdisk
10.lvlnboot -Rv /dev/vg00
Let me know if im missing anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2007 11:40 PM
09-16-2007 11:40 PM
Re: Root disk problem.
My procedure was developed and tested on 11.11.
I can't test it on 11.00 but you seem to be missing these steps.
# 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?
I don't know if they are needed or correct for 11.00.
I like your plan and think it will work though I'd do it in an order more like my procedure (pride of ownership perhaps?).
A test boot off the alternate root disk is the only way to confirm your configuration is correct.
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
09-17-2007 12:42 AM
09-17-2007 12:42 AM
Re: Root disk problem.
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
There is everything you need.
Regarding your steps:
No need for steps 2, 3 and 4
start with step 1 followed by 5 and extend this step with the disk device.
step10:
lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
step 11:
lvlnboot -v
@SEP:
in current 11.11 the file updatediaglif/2 (offline diagnostics) is no longer there.
It is now avaiolable from http://software.hp.com
and installed via swinstall (if needed).
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
09-26-2007 12:31 AM
09-26-2007 12:31 AM
Re: Root disk problem.
Thanks evryone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2007 12:32 AM
09-26-2007 12:32 AM