1833390 Members
3047 Online
110052 Solutions
New Discussion

Re: Problem with JFS

 
Adam Antal
New Member

Problem with JFS

Hi *!

We have problem with a JFS filesystem:
fsck says invalid superblock and cannot find any alternate superblocks.

Any idea?

THX

Adam
10 REPLIES 10
Stefan Farrelly
Honored Contributor

Re: Problem with JFS

your filesystem is corrupt. Try mounting it read only and copy the data off elsewhere, or try the latest fsadm/jfs patches, then retry the fsck, if these fail then yourve lost your filesystem - recover from backup.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor

Re: Problem with JFS

Hi Adam,

Could you give me the fsck commands you used.

Robert-Jan
G. Vrijhoeven
Honored Contributor

Re: Problem with JFS

Hi Adam,

Dis you try?

fsck -F xvfs -o full /dev/vg??/rlvol?

Gideon
Adam Antal
New Member

Re: Problem with JFS

Hi,

I've tried
fsck -F vxfs -o full -y /dev/VGW99/sapdb
with following messages:
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 ...

Bye

Adam
Adam Antal
New Member

Re: Problem with JFS

Hi,

I've also tried mount -ro, the result is:

mount -o ro /sapdb
mount: /dev/VGW99/sapdb is an invalid operand

Bye

Adam
G. Vrijhoeven
Honored Contributor

Re: Problem with JFS

Hi,

1) the fsck is on the rlvol.
2) Is you lvol the same size as your filesystem bdf /sapdb vs. lvdisplay /dev/VGW99/sapdb

Gideon

Adam Antal
New Member

Re: Problem with JFS

Hi Gideon,

here the result of fsck on the rlvol:

# fsck -F vxfs -o full,nolog -y /dev/VGW99/rsapdb
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y


If I do a ls -l in the /dev/VGW99 directory, I see the following result of the rlvol:
crw-r----- 1 root sys 64 0x020002 Jul 2 12:45 rsapdb

but the lvol seems bad:
-rw-rw-rw- 1 root sys 324844 Jan 21 2001 sapdb

Bye

Adam
G. Vrijhoeven
Honored Contributor

Re: Problem with JFS

Hi,

You should recreate your lvol device file:

mv /dev/VGW99/sapdb /dev/VGW99/sapdb.org
mknod /dev/VGW99/dapdb b 64 0x020002

Gideon

Adam Antal
New Member

Re: Problem with JFS

Hi Gideon,

thank you for your help, it works!

Bye

Adam
Elmar P. Kolkman
Honored Contributor

Re: Problem with JFS

Seems it is time for point assignment then. ;-)
Every problem has at least one solution. Only some solutions are harder to find.