Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
162 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
.TH CACHE_METADATA_SIZE 8 "Thin Provisioning Tools" "Red Hat, Inc." | ||
.SH NAME | ||
cache_metadata_size \- Estimate the size of the metadata device needed for a given configuration | ||
|
||
.SH SYNOPSIS | ||
.B cache_metadata_size | ||
.RB [ options ] | ||
|
||
.SH DESCRIPTION | ||
.B cache_metadata_size | ||
estimates the size of the metadata. Either \-\-nr\-blocks, or \-\-block\-size | ||
and \-\-device\-size must be specified. | ||
|
||
.SH OPTIONS | ||
.IP "\fB\-\-nr\-blocks\fP \<natural\>" | ||
Specify the number of cache blocks. | ||
|
||
.IP "\fB\-\-block-size\fP \<sectors\>" | ||
Specify the size of each cache block in 512 byte sectors. | ||
|
||
.IP "\fB\-\-device\-size\fP \<sectors\>" | ||
Specify total size of the fast device used in the cache. In 512 byte sectors. | ||
|
||
.IP "\fB\-\-max\-hint\-width\fP \<nr bytes\>" | ||
Cache policies use a per block 'hint' to record extra info (for instance hit | ||
counts). At the moment all policies use a 4 byte hint width. If you want to use | ||
a different hint width specify it with this switch. | ||
|
||
.SH EXAMPLE | ||
.B cache_metadata_size --nr-blocks 10240 | ||
.sp | ||
.B cache_metadata_size --block-size 128 --device-size 1024000 | ||
|
||
.SH SEE ALSO | ||
.B cache_dump(8) | ||
.B cache_repair(8) | ||
.B cache_restore(8) | ||
|
||
.SH AUTHOR | ||
Joe Thornber <ejt@redhat.com> | ||
.br | ||
Heinz Mauelshagen <heinzm@redhat.com> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
.TH ERA_RESTORE 8 "Thin Provisioning Tools" "Red Hat, Inc." \" -*- nroff -*- | ||
.SH NAME | ||
era_restore \- restore era metadata file to device or file | ||
|
||
.SH SYNOPSIS | ||
.B era_restore | ||
.RB [ options ] | ||
.RB -i | ||
.I {device|file} | ||
.RB -o | ||
.I {device|file} | ||
|
||
.SH DESCRIPTION | ||
.B era_restore | ||
restores era metadata created by the respective | ||
device-mapper target dumped into an XML formatted (see | ||
.BR era_dump(8) ) | ||
.I file | ||
, which optionally can be preprocessed before the restore to another | ||
.I device | ||
or | ||
.I file. | ||
If restored to a metadata | ||
.I device | ||
, the metadata can be processed by the device-mapper target. | ||
|
||
This tool cannot be run on live metadata. | ||
|
||
.IP "\fB\-i, \-\-input\fP \fI{device|file}\fP" | ||
Input file or device with metadata. | ||
|
||
.IP "\fB\-o, \-\-output\fP \fI{device|file}\fP" | ||
Output file or device for repaired binary metadata. If a file is used | ||
then it must be preallocated, and large enough to hold the metadata. | ||
|
||
.IP "\fB\-q, \-\-quiet\fP" | ||
Don't print any output. Check the exit code to test for success. | ||
|
||
.IP "\fB\-h, \-\-help\fP" | ||
Print help and exit. | ||
|
||
.IP "\fB\-V, \-\-version\fP" | ||
Output version information and exit. | ||
|
||
.SH EXAMPLE | ||
Restores the XML formatted era metadata on file | ||
.B metadata | ||
to logical volume /dev/vg/metadata for further processing by the | ||
respective device-mapper target: | ||
.sp | ||
.B era_restore -i metadata -o /dev/vg/metadata | ||
|
||
.SH DIAGNOSTICS | ||
.B era_restore | ||
returns an exit code of 0 for success or 1 for error. | ||
|
||
.SH SEE ALSO | ||
.B era_dump(8) | ||
.B era_check(8) | ||
|
||
.SH AUTHOR | ||
Joe Thornber <ejt@redhat.com> | ||
.br | ||
Heinz Mauelshagen <HeinzM@RedHat.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters