Mountpoint 100% but no data inside


 
Thread Tools Search this Thread
Operating Systems Solaris Mountpoint 100% but no data inside
# 1  
Old 03-30-2012
Mountpoint 100% but no data inside

One of our mountpoint shows 100% but we have less data on that mountpoint. Pls help me to find which data/process holds the space.

Code:
bash-3.00$ cd /oracle/server_software/oracle10
bash-3.00$ du -sh *
   0K   admin
260M   app
   0K   flash_recovery_area
   0K   lost+found
   0K   oradata
   0K   oraInventory

bash-3.00$ df -h .
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d1s6        4.9G   4.9G   1.2M   100%    /oracle/server_software/oracle10


Last edited by methyl; 03-30-2012 at 07:13 AM.. Reason: please use code tags
# 2  
Old 03-30-2012
A process can open a file, then delete it right away. The file continues to exist on disk, but no other process can see it

Try the pfiles command used with fuser:
Code:
# any process with a file open ( that does not show normally) will have to be visible here
fuser /oracle/server_software/oracle10

# for all of the pids that fuser reveals try:
pfiles [pid]

Then you can do something about stopping the process that filled the disk.
# 3  
Old 03-30-2012
My server OS is Solaris 10, i do not have options -Dv. Hence i ran the fuser -c

Code:
# fuser -c /oracle/server_software/oracle10
/oracle/server_software/oracle10:    12949ctom   12666ctom   12470ctom    6596ctom   26743ctom    6338ctom   10372ctom   23683ctom   26807ctom    8949ctom    8947ctom    8945ctom    8943ctom    8941ctom    8939ctom    8937ctom    8935ctom    8933ctom    8931ctom    8929ctom    8923ctom    8921ctom    8919ctom    8917ctom    8915ctom    8913ctom    8911ctom    8909ctom    8907ctom    8905ctom    8903ctom    8901ctom    8899ctom    8897ctom    8895ctom    8893ctom    8891ctom    8889ctom    8887ctom    8885ctom    8883ctom    8881ctom    8879ctom    8877ctom    8875ctom    8873ctom    8871ctom    8869ctom    8867ctom    8865ctom    8863ctom    8861ctom    8859ctom    8857ctom    8855ctom    8853ctom    8851ctom    8849ctom    8847ctom    8845ctom    8843ctom    8841ctom    8839ctom    8837ctom    8835ctom    8833ctom    8831ctom    8829ctom    8827ctom    8825ctom    8823ctom    8821ctom    8819ctom    8817ctom    8815ctom    8813ctom    8811ctom    8809ctom    8807ctom    8805ctom    8803ctom    8801ctom    8799ctom    8797ctom    8795ctom    8793ctom    8791ctom    8789ctom    8787ctom    8785ctom    8783ctom    8781ctom    8779ctom    8775ctom    8710ctom     720m   26450ctom   28155ctom     445ctom     443ctom     441ctom     439ctom     437ctom     435ctom     433ctom     431ctom     429ctom     427ctom     425ctom     423ctom     421ctom     417ctom     415ctom     413ctom     411ctom     409ctom     406ctom     404ctom     402ctom     400ctom     396ctom     391ctom     389ctom     385ctom     383ctom     381ctom     379ctom     377ctom     375ctom     373ctom     371ctom     369ctom     367ctom     365ctom     363ctom     361ctom     359ctom     356ctom     354ctom     352ctom     350ctom     348ctom     346ctom     344ctom     342ctom     340ctom     338ctom     336ctom     334ctom     332ctom     330ctom     328ctom     326ctom     324ctom     322ctom     320ctom     318ctom     316ctom     314ctom     312ctom     310ctom     308ctom     303ctom     301ctom     299ctom     297ctom     294ctom     292ctom     290ctom     288ctom     286ctom     282ctom     158ctom   15287ctom   15277ctom    3714ctom    3712ctom    3709ctom    3707ctom    3705ctom    3703ctom    3701ctom    3699ctom    3697ctom    3695ctom    3693ctom    3691ctom    3689ctom    3687ctom    3685ctom    3683ctom    3681ctom    3679ctom    1599ctom     953ctom     949ctom     947ctom     943ctom     941ctom     939ctom     937ctom     935ctom     933ctom     931ctom     929ctom     927ctom     925ctom     921ctom     919ctom     917ctom     915ctom     913ctom     911ctom     680tom


Last edited by radoulov; 03-30-2012 at 08:07 AM..
# 4  
Old 03-30-2012
Have you been deleting files in this partition (e.g. Oracle logs, Oracle database) ? These symptoms usually mean that files have been deleted while they are open by programs. In the end you will probably end up closing all applications which have files open on that partition.

Idea for a script to first list the detail of the processes which have the files open. Untested on Solaris, but tested on another unix. Substitute pfiles for ps when tested.

Code:
fuser -c /oracle/server_software/oracle10 2>&1 | tr -cd '[0-9] \n'|tr -s ' '| \
    tr ' ' '\n'|sed -e "/^$/d" |sort -n | uniq | while read PID
do
        ps -fp${PID} | grep -v "UID"
done

# 5  
Old 03-30-2012
@methyl Your script would probably work but is quite convoluted.

