Solved Ubuntu 18.04 Space Issue
-
@DustinB3403 said in Ubuntu 18.04 Space Issue:
So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.
You must've done something custom to get this.
Crap Did you do a netinstall? (I did)
Well, I just need to get it expanded for now.
-
@Curtis said in Ubuntu 18.04 Space Issue:
@DustinB3403 said in Ubuntu 18.04 Space Issue:
So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.
You must've done something custom to get this.
Crap Did you do a netinstall? (I did)
Well, I just need to get it expanded for now.
No, not net install, minimal desktop.
-
@DustinB3403 said in Ubuntu 18.04 Space Issue:
@Curtis said in Ubuntu 18.04 Space Issue:
@DustinB3403 said in Ubuntu 18.04 Space Issue:
So to test, I just went through a basic 18.04 install, setup LVM and my file system layout is completely different. It allocated the entire 100GB I setup to /dev/sda1.
You must've done something custom to get this.
Crap Did you do a netinstall? (I did)
Well, I just need to get it expanded for now.
No, not net install, minimal desktop.
Maybe netinstall is different?
-
Seems like I should just be able to extend LVM across the whole drive, but I can't find a way to do it...
-
@Curtis can you show me the output of ...
lvdisplay vgdisplay
-
@Curtis said in Ubuntu 18.04 Space Issue:
Seems like I should just be able to extend LVM across the whole drive, but I can't find a way to do it...
LVM is across the whole drive, that's not the issue.
-
@Curtis said in Ubuntu 18.04 Space Issue:
Seems like / was only setup for 4GB... Why?
Probably to leave room for other things to be configured
-
@scottalanmiller said in Ubuntu 18.04 Space Issue:
@Curtis can you show me the output of ...
lvdisplay
-
@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.
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.
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-lv
user@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 -delete
I 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?
-