Resizing a partition on HiveOS

There was some strange partition /dev/sda2 of 6.5G size on my HiveOS:

root@rig0:/# cat /proc/partitions
major minor  #blocks  name                                                                                                                                                                                         

8        0  117219767 sda                                                                                                                                                                                       
8        1      20480 sda1                                                                                                                                                                                      
8        2    7323648 sda2             

root@rig0:/# df -h                                                                                                                                                                                                 
Filesystem      Size  Used Avail Use% Mounted on                                                                                                                                                                   
udev            1.9G     0  1.9G   0% /dev                                                                                                                                                                         
tmpfs           383M   44M  340M  12% /run                                                                                                                                                                         
/dev/sda2       6.8G  6.5G     0 100% /                                                                                                                                                                            
tmpfs           1.9G     0  1.9G   0% /dev/shm                                                                                                                                                                     
tmpfs           5.0M     0  5.0M   0% /run/lock                                                                                                                                                                    
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup                                                                                                                                                               
tmpfs           100M   16K  100M   1% /tmp                                                                                                                                                                         
tmpfs           1.9G     0  1.9G   0% /var/tmp                                                                                                                                                                     
tmpfs           1.9G   30M  1.9G   2% /var/log                                                                                                                                                                     
tmpfs           1.9G     0  1.9G   0% /var/log/journal                                                                                                                                                             
tmpfs           1.9G     0  1.9G   0% /var/log/apt                                                                                                                                                                 
/dev/sda1        20M  5.7M   15M  29% /hive-config

I simply run disk-expand:

And got:

root@rig0:/# cat /proc/partitions
major minor  #blocks  name

   8        0  117219767 sda
   8        1      20480 sda1
   8        2  117198247 sda2

root@rig0:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           383M   44M  340M  12% /run
/dev/sda2       110G  6.3G  100G   6% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
tmpfs           100M   16K  100M   1% /tmp
tmpfs           1.9G     0  1.9G   0% /var/tmp
tmpfs           1.9G   27M  1.9G   2% /var/log
tmpfs           1.9G  8.0K  1.9G   1% /var/log/apt
tmpfs           1.9G     0  1.9G   0% /var/log/journal
/dev/sda1        20M  5.7M   15M  29% /hive-config

Leave a Reply

Your email address will not be published.