LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   lv_root issue. no space, but nothing taking it up!!!! (https://www.linuxquestions.org/questions/linux-server-73/lv_root-issue-no-space-but-nothing-taking-it-up-4175589275/)

Bindairdundat 09-12-2016 11:18 AM

lv_root issue. no space, but nothing taking it up!!!!
 
I am getting a weird issue with my lv_root... df reports that it is full,

[root@server /]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_server-lv_root
51475068 51458684 0 100% /
<snip>

however this tells me (apparently) different...

[root@server /]# du -cks * | sort -rn | head

5972854 total
2880304 usr
2120924 home
545984 var
269208 lib
62386 boot
39376 etc
27576 lib64
14740 sbin
7988 bin

I am interpreting that is 5GB in use?... but 50GB is full... what am I missing here?

AlucardZero 09-12-2016 01:01 PM

A process is holding deleted files open, so they will show in df but not du. Easiest solution is to reboot. If that's difficult, you can use lsof to find what process(es) has deleted-but-still-open files, then restart just that process.

Bindairdundat 09-12-2016 02:38 PM

oh well, a reboot fixed it, but I was in the middle of reducing my home mount from 215 gb to 65 gb so I could give that space to lv_root...

buuuuut lvreduce cratered the file system.... yay...

I really appreciate the help

Bindairdundat 09-12-2016 02:43 PM

Whew!!!.. doing an Lvextend for the same amount, and an e2fsck afterwards shows that it was just fine....

maybe using lvresize is a better options I hear...


All times are GMT -5. The time now is 04:52 AM.