- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- root disk missing?
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
05-22-2007 01:42 AM
05-22-2007 01:42 AM
Thanks Mike
1) vgreduce /dev/vg00 /dev/dsk/c2t2d0
2) physically pull out the bad disk and put in the good.
3) mkboot -l /dev/rdsk/c2t2d0
4) mkboot -a "hpux -lq" /dev/rdsk/c2t2d0
5) vgsync vg00
> vgdisplay -v vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 2169
Alloc PE 1704
Free PE 465
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
~~~~~~~ cut ~~~~~~~~
--- Physical volumes ---
PV Name /dev/dsk/c1t2d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 2169
Free PE 465
Autoswitch On
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 01:45 AM
05-22-2007 01:45 AM
Re: root disk missing?
omit step 1
after installing the new disk, use vgcfgrestore to restore LVM layout to the disc.
Then do the vgsync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 01:47 AM
05-22-2007 01:47 AM
Re: root disk missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 01:49 AM
05-22-2007 01:49 AM
Re: root disk missing?
2) Use vgcfgrestore on the replaced drive
3) vgsync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 01:51 AM
05-22-2007 01:51 AM
Re: root disk missing?
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 01:51 AM
05-22-2007 01:51 AM
Re: root disk missing?
After that, do the vgcfgrestore as recommended above. I would then do 'vgchange -a y vg00' and then a 'vgsync vg00' to sync all VGs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 02:07 AM
05-22-2007 02:07 AM
Re: root disk missing?
Anyway for me to confirm the vg00.conf file is good?
What about mkboot commands? Will the vgcfgrestore restore those configs ?
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 02:50 AM
05-22-2007 02:50 AM
Re: root disk missing?
Why the vgchange? Wouldn't you expect it to already be active? Or does this accomplish something else?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 02:59 AM
05-22-2007 02:59 AM
Re: root disk missing?
From ypur input the procedure to be followed is
Replace the disk
run
#vgcfgrestore vg00
for restoring the vg details to new disk.
Then create the mkboot
mkboot /dev/rdsk/c2t2d0
mkboot -a "hpux -lq" /dev/dsk/c2t2d0
lvextend -m 1 /dev/vg00/boot /dev/dsk/c2t2d0
similarly root,swap and all other Lvols in your vg00 volume.
Then update the vg00
lvlnboot -R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 05:04 AM
05-22-2007 05:04 AM
Re: root disk missing?
After failed disk has been replaced by HP (assuming the disk is c2t2d0):
vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t2d0
mkboot /dev/rdsk/c2t2d0
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c2t2d0
vgchange -a y /dev/vg00
lvlnboot -Rv /dev/vg00
vgsync /dev/vg00
1) If the disk is completely "dead", such as if you run ioscan and status is "no_hw" then you can hot swap the disk online.
2) However in circumstances where the disk has not fully failed please do one of the following to avoid data corruption :
a) reduce mirror before replacing the disk
b) deactivate VG before replacing the disk
c) shutdown system to replace the disk
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 05:17 AM
05-22-2007 05:17 AM
Re: root disk missing?
I am still wondering why the vgchange? Vg00 will be online during the replacement. c1t2d0, the mirror, will be accessed during the replacement. Will you explain. Also, c2t2d0 does not show at all in ioscan. Would you say its safe to pull out HOT?
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 05:24 AM
05-22-2007 05:24 AM
SolutionAs far as ioscan, you should see something like:
disk 13 1/0/4/0/0.1.19.0.0.0.0 sdisk NO_HW DEVICE EMC SYMMETRIX
/dev/dsk/c11t0d0 /dev/rdsk/c11t0d0
But if c2t2d0, then it is really gone...
Does the device file show in a ll /dev/dsk/c2t2d0 ?
You may have to do a total re-mirror and may have to do a vgreduce -f
I would try hot swapping it, then run a ioscan -fnC disk and an insf -eC disk
Then see if it shows in your ioscan again...
If yes, then just do the vgcfgrestore commands...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 05:27 AM
05-22-2007 05:27 AM
Re: root disk missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2007 05:57 AM
05-22-2007 05:57 AM
Re: root disk missing?
pvchange -a y|n ...
to (de-)activate the disk for LVM use to make the hot-swap safe, see
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!
