1827852 Members
1639 Online
109969 Solutions
New Discussion

filesystem crash!!!

 
viks
Advisor

filesystem crash!!!

hi all ..i got a hp-ux 10.20 system.the problem is that a fiesystem is not getting mounted due to a serious damage.if i run fsck it reports "could not open /dev/vg01/lvol2: error 6".i tried replacing the superblock even.but unfortunately it is giving the same error.is there any other way to recover my filesystem?
regard
4 REPLIES 4
Stefan Farrelly
Honored Contributor

Re: filesystem crash!!!


Try doing a dd on the raw lvol. This will confirm the filesystem is readable and hasnt developed a bad block or bad media which means your filesystem is unrecoverable;

dd if=/dev/vg01/rlvol2 of=/dev/null bs=64k

It will come back either with X blocks in+out - which is good, or I/O error which means your dead.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Shahul
Esteemed Contributor

Re: filesystem crash!!!


Hi

Which is ur file system ? HFS/VXFS? Anyway U try loke this

#fsck -F "HFS/VXFS" -o full /dev/vg01/lvol2

If it is VXFS file system, It will automatically select alternate superblocks in case of a super block corruption. If it is HFS U will have to specify alternate superblock with -b option. Alternate superblock list U will get from /etc/sbtab.

Best of luck

Shahul
Hamdy Al-Sebaey
Regular Advisor

Re: filesystem crash!!!

Hi Viks,
I agree with Stefan, but just try a full check for your files system

# fsck -F (vxfs or hfs)-o full /dev/vg01/lvol2
#vgchange -a y
# mount -a
then #pg /etc/fstab.

Goodluck,
hamdy

Thanks for sharing knowledge
MANOJ SRIVASTAVA
Honored Contributor

Re: filesystem crash!!!

Hi Viks

I think error No : 6 pertains to no such device or address . Incase you can mount other lvol on the same vg then it can be either that the Physical disk in that volume group has become bad . Check vgdisplay -v and see for active PV and current PV .

You can also try recreating the lvmtab file in /etc by moving the old lvmtab and running a vgscan -v . and then trying to do a fsck -y on this lvol , then mounting it.

But I seriously suspect that a PV in the volume has gone bad.

Manoj Srivastava