RSully / smartos-ubuntu

Scripts/automation to create Ubuntu images (KVM) for SmartOS.
8 stars 5 forks source link

Look into image size #6

Open RSully opened 9 years ago

RSully commented 9 years ago

Not sure how the cloud images are setup in terms of disks/partitions; 5GB zvol was an arbitrary choice.

russellballestrini commented 9 years ago
ubuntu@608a1a71-c922-451d-8690-420e0cc9e44c:~$ df
Filesystem     1K-blocks   Used Available Use% Mounted on
/dev/vda1        5126784 818856   4067460  17% /
none                   4      0         4   0% /sys/fs/cgroup
udev              503924     12    503912   1% /dev
tmpfs             101780    336    101444   1% /run
none                5120      0      5120   0% /run/lock
none              508884      0    508884   0% /run/shm
none              102400      0    102400   0% /run/user

ubuntu@608a1a71-c922-451d-8690-420e0cc9e44c:~$ df -hal
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       4.9G  800M  3.9G  17% /
proc               0     0     0    - /proc
sysfs              0     0     0    - /sys
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none               0     0     0    - /sys/fs/fuse/connections
none               0     0     0    - /sys/kernel/debug
none               0     0     0    - /sys/kernel/security
udev            493M   12K  493M   1% /dev
devpts             0     0     0    - /dev/pts
tmpfs           100M  336K  100M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            497M     0  497M   0% /run/shm
none            100M     0  100M   0% /run/user
none               0     0     0    - /sys/fs/pstore
systemd            0     0     0    - /sys/fs/cgroup/systemd
russellballestrini commented 9 years ago

I tried altering the image_size image manifest from 5G to 8G and ended up getting the following error message when attempting to create a new KVM via vmadm:

'refreservation' is greater than current volume size
RSully commented 9 years ago

I was playing with some disk (re-)sizing in the test-resize branch.