- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems Restoring VG After Disk Replacement
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
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
тАО07-11-2005 05:07 AM
тАО07-11-2005 05:07 AM
I'm working on a very old HP server running HP-UX 9.x. The second of two hard disks failed (non-root, non-mirrored), so we've yanked it out and replaced it.
After installing the new drive, I took the following steps in an attempt to recreate all of the logical volumes and mount them, prior to restoring files to them from tape--this was in maintenance mode (hpux -lm). There is only one VG defined (vg00), and the replacement disk device file is c0d0s2 (same as the failed unit); the existing disk is c2d0s2.
1. newfs /dev/rdsk/c0d0s2 C2490A
2. vgcfgrestore -n /dev/vg00 /dev/rdsk/c0d0s2
3. rm /etc/lvmtab
4. vgimport -v /dev/vg00 /dev/rdsk/c0d0s2 /dev/rdsk/c2d0s2
5. vgscan -v
6. vgchange -a y /dev/vg00
At this point, the volume group is active. However, I can't mount any of the logical volumes that are on the new drive (lvol3 through lvol6) because fsck fails, complaining about TRASHED VALUES and BAD MAGIC NUMBER in the super blocks of the logical volumes. I've tried specifying alternate superblocks with the -b option, but then fsck complains about just about everything else... unknown file types, bad addresses, etc.
Now, I've noticed that as soon as I issue the vgcfgrestore command, fsck starts complaining about the super block. After the newfs, fsck is happy, but after vgcfgrestore, fsck is unhappy, hence I can't get anything to mount.
I'm stuck. Does anyone have any ideas? Am I just going about this the wrong way?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:17 AM
тАО07-11-2005 05:17 AM
Re: Problems Restoring VG After Disk Replacement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:36 AM
тАО07-11-2005 05:36 AM
Re: Problems Restoring VG After Disk Replacement
But, since your statement says you can't get lvols back, it looks like you're going for lvm.
So,
change step 1 to pvcreate instead of newfs.
Run steps 2-6 as is.
Then do a "pvdisplay -v /dev/rdsk/c0d0s2" off to a file, and get a list of all of the lvols that are on that drive (it should be lvol3 through lvol6 as you've mentioned that they are missing).
Now, just newfs those lvols that are in the drive and mount them.
Big problem though. Currently /dev/vg00/lvol3 is usually root in most systems, lvol4 is usually /tmp, lvol5 could possibly be /home, and lvol6 might be /opt (but maybe not in 9.x). Point is, I don't think you've got a root system - but I really can't remember the splits from 9.x (if they were different). If this is true - you're going to need to do a restore. If you don't have a restore tape (or a dd of the disk), this probably means install...
If you are totally hosed, there is one possible way out of this that I've used in the past. In many cases I found that what went out on the drives was not the media, but the logic card portion of the drive. So, back before I had mirroring - my first attempt was to take the new drive that HP brought out(if it was the exact same drive) and pull the logic board off and put it on the non-running drive. If it came up, I could a) just run with what I've got or b) "dd" the contents of the disk to tape, swap the logic board back to the new replacement drive, and "dd" the tape onto the new media.
If you're lucky, and it's not a media failure and you've got the same drive to replace with, the above would get you back up and running quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:39 AM
тАО07-11-2005 05:39 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 06:42 AM
тАО07-11-2005 06:42 AM
Re: Problems Restoring VG After Disk Replacement
makefs /dev/vg00/rlvol3 C2490A
...on each of the logical volumes in turn. After that, I was able to fsck and mount each volume. At the moment, I am sucessfully pulling files back from tape to each of the logical volumes.
Thanks for the info!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 06:46 AM
тАО07-11-2005 06:46 AM