o2image

Langue: en

Version: 304946 (debian - 07/07/09)

Section: 8 (Commandes administrateur)

NAME

o2image - Save/Restore critical ocfs2 filesystem data to a file.

SYNOPSIS

o2image [-r] [-I] [device] [image-file]

DESCRIPTION

o2image is an OCFS2 tool that can save critical OCFS2 filesystem data located on a device to a specified image-file. The image-file may be examined using debugfs.ocfs2 to analyze filesystem layout affecting performance. Image- file may also be used to analyze and/or restore data in catastrophic corrupted filesystems. (NOTE: Data may only be restored if it is intact and metadata hasn't changed since it's backup)

Image-file format can be either packed(default) or raw.

Packed format contains o2image header, filesystem data, and bitmap.

Raw format is a sparse file which stores metadata at the same offsets as on the device. Since the raw image file is created as sparse it does not use space for files data (NOTE: It is critical to store image file on a different filesystem which support sparsefile otherwise the image file uses the same amount of space as the device). An image file stores metadata blocks sequentially and consumes little less space.

The -I option will cause o2image to install the metadata from image-file on to the device. This can be used to restore the filesystem metadata back to the device in emergency situations.

OPTIONS

-r
Backups the OCFS2 volumes metadata to an image-file in a raw format.
-I
Restores OCFS2 volumes metadata from image-file to the device.

EXAMPLES


o2image -r /dev/sda1 sda1.raw
Copies metadata blocks from /dev/sda1 device to sda1.raw file
o2image -rI /dev/sda1 sda1.raw
Installs metadata structures from sda.image file onto the device.

SEE ALSO

debugfs.ocfs2(8) fsck.ocfs2(8)

AUTHORS

Oracle Corporation Copyright © 2007, 2008 Oracle. All rights reserved.