[Ocfs2-users] How to fsck.ocfs2

Werner Flamme werner.flamme at ufz.de
Fri Feb 18 08:46:48 PST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone,

simple question: how can I execute a "fsck.ocfs2 /dev/sdf"?

All I get is

- ---snip---
myhost:~ # fsck.ocfs2 /dev/sdf
fsck.ocfs2 1.4.3
Checking OCFS2 filesystem in /dev/sdf:
  Label:              SAP01
  UUID:               5969C8CABB854F8EA9C17B5B8DE48EC6
  Number of blocks:   183500800
  Block size:         4096
  Number of clusters: 183500800
  Cluster size:       4096
  Number of slots:    15

fsck.ocfs2: extent_tree.c:435: ocfs2_new_path: Assertion
`root_el->l_tree_depth < 5' failed.
- ---pins---

My fsck.ocfs2 knows those options:
Usage: fsck.ocfs2 [ -fGnuvVy ] [ -b superblock block ]
                    [ -B block size ] [-r num] device

Critical flags for emergency repair:
 -n             Check but don't change the file system
 -y             Answer 'yes' to all repair questions
 -f             Force checking even if file system is clean
 -F             Ignore cluster locking (dangerous!)
 -r             restore backup superblock(dangerous!)

Less critical flags:
 -b superblock  Treat given block as the super block
 -B blocksize   Force the given block size
 -G             Ask to fix mismatched inode generations
 -u             Access the device with buffering
 -V             Output fsck.ocfs2's version
 -v             Provide verbose debugging output

Will a -f damage the file system?

This error occurs since a colleague tried to set up an additional volume
for the cluster.

Regards,
Werner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAk1eongACgkQk33Krq8b42O6bgCfWNilAvI5kiqvPqUx9PcbdOJ6
PWgAmwV12imhd6Is/lWGZ33teCGYGDlv
=gD6t
-----END PGP SIGNATURE-----



More information about the Ocfs2-users mailing list