.TH "o2info" "1" "October 2010" "Version 1.6.4" "OCFS2 Manual Pages" .SH "NAME" o2info \- Dump \fIOCFS2\fR file system information on disk. .SH "SYNOPSIS" \fBo2info\fR [\fB\-C|\-\-cluster\-coherent\fR] [\fB\-\-fs\-features\fR] [\fB\-\-volinfo\fR] [\fB\-\-mkfs\fR] <\fBdevice or file\fR> .SH "DESCRIPTION" .PP \fBo2info\fR is designed to be an information tool, to display \fIOCFS2\fR 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 \fBdebugfs.ocfs\fR and \fBtunefs.ocfs2\fR 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(\fBnot\fR an administration one), which therefore allows all users who may have no read privilege on the underlying device to use the utility. In practice, \fB'o2info /path/to/file/on/ocfs2/vol'\fR use a new \fBOCFS2_IOC_INFO\fR 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 \fB'o2info /dev/sdxN'\fR to direcly manipulate the raw device. .SH "OPTIONS" .TP \fB\-C, \-\-cluster\-coherent\fR 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. .TP \fB\-\-fs\-features\fR List all compat, incompat and ro-compat fs features on \fIOCFS2\fR filesystem. .TP \fB\-\-volinfo\fR Dump basic volume information, such as blocksize, clustersize, volume label and UUID etc. .TP \fB\-\-mkfs\fR 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 .TP \fB\-V, \-\-version\fR Show version and exit. .TP \fB\-h, \-\-help\fR Display help and exit. .SH "EXAMPLES" [oracle@node1 ~]# o2info --volinfo /storage/testfile # For none-privileged users. .br [root@node1 ~]# o2info --volinfo /dev/sda1 .br Label: ocfs2-volume .br UUID: 976D8E630B3A4F1F95497311A92901FC .br Block Size: 4096 .br Cluster Size: 4096 .br Node Slots: 4 .br Features: backup-super strict-journal-super sparse inline-data xattr .br Features: unwritten .SH "SEE ALSO" .BR debugfs.ocfs2(8) .BR tunefs.ocfs2(8) .SH "AUTHORS" Oracle Corporation .SH "COPYRIGHT" Copyright \(co 2010 Oracle. All rights reserved.