[root@node1 ~]
Supported options:
size Virtual disk size
compat Compatibility level (0.10 or 1.1)
backing_file File name of a base image
backing_fmt Image
format
of the base image
encryption Encrypt the image
cluster_size qcow2 cluster size
preallocation Preallocation mode (allowed values: off, metadata, falloc, full)
lazy_refcounts Postpone refcount updates
[root@node1 ~]
Formatting
'/tmp/test.qcow2'
,
fmt
=qcow2 size=21474836480 encryption=off cluster_size=65536 preallocation=
'metadata'
lazy_refcounts=off
[root@node1 ~]
-rw-r--r-- 1 root root 21G Dec 11 17:12
/tmp/test
.qcow2
[root@node1 ~]
Disk attached successfully
[root@node1 ~]
[root@localhost ~]
Disk
/dev/vda
: 85.9 GB, 85899345920 bytes
16 heads, 63 sectors
/track
, 166440 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x000ab84c
Device Boot Start End Blocks Id System
/dev/vda1
* 3 409 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2
409 125239 62914560 8e Linux LVM
Partition 2 does not end on cylinder boundary.
Disk
/dev/mapper/vg0-root
: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors
/track
, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk
/dev/mapper/vg0-swap
: 2147 MB, 2147483648 bytes
255 heads, 63 sectors
/track
, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk
/dev/mapper/vg0-usr
: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors
/track
, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk
/dev/mapper/vg0-var
: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors
/track
, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk
/dev/vdb
: 21.5 GB, 21478375424 bytes
16 heads, 63 sectors
/track
, 41617 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x00000000
[root@localhost ~]
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x67288332.
Changes will remain
in
memory only,
until
you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m
for
help):
Disk
/dev/vdb
: 21.5 GB, 21478375424 bytes
16 heads, 63 sectors
/track
, 41617 cylinders, total 41949952 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical
/physical
): 512 bytes / 512 bytes
I
/O
size (minimum
/optimal
): 512 bytes / 512 bytes
Disk identifier: 0x35c26476
Device Boot Start End Blocks Id System
/dev/vdb1
2048 20480 9216+ 83 Linux
/dev/vdb2
20481 41949951 20964735+ 83 Linux
Command (m
for
help):