- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need help recovering from disk crash
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
12-13-2001 09:54 AM
12-13-2001 09:54 AM
The fsck fails in the last phase saying there is disk media problems, can't read certain blocks, etc. (so it can't repair the cylinder groups). I figured it's just complaining b/c there's now a 2 gig section of the logical volume missing but had hoped I could just ignore that to recover whatever is left on the other drives.
I tried several things yesterday that may have just made things worse but I'll mention what I did anyway. I replaced the lvmtab file and tried the vgreduce and vgscan commands just trying to get the system to quit trying to query the bad drive. It no longer does that but I still can't seem to get the /home logical volume to a state where I can mount it.
Any suggestions? I've checked and it won't be that big a deal to go with our last backup but one user did have quite a few files that she had changed that aren't in the latest backup. With only 2 gig of the 60 gig total being bad, I was kind of hoping we might be able to recover her files (if we were lucky and her files are on one of the disks that are still okay).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 10:22 AM
12-13-2001 10:22 AM
Re: Need help recovering from disk crash
Try
mount -f /dev/vg00/lvol_name /home
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 10:28 AM
12-13-2001 10:28 AM
Re: Need help recovering from disk crash
I am not very good at this stuff, but one thing that seems possible would be
create a new volume group
vgimport the disks that were in /home onto this new volume group
vgchange and make it available
and then try to mount it.
I have done this for non root volume groups with a single disk.
This will not do any harm to the data on the disks.
Hope this helps...
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 10:31 AM
12-13-2001 10:31 AM
Re: Need help recovering from disk crash
If the file system type is vxfs, then try doing a full fsck.
# fsck -o full lvname
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 10:50 AM
12-13-2001 10:50 AM
Re: Need help recovering from disk crash
Sanjay, the "mount -f" was what I was hoping would work but that option no longer seems to work. I'm using HP-UX 10.2 and when trying the -f option it just gives me the command usage help of the mount command.
To the other response, the file systems are HFS.
I'll try the new volume group suggestion shortly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 11:30 AM
12-13-2001 11:30 AM
Re: Need help recovering from disk crash
Is this bad disk on a RAID unit?? If so, replace the bad disk and it should automatically sync up the data through RAID and get back to normal.
Otherwise, try
vgreduce -f vgname
(or vgreduce -l vgname )
That should remove the missing disk from the configuration; and just hope that you are lucky to mount the filesystem! there is no guarantee that you can have one disk containing is failed and you can restore the filesystem. Size of missing data does not matter.
So, just hope. For a longterm, have a RAID solution as a protection. With so many disks, it makes sense to have some protection against disk failures.
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 11:40 AM
12-13-2001 11:40 AM
Re: Need help recovering from disk crash
I did use the vgreduce command to get the system to stop complaining about not being able to query the bad disk but that still didn't help me get the file system mounted. It basically went through quite a few bad block messages but was able to fix everything until phase 6. Phase 6 of the fsck ends with errors of not being able to read a certain block number and saying there are disk media errors, etc. File system modified but still unclean (was the basic diagnosis).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 02:41 AM
12-20-2001 02:41 AM
Solution> Sanjay, the "mount -f" was what I was hoping
> would work but that option no longer seems
> to work. I'm using HP-UX 10.2 and when
> trying the -f option it just gives me the
> command usage help of the mount command.
>
> To the other response, the file systems are HFS.
Make sure you are using "-F hfs" when using "-f". An example of both failure (without "-F hfs") and success (with "-F hfs"):
# uname -r
B.10.20
# /sbin/fsclean -v /dev/rfloppy/c0t1d0
/sbin/fsclean: /dev/floppy/c0t1d0 not clean, run fsck
# /sbin/mount /dev/floppy/c0t1d0 /floppy
mount: /dev/floppy/c0t1d0 needs to be fsck'ed before mounting
mount: warning: if device /dev/floppy/c0t1d0 is mounted to another system
then do not run fsck
# /sbin/mount -f /dev/floppy/c0t1d0 /floppy
usage: mount [-l][-v|-p]
mount [-F FStype][-eQ] -a
mount [-F FStype][-eQrV][-o specific_options]
{ special | directory }
mount [-F FStype][-eQrV][-o specific_options]
special directory
# /sbin/mount -f -F hfs /dev/floppy/c0t1d0 /floppy
# bdf /floppy
Filesystem kbytes used avail %used Mounted on
/dev/floppy/c0t1d0 1356 9 1211 1% /floppy
#
What does *not* work anymore on 10.X and higher is the 9.X and older combination of "-f" (force) *and* -r (read-only):
# /sbin/umount /floppy
# /sbin/mount -f -r -F hfs /dev/floppy/c0t1d0 /floppy
usage: mount [-l][-v|-p]
mount [-F FStype][-eQ] -a
mount [-F FStype][-eQrV][-o specific_options]
{ special | directory }
mount [-F FStype][-eQrV][-o specific_options]
special directory
# /sbin/mount -r -F hfs /dev/floppy/c0t1d0 /floppy
mount: /dev/floppy/c0t1d0 needs to be fsck'ed before mounting
mount: warning: if device /dev/floppy/c0t1d0 is mounted to another system
then do not run fsck
#
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 09:20 AM
12-20-2001 09:20 AM
Re: Need help recovering from disk crash
That ended up working. The volume was mounted and I recovered everything that I needed.
Thanks again for all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2001 09:28 AM
12-20-2001 09:28 AM
Re: Need help recovering from disk crash
For RajMan, even though your solution was in terms of a RAID system, I still used the solution you provided to help get the kernel and config file back in sync.