FS Utilization Issue

Hi,

I have inherited a server that is experiencing a FS utilization issue.

The /home (below) is being utilized by the other mounted FS even though they belong to 2 different vg's.

/dev/mapper/VolGroup00-home_vol
3.9G 3.7G 0 100% /home
 
/dev/mapper/vg01-lvol0
394G 306G 68G 82% /home/oracle/pcm/dbbkup

With the exception of the /home/oracle directory all other sub-directories within /home only accumulate to 1G in size therefore the oracle home directory is consuming the space.

Do I need to remount the latter dir as something else or is there an easier way of resolving this?

R,
D.

When accumulating all directories below /home, you have to count /home/oracle too, minus the size of /home/oracle/pcm/dbbkup, as this is as you stated a separate FS. The sum should be about 3,7 GB then.
You might have to do some clean up in form of moving, compressing/archiving or deleting files. If these are no option, you will have to add some space if possible.

Hi,

This however is not the case.....

The strange thing is that the latter dir is only 400G but is showing as over 500G from the du command

# pwd  
/home/oracle
[root@mvdbs2 oracle]# du -sh .
533G    .

R,
D.

Please post what Operating System and version you are using.

I think you should be using the -x parameter to du (to confine it to the current filesystem).

du -shx .
1 Like

Hi,

Using RHEL5. You are absolutely correct:

# du -shx .
2.8G    .

R,
D.

If this is true then the problem should be visible in:

find /home/oracle -xdev -type f -size +1000000c -exec ls -lad {} \;

Note the use of -xdev to confine the search to the filesystem /home .
If you don't find any large files and have been deleting files, you may have deleted files which are open by an application in which case you will not get the disc space back until you close the application or reboot the server.

A quick way in Linux and most other SysV-based Unixes to find out which process is holding onto a file that would otherwise be deleted is the fuser command. it even has a -k option though I have always either manually sent signals or had a script to clear such out. Useful on old systems with many active serial connections that get clogged up.