1o2image(8) OCFS2 Manual Pages o2image(8)
2
3
4
6 o2image - Copy or restore OCFS2 file system meta-data
7
9 o2image [-r] [-I] device image-file
10
12 o2image copies the OCFS2 file system meta-data from the device to the
13 specified image-file. This image file contains the file system skele‐
14 ton that includes the inodes, directory names and file names. It does
15 not include any file data.
16
17 This image file can be useful to debug certain problems that are not
18 reproducible otherwise. Like on-disk corruptions. It could also be
19 used to analyse the file system layout in an aging file system with an
20 eye towards improving performance.
21
22 As the image-file contains a copy of all the meta-data blocks, it can
23 be a large file. By default, it is created in a packed format, in
24 which all meta-data blocks are written back-to-back. With the -r
25 option, the user could choose to have the file in the raw (or sparse)
26 format, in which the blocks are written to the same offset as they are
27 on the device.
28
29 debugfs.ocfs2 understands both formats.
30
31 o2image also has the option, -I, to restore the meta-data from the
32 image file onto the device. This option will rarely be useful to end-
33 users and has been written specifically for developers and testers.
34
35
37 -r Copies the meta-data to the image-file in the raw format. Use
38 this option only if the destination file system supports sparse
39 files. If unsure, do not use this option and let the tool create
40 the image-file in the packed format.
41
42
43 -I Restores meta-data from the image-file onto the device. CAUTION:
44 This option could corrupt the file system.
45
46
48 [root@node1 ~]# o2image /dev/sda1 sda1.out
49 Copies metadata blocks from /dev/sda1 device to sda1.out file
50
51 [root@node1 ~] o2image -I /dev/sda1 sda1.out
52 Use with CAUTION. Copies meta-data blocks from sda1.out onto the /dev/sda1 device.
53
54
56 debugfs.ocfs2(8) fsck.ocfs2(8)
57
58
60 Oracle Corporation
61
62
64 Copyright © 2007, 2009 Oracle. All rights reserved.
65
66
67
68Version 1.4.3 April 2009 o2image(8)