New Member
Posts: 55
Registered: ‎02-18-2015
Kudos: 99

Disk Resize

Hi, 

 

I installed UCRM on a Hyper-V VM, on Ubuntu 16.04, and the disk is getting close to full (17GB out of 25GB). I increased the disk in Hyper-V to 100G, and resised the partition with Gparted, all fine. 

 

- LVM also increased to the max amount (95.52GB) but UCRM is not seeing the space increase. The commands I ran did not help: 

 

cd /home/ucrm
$ docker system prune
$sudo docker-compose stop
$sudo docker-compose rm --all
$sudo docker-compose up -d

Few details: 

 

root@UCRM:/home/ucrm#  lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial

root@UCRM:/home/ucrm# lvdisplay
  --- Logical volume ---
  LV Path                /dev/UCRM-vg/root
  LV Name                root
  VG Name                UCRM-vg
  LV UUID                VNk2SX-wVgC-3ftj-HyKT-8adU-y1yo-upEsYr
  LV Write Access        read/write
  LV Creation host, time UCRM, 2017-09-11 10:29:02 +0100
  LV Status              available
  # open                 1
  LV Size                95.52 GiB
  Current LE             24453
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0
   
  --- Logical volume ---
  LV Path                /dev/UCRM-vg/swap_1
  LV Name                swap_1
  VG Name                UCRM-vg
  LV UUID                8xXO2l-ixCl-afeG-mxfT-UkF2-HA3d-kIoHtI
  LV Write Access        read/write
  LV Creation host, time UCRM, 2017-09-11 10:29:02 +0100
  LV Status              available
  # open                 2
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

Device     Boot   Start       End   Sectors  Size Id Type
/dev/sda1  *       2048    999423    997376  487M 83 Linux
/dev/sda2       1001470 209715199 208713730 99.5G  5 Extended
/dev/sda5       1001472 209715199 208713728 99.5G 8e Linux LVM

Linux UCRM 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

To me everything seems fine, but the dashboard in UCRM does not see the increase. 

 

Can you please advise? 

 

Many thanks, 

New Member
Posts: 55
Registered: ‎02-18-2015
Kudos: 99

Re: Disk Resize

Forgot to do
resize2fs /dev/UCRM-vg/root

Now all is good.
Hope this will help someone Man Happy