There is a common problem that there is a large open file that has been deleted. When a file is created, it writes an entry in the relevant directory so you can find it, but it is really a collection of disk blocks. The entry you can read in a directory is just a pointer to the disk blocks. The first block also contains what is called an i-node which holds information about the file, such as acces time, create time, modification time, permissions etc. Whilst the file is being written, those blocks will increase as the file needs.
If the file is still open as output by a program and someone issues a delete, all that will happen is that the directory entry that lets you see the file exists will get removed. The blocks are not freed until the file is closed, indeed the process can keep writing as long as there is space to write to.
Have a check of your manual pages for du to be sure, but you may be able to list it with:-
This will hopefully give you the processes that have open and deleted files in the filesystem. You can then choose if you want to terminate them, which will release the space back to the filesystem.
if this is not correct, you may need to use lsof to list all open files in /nikira and then loop through to see which ones are files, directories or other items you can list, and which are just an i-node reference, something like:-
It will probably take a long time to run with such a loop. Perhaps this will give better performance:-
..... but if there are submounted filesystems of perhaps symbolic links, that may be a problem as the i-node you are chasing may be used in the sub-mounted filesystem and therefore will provide a listing in /tmp/nikira_ls-laiR
hi people,
I'm trying to create a mount point, but am having no sucess at all, with the following:
mount -F ufs /dev/dsk/diskname /newdirectory
but i keep getting - mount-point /newdirectory doesn't exist.
What am i doing wrong/missing?
Thanks
Rc (1 Reply)
Dear Gurus,
Could it be possible to have the output of df -k sorted? The df -k output messed up after recent power trip.
Also, is there any folders that I should look into to reduce the root size (other than /var/adm and /var/crash) after server crash?
Many thanks in advance.
... (2 Replies)
Hi Guys,
I have Solaris 9 and RHEL 5 boxes I implemented script to send me an email when my mount point is > 90.
Now the ouput id like these:
/dev/dsk/emcpower20a 1589461168 1509087840 64478720 96% /data1
/dev/dsk/emcpower21a 474982909 451894234 18338846 97% /data2... (2 Replies)
I am learning AWK by trying out examples whenever I need a specific conversion. I would like to edit the 'before.txt' so that all the missing data points between 140-150 are added and shown as 0.
before.txt
145 2
148 13
149 17
to below,
140 0
141 0
142 0
143 0
144 0
145 2
146 0... (5 Replies)
I have situation where my disk upon reboot, has its mount point as #
LOGICAL VOLUME: disk4vol VOLUME GROUP: disk4vg
LV IDENTIFIER: 00f609aa00004c0000000152414b786c.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 512... (1 Reply)
How to create a new mount point with 600GB and add 350 GBexisting mount point
Best if there step that i can follow or execute before i mount or add diskspace IN AIX
Thanks (2 Replies)