Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

thin_metadata_size(8) [centos man page]

THIN_METADATA_SIZE(8)					      System Manager's Manual					     THIN_METADATA_SIZE(8)

thin_metadata_size - thin provisioning metadata device/file size calculator. SYNOPSIS
thin_metadata_size [options] DESCRIPTION
thin_metadata_size calculates the size of the thin provisioning metadata based on the block size of the thin provisioned devices, the size of the thin provisioning pool and the maximum number of all thin prisioned devices and snapshots. Because thin provisioning pools are holding widely variable contents, this tool is needed to provide sensible initial default size. -b, --block-size BLOCKSIZE[bskKmMgGtTpPeEzZyY] Block size of thin provisioned devices in units of bytes,sectors,kilobytes,kibibytes,... respectively. Default is in sectors with- out a block size unit specifier. Size/number option arguments can be followed by unit specifiers in short one character and long form (eg. -b1m or -b1megabytes). -s, --pool-size POOLSIZE[bskKmMgGtTpPeEzZyY] Thin provisioning pool size in units of bytes,sectors,kilobytes,kibibytes,... respectively. Default is in sectors without a pool size unit specifier. -m, --max-thins #[bskKmMgGtTpPeEzZyY] Maximum sum of all thin provisioned devices and snapshots. Unit identifier supported to allow for convenient entry of large quanti- ties, eg. 1000000 = 1M. Default is absolute quantity without a number unit specifier. -u, --unit {bskKmMgGtTpPeEzZyY} Output unit specifier in units of bytes,sectors,kilobytes,kibibytes,... respectively. Default is in sectors without an output unit specifier. -n, --numeric-only [short|long] Limit output to just the size number with the optional unit specifier character/string. -h, --help Print help and exit. -V, --version Output version information and exit. EXAMPLES
Calculates the thin provisioning metadata device size for block size 64 kilobytes, pool size 1 terabytes and maximum number of thin provi- sioned devices and snapshots of 1000 in units of sectors with long output: thin_metadata_size -b64k -s1t -m1000 Or (using the long options instead) for block size 1 gigabyte, pool size 1 petabytes and maximum number of thin provisioned devices and snapshots of 1 million with numeric only output in units of gigabytes: thin_metadata_size --block-size=1g --pool-size=1p --max-thins=1M --unit=g --numeric-only Same as before (1g,1p,1M,numeric-only) but with unit specifier character appended: thin_metadata_size --block-size=1giga --pool-size=1petabytes --max-thins=1mebi --unit=g --numeric-only=short Or with unit specifier string appended: thin_metadata_size --block-size=1giga --pool-size=1petabytes --max-thins=1mebi --unit=g -nlong DIAGNOSTICS
thin_metadata_size returns an exit code of 0 for success or 1 for error. SEE ALSO
thin_dump(8) thin_check(8) thin_repair(8) thin_restore(8) thin_rmap(8) AUTHOR
Joe Thornber <> Heinz Mauelshagen <> Red Hat, Inc. Thin Provisioning Tools THIN_METADATA_SIZE(8)

Check Out this Related Man Page

sbdadm(1M)						  System Administration Commands						sbdadm(1M)

sbdadm - SCSI Block Disk command line interface SYNOPSIS
sbdadm create-lu [-s, --size size] filename sbdadm delete-lu lu_name sbdadm import-lu lu_name sbdadm list-lu lu_name sbdadm modify-lu [-s, --size size] lu_name | filename DESCRIPTION
The sbdadm command creates and manages SCSI-block-device-based logical units that are registered with the SCSI Target Mode Framework (STMF). SUB-COMMANDS The sbdadm command supports the subcommands listed below. Note that if you enter a question mark as an argument to the command (sbdadm ?), sbdadm responds with a help display. create-lu [-s, --size size] filename Create a logical unit that can be registered with the STMF. For the -s option, size is an integer followed by one of the following let- ters, to indicate a unit of size: k kilobyte m megabyte g gigabyte t terabyte p petabyte e exabyte If you do not specify size, the size defaults to the size of filename. The size specified can exceed the size of the file or device. delete-lu lu_name Deletes an existing logical unit that was created using sbdadm create-lu. This effectively unloads the logical unit from the STMF framework. Any existing data on the logical unit remains intact. import-lu lu_name Imports and loads a logical unit into the STMF that was previously created using sbdadm create-lu and was since deleted from the STMF using sbdadm delete-lu. On success, the logical unit is again made available to the STMF. filename is the filename used in the sbdadm create-lu command for this logical unit. list-lu List all logical units that were created using the sbdadm create-lu command. modify-lu [-s, --size size] lu_name | filename Modifies attributes of an logical unit created using the sbdadm create-lu command. For the -s option, size is an integer value followed by a unit specifier. The unit specifiers are as described above under create-lu. When this option is specified, the existing size of the logical unit is changed to the new size. The size specified can exceed the size of the file or device represented by lu_name. OPERANDS
sbdadm use the following operands: filename Name of an existing file or a fully qualified path to a raw block device. lu_name The 32-byte hexadecimal representation of the logical unit. EXAMPLES
Example 1 Creating a Logical Unit The following series of commands creates a 10-gigabyte logical unit. # touch /export/lun/0 # sbdadm create-lu -s 10g /export/lun/0 # sbdadm create-lu /dev/rdsk/c1t1d0s0 Example 2 Listing Logical Units The following command lists all logical units. # sbdadm list-lu Found 2 LU(s) GUID DATA SIZE SOURCE -------------------------------- ----------- ------ 6000ae4000144f21d92c47b0dd650002 10737352704 /export/lun/0 6000ae4000144f21d92c47b0de300032 134283264 /dev/rdsk/c1t1d0s0 EXIT STATUS
0 Successful completion. non-zero An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWstmfu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
stmfadm(1M), attributes(5) SunOS 5.11 12 Jun 2008 sbdadm(1M)
Man Page