1834639 Members
2632 Online
110069 Solutions
New Discussion

Re: bdf output

 
yc_2
Regular Advisor

bdf output

Hi,

The root file system of one of our HPUX (11.11) servers was 98%. I have removed the unwanted files to acceptable level and the bdf output still show 98%. Any way to rectify without rebooting the server?
8 REPLIES 8
SKR_1
Trusted Contributor

Re: bdf output

find the bigger files

1. find / -xdev -size +1000000c -exec ll {} \;

2. du -sk / | sort -n

Thanks

SKR
Suraj K Sankari
Honored Contributor

Re: bdf output

Hi,

Check any open file is there under / also check any backgound process is running which is generating any files under root FS or check any core/zip files is there under /

For checking open files
lsof +L1 +D /

find / -name core -print


Suraj
yc_2
Regular Advisor

Re: bdf output

Hi,

I have removed the unwanted files. Now the problem is bdf not showing the actual information.

How to make bdf show the actual info without rebooting the server?
SKR_1
Trusted Contributor

Re: bdf output

lsof command will give you the list of open files. Check for that files, this may be the reason.

Thanks

SKR
Ganesan R
Honored Contributor

Re: bdf output

Hi,

If you delete a file which is still being used by some process, then you won't get the space until the process get terminated.

But if you check with du command you will get the actual free space on the disk.

So you need to find the process using the file which you deleted and kill that process. lsof is the tool to find the processes which is having open files.
Best wishes,

Ganesh.
Adam W.
Valued Contributor

Re: bdf output

YOu will have to use du and lsof, because after removing the files...etc.... you will still have prosesses and whatnot "clinging" to the space so the space won't read as available.
There are two types of people in the world, Marines and those who wish they were.
Tim Nelson
Honored Contributor

Re: bdf output

Once you find those process that have the files open that you removed you will still need to kill those processes in order for them to release the files from memory.

I doubt that you will be able to do that as it probably will mean an outage to your application. Just reboot and get it over with.

Also, find those applications that are writing data to the root filesystem and reconfigure them. If not your problem with be back again. Stop allowing applications to write into the root filesystem.



Dennis Handly
Acclaimed Contributor

Re: bdf output

>Tim: I doubt that you will be able to do that as it probably will mean an outage to your application. Just reboot and get it over with.

As with killing zombie masters, you have to look at the wanted posted to figure out whether that process you want to kill is worth more dead than rebooting the system. :-)