1thin_metadata_size(8)       System Manager's Manual      thin_metadata_size(8)
2
3
4

NAME

6       thin_metadata_size - thin provisioning metadata device/file size calcu‐
7       lator.
8

SYNOPSIS

10       thin_metadata_size [options]
11

DESCRIPTION

13       thin_metadata_size calculates the size of the thin  provisioning  meta‐
14       data  based on the block size of the thin provisioned devices, the size
15       of the thin provisioning pool and the maximum number of all thin provi‐
16       sioned devices and snapshots. Because thin provisioning pools are hold‐
17       ing widely variable contents, this tool is needed to  provide  sensible
18       initial default size.
19

OPTIONS

21       -h, --help
22              Print help and exit.
23
24       -V, --version
25              Print version information and exit.
26
27       -b, --block-size {BLOCKSIZE[bskKmMgGtTpPeEzZyY]}
28              Set block size.
29
30           Block size of thin provisioned devices in units of bytes, sectors,
31           kibibytes, kilobytes, ... respectively. Default is in sectors without a
32           block size unit specifier. Size/number option arguments can be followed by
33           unit specifiers in short one character and long form (eg. -b1m or
34           -b1mebibytes).
35
36
37       -s, --pool-size {POOLSIZE[bskKmMgGtTpPeEzZyY]}
38              Set pool size.
39
40           Thin provisioning pool size in units of bytes, sectors, kibibytes,
41           kilobytes, ... respectively. Default is in sectors without a pool size
42           unit specifier.
43
44
45       -m, --max-thins {count[bskKmMgGtTpPeEzZyY]}
46              Set max thins.
47
48           Maximum sum of all thin provisioned devices and snapshots. Unit identifier
49           supported to allow for convenient entry of large quantities, eg. 1000000 =
50           1M. Default is absolute quantity without a number unit specifier.
51
52       -u, --unit {bskKmMgGtTpPeEzZyY}
53
54           Output unit specifier in units of bytes, sectors, kibibytes, kilobytes, ...
55           respectively. Default is in sectors without an output unit specifier.
56
57
58       -n, --numeric-only {short|long}
59              Limit output to just the size number.
60

EXAMPLES

62       Calculates the thin provisioning metadata device size for block size 64
63       kibibytes, pool size 1 tebibytes and maximum number of thin provisioned
64       devices and snapshots of 1000 in units of sectors with long output:
65
66           $ thin_metadata_size -b64k -s1t -m1000
67
68       Or  (using  the  long  options instead) for block size 1 gibibyte, pool
69       size 1 petabyte and maximum number  of  thin  provisioned  devices  and
70       snapshots of 1 million with numeric-only output in units of gigabytes:
71
72           $ thin_metadata_size --block-size=1g --pool-size=1P --max-thins=1M --unit=G --numeric-only
73
74       Same as before (1g, 1P, 1M, numeric-only) but with unit specifier char‐
75       acter appended:
76
77           $ thin_metadata_size --block-size=1gibi --pool-size=1petabytes --max-thins=1mega --unit=G --numeric-only=short
78
79       Or with unit specifier string appended:
80
81           $ thin_metadata_size --block-size=1gibi --pool-size=1petabytes --max-thins=1mega --unit=G -nlong
82
83

DIAGNOSTICS

85       thin_metadata_size returns an exit code of  0  for  success  or  1  for
86       error.
87

SEE ALSO

89       thin_dump(8),     thin_check(8),    thin_repair(8),    thin_restore(8),
90       thin_rmap(8)
91

AUTHOR

93       Joe Thornber <ejt@redhat.com>, Heinz Mauelshagen <HeinzM@RedHat.com>
94
95
96
97System Manager's Manual       Device Mapper Tools        thin_metadata_size(8)
Impressum