System shows "Low Disk Space" but "df -h" indicates it has space
Hi,
when I start my CentOS 7 through VMware workstation, I got message on "Low Disk Space". But when I run "df -h", I got these responds: Code:
user02@localhost ~]$ df -h Code:
vgdisplay -v Code:
lvdisplay |
Quote:
|
/(root) is full
Code:
/dev/sda3 114G 114G 200K 100% / Code:
/dev/sda1 297M 271M 26M 92% /boot Code:
/dev/mapper/vg_eda-home 100G 3.2G 97G 4% /home |
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?
|
Quote:
|
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. |
For comparison. root partitions on my headless server:
Code:
/dev/mapper/centos-root 50G 8.4G 42G 17% / Code:
/dev/sda3 50G 8.5G 39G 19% / |
In addition,
Code:
Filesystem Size Used Avail Use% Mounted on 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 /. |
Quote:
Code:
/dev/sdc1 30G 27G 959M 97% / Code:
/dev/root 30G 28G 760M 98% / Soon I'm going to have to do a little cleaning myself. |
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.
|
Quote:
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. |
got it. Thanks very much
|
I don't think you've quite got it.
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. |
All times are GMT -5. The time now is 01:33 AM. |