Ubuntu 18.04 Space Issue
- 
 @scottalanmiller said in Ubuntu 18.04 Space Issue: @Curtis can you show me the output of ... vgdisplay 
- 
 @scottalanmiller said in Ubuntu 18.04 Space Issue: LVM is across the whole drive, that's not the issue. So I just need to extend the file system? 
- 
 @Curtis Run this... lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
- 
 @Curtis said in Ubuntu 18.04 Space Issue: @scottalanmiller said in Ubuntu 18.04 Space Issue: LVM is across the whole drive, that's not the issue. So I just need to extend the file system? No, the volume  Then the filesystem. Then the filesystem.What kind of filesystem is it? EXT4? XFS? 
- 
 @scottalanmiller said in Ubuntu 18.04 Space Issue: @Curtis said in Ubuntu 18.04 Space Issue: @scottalanmiller said in Ubuntu 18.04 Space Issue: LVM is across the whole drive, that's not the issue. So I just need to extend the file system? No, the volume  Then the filesystem. Then the filesystem.What kind of filesystem is it? EXT4? XFS? Whatever the default for a netinstall is. Is there a command to check? 
- 
 @scottalanmiller said in Ubuntu 18.04 Space Issue: @Curtis Run this... lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lvuser@server:~$ sudo lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv 
 sudo: unable to resolve host server: Resource temporarily unavailable/etc/lvm/archive/.lvm_server_2656_1676534144: write error failed: No space left on device  
- 
 Tried as root, and got this: /etc/lvm/archive/.lvm_server_2674_604287443: write error failed: No space left on device 
- 
 The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command. 
- 
 @marcinozga said in Ubuntu 18.04 Space Issue: The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command. Would this work? find /var/log -type f -delete
- 
 @Curtis said in Ubuntu 18.04 Space Issue: @marcinozga said in Ubuntu 18.04 Space Issue: The error tells you exactly why it's failing. Clean up some space, /var/log/ would be a good place to start. Then re-run that command. Would this work? find /var/log -type f -deleteI wouldn't do that. Just cd into the directory and remove anything that is zipped. 
- 
 root@server:/var# lvresize -l +100%FREE /dev/ubuntu-vg/ubuntu-lv 
 Size of logical volume ubuntu-vg/ubuntu-lv changed from 4.00 GiB (1024 extents) to <99.00 GiB (25343 extents).
 Logical volume ubuntu-vg/ubuntu-lv successfully resized. Now what? Now what?
- 
 
- 
 @Curtis As you are doing this maneach command so you understand what is occuringExample: man df
- 
 Show the output of mount
- 
 
- 
 Seems like I should run: resize2fs /dev/ubuntu-vg/ubuntu-lv? 
- 
 @Curtis it depends on filesystem. That's why I asked for output of mount command. 
- 
 @marcinozga said in Ubuntu 18.04 Space Issue: @Curtis it depends on filesystem. That's why I asked for output of mount command. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=1988900k,nr_inodes=497225,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=403972k,mode=755) /dev/mapper/ubuntu--vg-ubuntu--lv on / type ext4 (rw,relatime,data=ordered) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16445) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) debugfs on /sys/kernel/debug type debugfs (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) /var/lib/snapd/snaps/wekan_518.snap on /snap/wekan/518 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/wekan_523.snap on /snap/wekan/523 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_6673.snap on /snap/core/6673 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/wekan_517.snap on /snap/wekan/517 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_6818.snap on /snap/core/6818 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/sda2 on /boot type ext4 (rw,relatime,data=ordered) lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,noexec,relatime,size=403972k,mode=755) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=403968k,mode=700,uid=1000,gid=1000) root@wekan:/var# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=1988900k,nr_inodes=497225,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=403972k,mode=755) /dev/mapper/ubuntu--vg-ubuntu--lv on / type ext4 (rw,relatime,data=ordered) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime) cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio) cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma) cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices) cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset) cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids) cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer) cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb) cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory) cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event) systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=45,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=16445) mqueue on /dev/mqueue type mqueue (rw,relatime) hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) debugfs on /sys/kernel/debug type debugfs (rw,relatime) fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) configfs on /sys/kernel/config type configfs (rw,relatime) /var/lib/snapd/snaps/wekan_518.snap on /snap/wekan/518 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/wekan_523.snap on /snap/wekan/523 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_4917.snap on /snap/core/4917 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_6673.snap on /snap/core/6673 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/wekan_517.snap on /snap/wekan/517 type squashfs (ro,nodev,relatime,x-gdu.hide) /var/lib/snapd/snaps/core_6818.snap on /snap/core/6818 type squashfs (ro,nodev,relatime,x-gdu.hide) /dev/sda2 on /boot type ext4 (rw,relatime,data=ordered) lxcfs on /var/lib/lxcfs type fuse.lxcfs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,noexec,relatime,size=403972k,mode=755) tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=403968k,mode=700,uid=1000,gid=1000)
- 
 @Curtis said in Ubuntu 18.04 Space Issue: Seems like I should run: resize2fs /dev/ubuntu-vg/ubuntu-lvYup, run that. 
- 
 It's ext4, so the above command you provided is correct. 



