The result of df -h
is like this:
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 797M 88M 710M 11% /run
/dev/mapper/vgroot-root 25G 18G 5.8G 76% /
tmpfs 3.9G 106M 3.8G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 945M 75M 806M 9% /boot
/dev/mapper/vgroot-home 15G 14G 56K 100% /home
vmhgfs-fuse 239G 200G 40G 84% /mnt/hgfs
tmpfs 797M 0 797M 0% /run/user/999
tmpfs 797M 64K 797M 1% /run/user/500
I see /home directory is 100% full, but don't know how can I enlarge it?
I tried resize2fs /home 50G
and got
open: Is a directory while opening /home
Then I tried mount -o remount,size=50G /home but I got
mount: /home not mounted or bad option
Then I run gparted
in the ubuntu client, the info is like this:
/dev/sda1 ext4 /boot 976MB
/dev/sda2 extended 299GB
/dev/sda5 lvm2 pv vgroot 299GB
unallocated unallocated 1MB
This is for my vmware disk, in vmware, the Ubuntu's disk is set to 300G as the max size.
Should /home
be listed here? Do I need to mount it?
sudo lvdisplay
is:
--- Logical volume ---
LV Path /dev/vgroot/root
LV Name root
VG Name vgroot
LV Status available
# open 1
LV Size 25.00 GiB
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/vgroot/swap
LV Name swap
VG Name vgroot
LV Status available
# open 2
LV Size 4.00 GiB
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/vgroot/home
LV Name home
VG Name vgroot
LV Status available
# open 1
LV Size 15.00 GiB
Read ahead sectors auto
- currently set to 256
Block device 253:2
LV size is 15GB.
sudo pvdisplay
:
PV Name /dev/sda5
VG Name vgroot
PV Size 299.04 GiB / not usable 0
Allocatable yes
PE Size 4.00 MiB
Total PE 76555
Free PE 65291
Allocated PE 11264
pvscan
is:
PV /dev/sda5 VG vgroot lvm2 [299.04 GiB / 255.04 GiB free]
Total: 1 [299.04 GiB] / in use: 1 [299.04 GiB] / in no VG: 0 [0 ]
I need to increase the size of /home, but how?
sudo lvdisplay
to your question? – Simon Sudler Apr 18 '19 at 13:28sudo pvscan
! – George Udosen Apr 18 '19 at 14:58