- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Boot disk failure/recovery
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
Discussions
Discussions
Discussions
Forums
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
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-17-2007 06:38 AM
тАО01-17-2007 06:38 AM
Ok, here's the picture. I've recently taken over admin services on an HP L2000. It appears we are having problems with the main boot disk, /dev/dsk/c1t2d0. Mirroring is being used, as I can see the mirror copies when doing a vgdisplay, etc. When I do an lvdisplay of all the different LVs in /dev/vg00, some of the extents on the main disk are stale, but all of the extents on the secondary disk are current.
So, here's my situation. I've read through notes in other posts on what needs to be done to recover (boot from alternate disk, etc.) but I have a bad feeling about just how the secondary disk is actually set up. I see it's mirrored, but I'm not 100% certain it's bootable.
I say this because when I run lvlnboot -v, I'm not getting anything back. Also, if I do a lifls on the alternate disk, it's only coming back with LABEL. To me, it looks like even though this disk is mirrored from an LVM perspective, I don't think I could boot from it.
I'm concerned. How can I be totally prepared when I go to replace the disk that seems to be bad??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2007 06:57 AM
тАО01-17-2007 06:57 AM
SolutionI would approach your problem like this:
1) DO NOT SHUTDOWN! Slide your existing primary boot drive out a few centimters and allow it to spin down. Wait about 60 seconds. This will have the effect of converting your partially failed drive into a fully failed drive.
2) Remove the failed drive completely and insert the replacement drive.
3) vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
4) vgchange -a y /dev/vg00
5) mkboot /dev/rdsk/c1t2d0
6) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t2d0
7) lvlnboot -R
8) lvlnboot -v
and see if at least the primary boot data are displayed
9) vgsync /dev/vg00
Now, if lvlnboot -v still does not display the alternate boot data then I would unmirror all the LVOLS and then vgreduce the alternate disk out of vg00. Next run a "pvcreate -f -B" on the alternate disk and proceed to mirror the disk. I suspect that the "-B" pvcreate option was left out of the original mirroring procedure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2007 07:04 AM
тАО01-17-2007 07:04 AM
Re: Boot disk failure/recovery
First thing - make an ignite recovery tape. That way, if the mirror disk is not bootable, you will still be able to recover the system.
you can try the commands to copy the boot info and place the boot string in the mirror disk
mkboot ├в b /dev/rdsk/c2t0d0 /dev/rdsk/c1t0d0
copies the boot info from the original boot disk to the mirror disk (c2t0d0 in this case)
mkboot ├в a ├в hpux ├в lq├в /dev/rdsk/c1t0d0
places the boot string in the mirror disk
lvlvnboot to show the results
however, if the mirror disk was not created with the
pvcreate ├в B /dev/rdsk/c1t0d0
command, the disk is not bootable, nad the only way to make it bootable is to remove it from the vg and re-run the pvcreate command. Of course this will not work in your case, since the original boot disk is going bad
That leaves a couple of alternatives
1. If you another idle disk on the system, run the pvcreate and mkboot commands against it and creae a second mirrored disk.
2. make an ignite backup of vg00, replace the primary disk, and restore from the ignite tape (then mirror the disk properly
lvlnboot -vR /dev/vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2007 07:08 AM
тАО01-17-2007 07:08 AM
Re: Boot disk failure/recovery
When I saw that lvlnboot didn't show anything, I was afraid things weren't done quite right to begin with. I was afraid shutting down would put me in a bind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 08:32 AM
тАО01-23-2007 08:32 AM
Re: Boot disk failure/recovery
I'm going to attempt this recovery tomorrow or Thurs.
Just to make sure I'm straight, once I replace the failed drive, my first command is the vgcfgrestore. I don't need to do a pvcreate first, correct??, since the vgcfgrestore should tell the disk it was the boot disk?
I certainly appreciate your help. Now I see why you're #1!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 09:19 AM
тАО01-23-2007 09:19 AM
Re: Boot disk failure/recovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-23-2007 09:25 AM
тАО01-23-2007 09:25 AM
Re: Boot disk failure/recovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2007 02:56 AM
тАО01-24-2007 02:56 AM
Re: Boot disk failure/recovery
Still, I probably deserve a good whack anyway.