Este contenido no está disponible en el idioma seleccionado.
4.9.4. Specifying Units
To specify the unit for the LVM report display, use the
--units
argument of the report command. You can specify (b)ytes, (k)ilobytes, (m)egabytes, (g)igabytes, (t)erabytes, (e)xabytes, (p)etabytes, and (h)uman-readable. The default display is human-readable. You can override the default by setting the units
parameter in the global
section of the lvm.conf
file.
The following example specifies the output of the
pvs
command in megabytes rather than the default gigabytes.
By default, units are displayed in powers of 2 (multiples of 1024). You can specify that units be displayed in multiples of 1000 by capitalizing the unit specification (B, K, M, G, T, H).
The following command displays the output as a multiple of 1024, the default behavior.
The following command displays the output as a multiple of 1000.
You can also specify (s)ectors (defined as 512 bytes) or custom units.
The following example displays the output of the
pvs
command as a number of sectors.
The following example displays the output of the
pvs
command in units of 4 megabytes.