[SOLVED] /var filesystem is full but unable to find what is being used.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
root@segotl1712# du -sh .* *
845G .
du: cannot access `../proc/23261/task/23261/fd/4': No such file or directory
du: cannot access `../proc/23261/task/23261/fdinfo/4': No such file or directory
du: cannot access `../proc/23261/fd/4': No such file or directory
du: cannot access `../proc/23261/fdinfo/4': No such file or directory
848G ..
4.0K account
257M cache
4.0K crash
4.0K cvs
1.4M db
8.0K empty
4.0K games
845G lib
4.0K local
24K lock
76M log
16K lost+found
0 mail
4.0K nis
4.0K opt
4.0K preserve
232K run
4.2M spool
144K tmp
4.0K yp
root@segotl1712#
It is a production server.. Is there any other way to do without unmounting.
Check /lib, it says it has 845G !
Ok, just saw it /var that was full.
It seems you have /var on a separate lvm VolumeGroup: /dev/mapper/rootvg-varvol
The other ones seems like a different VG.
So don't grep for /var in the df command.
Last edited by DaTore; 01-14-2016 at 07:25 AM.
Reason: correction
It is a production server.. Is there any other way to do without unmounting.
Probably (no clue about lvm) you can mount /dev/mapper/rootvg-varvol somewhere else (as well as where it is already mounted) and get access to the "base" filesystem.
Probably (no clue about lvm) you can mount /dev/mapper/rootvg-varvol somewhere else (as well as where it is already mounted) and get access to the "base" filesystem.
Well, here rootvg is the Volume Group, to this one you add disks (or more correct partitions)
Inside it youe here have the Logical Volume varvol.
The space dedicated to this varvol is not same as the other Volume Groups.
postgres_vg0x onthe other hand is a different Volume Group using other disks or partitions, not same space.
So look in /var only for used space.
You can drill down like this:
du -s /var/*
du -s /var/dir-with-most-bytes/*
and so on
and do NOT unmount mounpoints for your postgres production database ! It have it's own disk and as you see plenty of room.
Last edited by DaTore; 01-14-2016 at 08:07 AM.
Reason: added warning
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.