1 kilobyte = 1024 bytes
1 megabyte = 1024 kilobytes
1 gigabyte = 1024 megabytes
Example
The command below creates a 2 gigabytes concat volume, named “vol01″
# vxassist -g datadg make vol01 2g layout=concat init=active
Figure 1
The size of “vol01″, shown in Figure 1, is 4194304 sectors. Another method to retrieve the sector size of a volume is the command
# vxprint -g <dg-name> -Qqv <volume-name> | awk ‘{ print $5 }’
# vxprint -g datadg -Qqv vol01 | awk ‘{ print $5 }’
4194304
4194304 sectors can be converted to 2 gigabytes as follows:
4194304 sectors * 512 bytes per sector = 2147483648 bytes
2147483648 bytes / 1024 bytes per kilobyte = 2097152 kilobytes
2097152 kilobytes / 1024 kilobytes per megabyte = 2048 megabytes
2048 megabytes / 1024 megabytes per gigabyte = 2 gigabytes












