Ich habe ein virtuelles Box-Image im VDI-Format auf OpenStack hochgeladen. Ich habe der Instanz, die mit diesem .vdi-Bild erstellt wurde, einen Geschmack von 100 G hinzugefügt. Aber es zeigt immer noch die 15 G-Größe in der virtuellen Box zugewiesen. Ich weiß nicht, wie man den Datenträger partitioniert, um die Größe zu verwenden, die von der OpenStack-Variante bereitgestellt wird.Partitionierung der Instanz in OpenStack
# df -h
ist wie folgt
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
Und
# fdisk /dev/vda1
ist als
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):
folgt Wie ich brauche die virtuelle Maschine Platte partitionieren die gesamte 100 Gb zu erhalten Größe??
Duplizieren von: http://stackoverflow.com/questions/31295416/openstack-instance-does-not-use-the-entire-hard-disk –