- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to recover from disk with invalid super-block
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
11-01-2001 08:00 PM
11-01-2001 08:00 PM
how to recover from disk with invalid super-block
-----------------------------------------------
# fsck -F vxfs -o full,nolog -y /dev/dsk/c2t6d0
invalid super-block
search for auxiliary super-block? (ynq)y
alternate super-block not found
vxfs fsck: read failure at 1114112
file system check failure, aborting ...
#
-----------------------------------------------
Mirroring was not set and it is not clear when the super-block got corrupted.
Earlier we had experimented to recover - after booting the system from the alternate disk, c2t5d0, - but did not succeed to mount c2t6d0.
We can also boot from /stand/vmunix.prev on c2t6d0 but only in single user mode. Though the IPL can see both /stand/vmunix.prev and /stand/vmunix, ls on /stand lists only
the ioconfig file. We can see the file structure on / but most directories are empty since the logical volumes are not mounted.
Does anyone know how to recover from this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 08:05 PM
11-01-2001 08:05 PM
Re: how to recover from disk with invalid super-block
-----------------------------------------------
# fsck -F vxfs -o full,nolog -y /dev/rdsk/c2t6d0
invalid super-block
search for auxiliary super-block? (ynq)y
vxfs fsck: read failure at 1114112
file system check failure, aborting ...
#
-----------------------------------------------
-----------------------------------------------
# fsck -F vxfs -o full,nolog -y /dev/dsk/c2t6d0
invalid super-block
search for auxiliary super-block? (ynq)y
alternate super-block not found
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
#
-----------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 09:05 PM
11-01-2001 09:05 PM
Re: how to recover from disk with invalid super-block
After you boot from single user mode,
mount the /home Filesystem manually.
If you don't remember the LV to /home belonged,
check /etc/fstab file.
If the mount does not work, run
fsck on the /home LV.
Once you are able to mount /home, tar
the files onto the tape;
-Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2001 09:16 PM
11-01-2001 09:16 PM
Re: how to recover from disk with invalid super-block
VxFS file systems do not use auxiliary superblocks. The primary superblock is
created along with a copy. It is placed in the Allocation Unit Header (similar
to HFS's Cylinder Group). If the superblock and it's copy (located in the
Allocation Unit Header) are overwritten, then there is not an available
superblock to recover from. The only alternative is to newfs the
filesystem and restore the file system(s) contents from a current backup.
Regards
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:06 AM
11-02-2001 06:06 AM
Re: how to recover from disk with invalid super-block
For a LVM disk you use /dev/vg??/rlvol? device files for fsck (and mount), not /dev/[r]dsk/c?t?6d? ones!
However before you can fsck/mount a disk on *another* system, which you are probably doing, you first have to vgimport it. See the vgimport manual page on how to do this or do it with SAM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 06:21 AM
11-02-2001 06:21 AM
Re: how to recover from disk with invalid super-block
don't think you can recover from a superblock error. You have to recreate the filesystem and load the data from the backup.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2001 12:39 PM
11-02-2001 12:39 PM
Re: how to recover from disk with invalid super-block
1. c2t6d0 is a "vxfs+boot" (the original boot disk).
2. on c2t6d0, the /etc/fstab is
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
3. The /etc/lvmtab is messed up and hence "vgscan" fails. It can't access the list of physical volumes for /dev/vg00 (which is just /dev/dsk/c2t6d0).
How can we rebuild this and fsck the /dev/vg00/lvol[n](s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 01:43 AM
11-06-2001 01:43 AM
Re: how to recover from disk with invalid super-block
You also say that you have some problem with vgscan, but it is not clear what kind of problem, because vgscan is intended to *fix* /etc/lvmtab, so it does not matter that it is "messed up".
In any case, while in single user mode, can you *access* the desired LV (/dev/vg00/lvol5 (/home)), and, more specifically, can you fsck it? (fsck -F vxfs -o full,nolog -y /dev/vg00/rlvol5 (note *r*lvol5)? If so, then you can probably mount it, back it up (for example fbackup is (also) in /sbin), etc..
When you respond again, please give as much detail as possible, because until now we don't even know *how* you are trying to do the recovery (i.e. just using the original system, or having the problem disk connected to another, working, 'host' system, or ...). If something does not work, then please post the commands/options/parameters used and the resulting messages.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2001 11:29 AM
11-07-2001 11:29 AM
Re: how to recover from disk with invalid super-block
since I was able to boot. Dmitri Zogin of WTEC (Cupertino) took a look at my machine and restored the previous configuration (a calculated risk) using vgcfgrestore. Ofcourse this was done as part of a series of commands to diagnose and fix the "invalid super-block" problem.