Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

o2info(1) [debian man page]

o2info(1)							OCFS2 Manual Pages							 o2info(1)

NAME
o2info - Dump OCFS2 file system information on disk. SYNOPSIS
o2info [-C|--cluster-coherent] [--fs-features] [--volinfo] [--mkfs] <device or file> DESCRIPTION
o2info is designed to be an information tool, to display OCFS2 file system information on disk. Its main goal on one hand, is to provide a tool to display fs info in a comprehensive way and providing the information which may be missing in debugfs.ocfs and tunefs.ocfs2 such as global bitmap free space fragmentation and free inode info for each slot, on the other hand, it also aims to become a info tool(not an administration one), which therefore allows all users who may have no read privilege on the underlying device to use the utility. In prac- tice, 'o2info /path/to/file/on/ocfs2/vol' use a new OCFS2_IOC_INFO ioctl to get info from fs for a mounted case. For a privileged user(e.g, root), the same info however, can also be accessed by 'o2info /dev/sdxN' to direcly manipulate the raw device. OPTIONS
-C, --cluster-coherent Enable cluster (in)coherency for mounted case, means it will attempt to acquire a global PR lock when querying info from a cluster filesystem, which may degrade the performance, default is none cluster-coherency. --fs-features List all compat, incompat and ro-compat fs features on OCFS2 filesystem. --volinfo Dump basic volume information, such as blocksize, clustersize, volume label and UUID etc. --mkfs Dump an original format of mkfs.ocfs's arguments, importantly, which can be used directly as a fresh mkfs retry: #mkfs.ocfs2 "$(o2info --mkfs /dev/name/or/path/of/file)" /dev/sdaX -V, --version Show version and exit. -h, --help Display help and exit. EXAMPLES
[oracle@node1 ~]# o2info --volinfo /storage/testfile # For none-privileged users. [root@node1 ~]# o2info --volinfo /dev/sda1 Label: ocfs2-volume UUID: 976D8E630B3A4F1F95497311A92901FC Block Size: 4096 Cluster Size: 4096 Node Slots: 4 Features: backup-super strict-journal-super sparse inline-data xattr Features: unwritten SEE ALSO
debugfs.ocfs2(8) tunefs.ocfs2(8) AUTHORS
Oracle Corporation COPYRIGHT
Copyright (C) 2010 Oracle. All rights reserved. Version 1.6.4 October 2010 o2info(1)

Check Out this Related Man Page

o2image(8)							OCFS2 Manual Pages							o2image(8)

NAME
o2image - Copy or restore OCFS2 file system meta-data SYNOPSIS
o2image [-r] [-I] device image-file DESCRIPTION
o2image copies the OCFS2 file system meta-data from the device to the specified image-file. This image file contains the file system skeleton that includes the inodes, directory names and file names. It does not include any file data. This image file can be useful to debug certain problems that are not reproducible otherwise. Like on-disk corruptions. It could also be used to analyse the file system layout in an aging file system with an eye towards improving performance. As the image-file contains a copy of all the meta-data blocks, it can be a large file. By default, it is created in a packed format, in which all meta-data blocks are written back-to-back. With the -r option, the user could choose to have the file in the raw (or sparse) for- mat, in which the blocks are written to the same offset as they are on the device. debugfs.ocfs2 understands both formats. o2image also has the option, -I, to restore the meta-data from the image file onto the device. This option will rarely be useful to end- users and has been written specifically for developers and testers. OPTIONS
-r Copies the meta-data to the image-file in the raw format. Use this option only if the destination file system supports sparse files. If unsure, do not use this option and let the tool create the image-file in the packed format. -I Restores meta-data from the image-file onto the device. CAUTION: This option could corrupt the file system. EXAMPLES
[root@node1 ~]# o2image /dev/sda1 sda1.out Copies metadata blocks from /dev/sda1 device to sda1.out file [root@node1 ~] o2image -I /dev/sda1 sda1.out Use with CAUTION. Copies meta-data blocks from sda1.out onto the /dev/sda1 device. SEE ALSO
debugfs.ocfs2(8) fsck.ocfs2(8) AUTHORS
Oracle Corporation COPYRIGHT
Copyright (C) 2007, 2010 Oracle. All rights reserved. Version 1.4.3 February 2010 o2image(8)
Man Page