When using vxassist to create a volume, what is the default unit of the parameter length?
A. bit
B. byte
C. sector
D. cylinder
One Comment on “what is the default unit of the parameter length?”
cukersays:
C.
from the vxinfo man page:
A number can be followed by a single-character suffix to indicate a
multiplier for the number. A length number with no suffix character
represents a count of standard disk sectors. The length of a standard
disk sector can vary between systems; it is typically 512 bytes or 1024
bytes. On systems where disks can have different sector sizes, one of
the sector sizes is chosen as the “standard” size. Supported suffix
characters are:
b (Blocks) Multiply the length by 512 bytes.
g (Gigabytes) Multiply the length by 1,073,741,824 (1024M)
bytes.
k (Kilobytes) Multiply the length by 1024 bytes.
m (Megabytes) Multiply the length by 1,048,576 (1024K) bytes.
s (Sectors) Multiply the length by the standard sector size.
This is the default unit if no suffix is specified.
t (Terabytes) Multiply the length by 1,099,511,627,776 (1024G)
bytes.
Numbers are represented internally as an integer number of sectors. As
a result, if the standard disk sector size is larger than 512 bytes,
numbers can be specified that need to be rounded to a sector. Rounding
is always done to the next lowest, not the nearest, multiple of the
sector size.
C.
from the vxinfo man page:
A number can be followed by a single-character suffix to indicate a
multiplier for the number. A length number with no suffix character
represents a count of standard disk sectors. The length of a standard
disk sector can vary between systems; it is typically 512 bytes or 1024
bytes. On systems where disks can have different sector sizes, one of
the sector sizes is chosen as the “standard” size. Supported suffix
characters are:
b (Blocks) Multiply the length by 512 bytes.
g (Gigabytes) Multiply the length by 1,073,741,824 (1024M)
bytes.
k (Kilobytes) Multiply the length by 1024 bytes.
m (Megabytes) Multiply the length by 1,048,576 (1024K) bytes.
s (Sectors) Multiply the length by the standard sector size.
This is the default unit if no suffix is specified.
t (Terabytes) Multiply the length by 1,099,511,627,776 (1024G)
bytes.
Numbers are represented internally as an integer number of sectors. As
a result, if the standard disk sector size is larger than 512 bytes,
numbers can be specified that need to be rounded to a sector. Rounding
is always done to the next lowest, not the nearest, multiple of the
sector size.
0
0