0
我上傳了一個vdi格式的虛擬框圖像給OpenStack。我爲使用該.vdi圖像創建的實例添加了100 G大小的味道。但它仍然顯示在虛擬盒子中分配的15 G大小。我不知道如何分區磁盤以使用OpenStack提供的大小。在OpenStack中分割實例
# df -h
如下
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 15G 4,4G 9,3G 32%/
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 2,0G 4,0K 2,0G 1% /dev
tmpfs 396M 824K 395M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 2,0G 144K 2,0G 1% /run/shm
none 100M 40K 100M 1% /run/user
而且
# fdisk /dev/vda1
如下
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xe682a7ff.
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): p
Disk /dev/vda1: 15.8 GB, 15793651712 bytes
16 heads, 63 sectors/track, 30602 cylinders, total 30846976 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: 0xe682a7ff
Device Boot Start End Blocks Id System
Command (m for help):
如何需要將虛擬機磁盤,以獲得整個100 GB的分區尺寸??
重複的:http://stackoverflow.com/questions/31295416/openstack-instance-does-not-use-the-entire-hard-disk –