[Ocfs2-users] How to fsck.ocfs2

Sunil Mushran sunil.mushran at oracle.com
Fri Feb 18 08:59:36 PST 2011


Run with -fn. It is non destructive. Also use the latest fsck. 1.4.4 I believe. 

On Feb 18, 2011, at 8:46 AM, Werner Flamme <werner.flamme at ufz.de> wrote:

> -----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-----
> 
> _______________________________________________
> Ocfs2-users mailing list
> Ocfs2-users at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-users



More information about the Ocfs2-users mailing list