@rock123 Here are simpler ways:
Code:
ps -fp $(echo $(fuser -c /oracle/server_software/oracle10 2>/dev/null) | tr ' ' ',')

and even:
Code:
pfiles $(fuser -c /oracle/server_software/oracle10 2>/dev/null)

# 6  
Old 03-30-2012
Thanks jlliagre for the feedback. Its a modified extract of my script which has evolved over the years for variants of fuser and still works on O/S with limited command line length.
Your first script needs adjusting to be portable because there are multiple space characters between the PIDs in most editions of fuser and ps -fp coughs on the empty parameter.
# 7  
Old 03-30-2012
Quote:
Originally Posted by methyl
Its a modified extract of my script which has evolved over the years for variants of fuser and still works on O/S with limited command line length.
I indeed only tested mine on Solaris and Gnu/Linux where it works fine. Too bad you still use OSes with broken fuser implementations (I think that was some Dynix if I recall our last conversation about it ...)
Quote:
Your first script needs adjusting to be portable because there are multiple space characters between the PIDs in most editions of fuser and ps -fp coughs on the empty parameter.
It actually doesn't need any adjustments. I used the echo command to remove these extra space characters.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replace double quotes inside the string data for all the columns

Please use code tags Hi, I have input data is below format and n of column in the multiple flat files. the string data has any double quotes(") values replaced to double double quotes for all the columns{""). Also, my input flat file each column string data has carriage of new line too.... (14 Replies)
Discussion started by: SSrini
14 Replies

2. Shell Programming and Scripting

awk facing delimiter inside data

Inpu file is as below: CMEOPT1_dump.1:1002 ZN:VTJ3J3C131 CMEOPT1_dump.1:1002 ZN:VTM4M4P123%5 CMEOPT1_dump.1:1002 ZN:VTM3M3P132%5 CMEOPT1_dump.2:1002 OZNG4 CMEOPT2_dump.3:1002 ZB:VTH4H4C132 CMEOPT2_dump.4:1002 ZN:VTK4K4P123 CMEOPT2_dump.5:1002 ZN:BOZ2Z2Z2P131%5 CMEOPT2_dump.5:1002 OZNG4 ... (10 Replies)
Discussion started by: zaq1xsw2
10 Replies

3. AIX

Space not getting released on the mountpoint

root@atldc-oragrid-ux01:/oragrid_01> du -sg * 0.58 11gR2gridBase 47.31 Grid_11203 4.17 app 0.00 lost+found 0.01 oraInventory root@atldc-oragrid-ux01:/oragrid_01> cd Grid_11203 root@atldc-oragrid-ux01:/oragrid_01/Grid_11203> du -sg *|sort 0.00 JRE 0.00 OPatch_old 0.00 ... (11 Replies)
Discussion started by: Vishal_dba
11 Replies

4. Shell Programming and Scripting

Creating loops inside a file and extracting and loading data

Help needed (1 Reply)
Discussion started by: Chand Shrestha
1 Replies

5. UNIX for Advanced & Expert Users

Unable to format new mountpoint

Can some one help me i try to mkfs new mountpoint from storageIBM but give some problem # mkfs -t ext3 /dev/sdd1 mke2fs 1.39 (29-May-2006) /dev/sdd1 is apparently in use by the system; will not make a filesystem here! my os is redhat 5.3 using fdisk # fdisk -l Disk /dev/sda: 298.9... (4 Replies)
Discussion started by: vickyid04
4 Replies

6. Shell Programming and Scripting

compare date and time inside data of two files

i have two files with identical no of columns. 6th columns is date (MM/DD/YY format) and 7th columns is time (HH:MM:SS) format. I need to compare these two vaules and if the date & time is higher than fileA, save it on fileC; if the value is lower, then save it on fileD CONDITIONS... (7 Replies)
Discussion started by: ajiwww
7 Replies

7. Shell Programming and Scripting

Replacing Comma delimiter coming inside the data.

Hello, I am having flat file (Comma Delimiter) and the data in the file is as given below. EMPNO, ENAME, DESIGNATION, SALARY 10979, Arun Kumar, Cosultant, 35000 13555, Bidhu Shekar, Senior Consultant, 45000 15000, Kiran, Kumar, Senior, Consultant, 40000 If... (9 Replies)
Discussion started by: arunvasu2
9 Replies

8. Shell Programming and Scripting

Get mountpoint from filename

Dear Guru's Given a full filename /a/b/c/d/file.txt how do i determine what part is the mount point ( say /a/b). Cheers, Karel (6 Replies)
Discussion started by: karelb
6 Replies

9. UNIX for Dummies Questions & Answers

How to get data only inside polygon created by points which is part of whole data from file?

hiii, Help me out..i have a huge set of data stored in a file.This file has has 2 columns which is latitude & longitude of a region. Now i have a program which asks for the number of points & based on this number it asks the user to enter that latitude & longitude values which are in the same... (7 Replies)
Discussion started by: reva
7 Replies

10. Shell Programming and Scripting

Comparing data inside file

Hi Everyone, I will try to explain my question please forgive my english here. I am looking for shell script or command that can compare data in the files. I have 50 files in one directory test1 test2 test3 ....so on. I want to compare data in each files with each other and output each... (4 Replies)
Discussion started by: email-lalit
4 Replies
Login or Register to Ask a Question