[SOLVED] System shows "Low Disk Space" but "df -h" indicates it has space
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm quite confused because the /tools_eda and /home can provide more than 100G space. The /tools_eda and /home is the space I added through lvm, as figure below shows:
Code:
vgdisplay -v
--- Volume group ---
VG Name vg_eda
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 11
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 479.99 GiB
PE Size 4.00 MiB
Total PE 122878
Alloc PE / Size 122878 / 479.99 GiB
Free PE / Size 0 / 0
VG UUID iKdogw-Am6E-Ip1z-6J5q-F7sD-Urcl-bVc3LR
--- Logical volume ---
LV Path /dev/vg_eda/home
LV Name home
VG Name vg_eda
LV UUID FRwAjR-SVjT-a3Yn-0S4s-HVBa-CokG-1j0XMB
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-09-22 22:50:23 +0800
LV Status available
# open 1
LV Size 100.00 GiB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_eda/tools_eda
LV Name tools_eda
VG Name vg_eda
LV UUID 7PQokA-Mv8D-07cf-elvo-0hvu-d0tG-YQKfVN
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-09-24 14:19:35 +0800
LV Status available
# open 1
LV Size 379.99 GiB
Current LE 97278
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
--- Physical volumes ---
PV Name /dev/sdb1
PV UUID u8SDhd-ThMT-X3X7-Xix0-I0G6-bJna-toz88m
PV Status allocatable
Total PE / Free PE 63999 / 0
PV Name /dev/sda4
PV UUID zp8KVw-sHKq-jnY4-dvAZ-ztxI-lsxb-hQxSX2
PV Status allocatable
Total PE / Free PE 58879 / 0
Code:
lvdisplay
--- Logical volume ---
LV Path /dev/vg_eda/home
LV Name home
VG Name vg_eda
LV UUID FRwAjR-SVjT-a3Yn-0S4s-HVBa-CokG-1j0XMB
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-09-22 22:50:23 +0800
LV Status available
# open 1
LV Size 100.00 GiB
Current LE 25600
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
--- Logical volume ---
LV Path /dev/vg_eda/tools_eda
LV Name tools_eda
VG Name vg_eda
LV UUID 7PQokA-Mv8D-07cf-elvo-0hvu-d0tG-YQKfVN
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2017-09-24 14:19:35 +0800
LV Status available
# open 1
LV Size 379.99 GiB
Current LE 97278
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
thanks for kind reply. What confused me is that even though /root is full, there is still spare space for the disk, as /home and /tools_eda shows (I was told lvm could be used for such case), why system reports disk full? what is the relationship between /root and other directories?
thanks for kind reply. What confused me is that even though /root is full, there is still spare space for the disk, as /home and /tools_eda shows (I was told lvm could be used for such case), why system reports disk full? what is the relationship between /root and other directories?
root is where everything except /boot, /home and /tool-era live. So /bin, /user, /etc, /var, etc. Basically that’s where the OS is.
Your / partition is extremely important and, as scasey says, is where your OS is. If it is full, you're going to run into a whole host of problems, including not being able to log into your desktop when you reboot. Yes, your entire disk is not full, but /, your most important partition is, and unless you clear some stuff, your whole disk may as well be full since you won't be able to use your OS properly.
Your / partition is currently 114GB full, which is crazy. It shouldn't even really be a quarter that full. You're going to have to do some research into some serious cleaning.
In a nutshell filesystems are separate spaces from each other. LVM makes it easier to enlarge a filesystem and merge more then one partition or disk into a single volume group/logical volume. However, /(root) is not part of a LVM and just adding a volume group does not add space to the root partition. If /(root) contains data that can be easily moved to /tools_eda that would free up space.
Without knowing how the virtual drive sda is partitioned or what type of filesystems they use I will assume they are xfs by default. You can not shrink xfs filesystems and therefore you can not easily move space from /home to /.
thanks for all of your kind reply. I guess what you mean is that "/" is similar to windows system "C:" while other directories, like /eda_tools or /home, etc is similar to other disk "D:" or "E:", ..., right? The "C:" is full while other disk still have space.
thanks for all of your kind reply. I guess what you mean is that "/" is similar to windows system "C:" while other directories, like /eda_tools or /home, etc is similar to other disk "D:" or "E:", ..., right? The "C:" is full while other disk still have space.
Sortof...but use "partition" rather than "disk" A disk can contain more than one partition. Yours has several. But I think you're getting the concept, and I'm just nit-picking the words you're using.
Yes, if a partition is full, then you'll get warnings/errors. If the root partition is full, your computer may not be able to start.
In Windows the C: drive is often allocated as 95% - or bigger.
Linux usually divides the disk into several partitions which cannot easily be resized on the fly.
So for example you can fill / whilst /home has loads of free space - if / and /home correspond to different partitions.
There are good reasons for this slight added complexity - your system programs and your data are kept separate, which makes data backups much easier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.