If removing the journal by using tune2fs does not work (and others have
mentioned cases where it doesn't) the following should do the trick (but
take much longer):
debugfs -w {OST device name (/dev/sda, etc.}
debugfs: features
Filesystem features: has_journal ext_attr_ resize_inode dir_index ...
(you need to make sure the 'has_journal' is listed as part of the
features)
debugfs: ^has_journal
debugfs: features
Filesystem features: ext_attr_ resize_inode dir_index ...
(list is the same as above, but without has_features)
debugfs: quit
You then need to recreate your journals as others have said and add them
back into the FS.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andreas
Dilger
Sent: Wednesday, October 27, 2010 8:47 AM
To: Alexander Bugl
Cc: [email protected]
Subject: Re: [Lustre-discuss] system disk with external journals for
OSTsformatted
On 2010-10-27, at 15:02, Alexander Bugl wrote:
>> Trying to run e2fsck -n yields:
>
> [r...@soss10 ~]# e2fsck -fn /dev/md14
> e2fsck 1.41.10.sun2 (24-Feb-2010)
> e2fsck: Group descriptors look bad... trying backup blocks...
> Error writing block 1 (Attempt to write block from filesystem resulted
in
> short write). Ignore error? no
> Error writing block 2 (Attempt to write block from filesystem resulted
in
> short write). Ignore error? no
> Error writing block 3 (Attempt to write block from filesystem resulted
in
> short write). Ignore error? no
> [... and all integers between]
> Error writing block 463 (Attempt to write block from filesystem
resulted in
> short write). Ignore error? no
> Error writing block 464 (Attempt to write block from filesystem
resulted in
> short write). Ignore error? no
I don't know what these errors are, possibly trying to write into the
broken journal device? The rest of the fileystem errors are very minor.
You should probably delete the journal device via "tune2fs -O
^has_journal", run a full "e2fsck -f" and then recreate the journal with
"tune2fs -j size=400".
Cheers, Andreas
--
Andreas Dilger
Lustre Technical Lead
Oracle Corporation Canada Inc.
_______________________________________________
Lustre-discuss mailing list
[email protected]
http://lists.lustre.org/mailman/listinfo/lustre-discuss
_______________________________________________
Lustre-discuss mailing list
[email protected]
http://lists.lustre.org/mailman/listinfo/lustre-discuss