...
Code Block |
---|
df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 17M 3.9G 1% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda2 15G 6.1G 7.8G 44% / /dev/sda4 23G 805M 21G 4% /var /dev/sda1 976M 95M 815M 11% /boot /dev/sdb1 40G 8.5G 29G 23% /data tmpfs 783M 0 783M 0% /run/user/0 tmpfs 783M 0 783M 0% /run/user/1000... |
df -h command returns this information for /data partition:
...
Code Block |
---|
sudo resize2fs /dev/sdb1
resize2fs 1.42.9 (28-Dec-2013)
Filesystem at /dev/sdb1 is mounted on /data; on-line resizing required
old_desc_blocks = 5, new_desc_blocks = 15
The filesystem on /dev/sdb1 is now 31457019 blocks long. |
Finally check that /dev/sdb1 has been resized as expected:
Code Block |
---|
df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/sdb1 118G 8.5G 105G 8% /data
... |
NMIS VMs' using LVM
The resizing procedure is quite simple, for size increases at least. The two required steps are:
...