Space not getting released on the mountpoint

Thread Tools Search this Thread
Operating Systems AIX Space not getting released on the mountpoint
# 1  
Old 12-03-2013
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    assistants
0.00    auth
0.00    cfgtoollogs
0.00    clone
0.00    csmig
0.00    css
0.00    ctss
0.00    dbs
0.00    dc_ocm
0.00    deinstall
0.00    demo
0.00    diagnostics
0.00    eons
0.00    gipc
0.00    gns
0.00    gpnp
0.00    has
0.00    hs
0.00    instantclient
0.00    ldap
0.00    mdns
0.00    mesg
0.00    ohasd
0.00    ologgerd
0.00    opmn
0.00    oraInst.loc
0.00    osysmond
0.00    owm
0.00    patch
0.00    plsql
0.00    precomp
0.00    psu
0.00    racg
0.00    relnotes
0.00    scheduler
0.00    slax
0.00    sqlplus
0.00    sysman
0.00    utl
0.00    wwg
0.00    xdk
0.01    crs
0.01    evm
0.01    ord
0.01    srvm
0.01    usm
0.02    jdbc
0.03    OPatch
0.03    ccr
0.03    jlib
0.03    md
0.03    nls
0.03    oui
0.04    oracore
0.05    install
0.06    cdata
0.06    perl
0.08    jdk
0.09    cv
0.10    javavm
0.10    network
0.11    rdbms
0.18    oc4j
0.32    crf
0.69    inventory
1.07    lib
2.14    log
7.84    bin

The mountpoint Grid_11203 is showing 47.3 GB but when we browse inside this it just shows sum of al files size close to 12 GB

How can I troubleshoot further?

Best regards,

Last edited by radoulov; 04-03-2014 at 12:21 PM..
# 2  
Old 12-03-2013
There are two common possibilities.

1. Several very large files are held open by processes, that called unlink() on the file after it was opened. They keep the file open. This is an old UNIX security trick. The data and inode persist so the process can use the file; but the directory entry does not persist; so df sees the used space, du does not see it.

2. The mountpoint was a directory with large files in it. You can mount a filesystem on top of a directory. The directory is not lost it is just buried alive so to speak. The directory and files continue to use space and will magically reappear when the filesystem is unmounted.
# 3  
Old 12-04-2013
Paste the output of df -g, you need to know is it a directory or filesystem.

It could be any of the reason Jim mentioned in 1st line
If it is a file system and no one is using it you can try umount/mount 'ing it.

Else for both directory or filesystem you can use the below.
fuser -cu <path>, it will report any open files and also (-u) flag will list the user.
You can kill it using -k flag.
# 4  
Old 12-04-2013
"released" implies you deleted things and expect their space back. If they were open files, they will remain on disk until whatever was using them lets them close.
# 5  
Old 12-04-2013
/dev/lv_oragrid     74.00     20.38   73%    24223     1% /oragrid_01

 fuser -cu /oragrid_01
/oragrid_01:  17825950c(oracle) 19660928c(oracle) 19988698c(oracle) 24641596c(oracle) 26279982c(oracle) 28442660c(oracle)
root@atldc-oragrid-ux01:/> ps -ef|grep 17825950c
root@atldc-oragrid-ux01:/> ps -ef|grep 17825950
  oracle 17825950 14024750   0 13:06:34  pts/2  0:00 -ksh
  oracle 26279982 17825950   0 13:06:34  pts/3  0:00 -ksh
root@atldc-oragrid-ux01:/> ps -ef|grep 19660928
  oracle 19660928 21364754   0 13:54:37  pts/4  0:00 -ksh
  oracle 19988698 19660928   0 13:54:37  pts/5  0:00 -ksh
root@atldc-oragrid-ux01:/> ps -ef|grep 19988698
  oracle 19988698 19660928   0 13:54:37  pts/5  0:00 -ksh
f0078563 26083538 19988698   0 14:10:18  pts/5  0:00 -ksh
root@atldc-oragrid-ux01:/> ps -ef|Grep  26279982
ksh: Grep:  not found.
root@atldc-oragrid-ux01:/> ps -ef|grep 26279982
  oracle 26279982 17825950   0 13:06:34  pts/3  0:00 -ksh
root@atldc-oragrid-ux01:/> ps -ef|grep  28442660
    root 26673332  5898392   0 14:19:23  pts/5  0:00 grep 28442660
  oracle 28442660 24641596   0 13:05:27  pts/1  0:00 -ksh

 umount /oragrid_01
umount: 0506-349 Cannot unmount /dev/lv_oragrid: The requested resource is busy.

Best regards,
# 6  
Old 12-04-2013
We were talking about "Grid_11203", now we know its a directory, so run
fuser -cu /oragrid_01/Grid_11203, now do you see any user have open files in here.

You cannot unmount that file system as oracle is using it, to do that you have to shutdown the grid.

But, you have to be sure that you can bring it down without causing havoc in the environment.
# 7  
Old 12-04-2013
The grid is already down for maintenance activity.Now,all the fuser sessions that I can see are just the session logins pls see the output in

ps -ef|grep process_id

These are just the sessions which are logged in once and while unmount problem is that the session through which I am connecting is also coming in fuser command so how can I kill that and if I kill that how would I issue unmount command.

Best regards,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating mountpoint in Linux from rawdevices without lv's

Hello, I need to create mountpoint in linux from rawdevices without using lv's. Please help me with the steps to do this. Best regards, Vishal (2 Replies)
Discussion started by: admin_db
2 Replies

2. Shell Programming and Scripting

Mountpoint monitoring script

Hi, I am new to shell scripting. I prepared a very simple script to monitor mount points but not geting desired output. df -h|awk -F' ' '{ if ($5 >= 80) print "CRITICAL\n" $NF " mount point has reached " $5;}'|sed -n '3,$p' When I run above script in Sun solaris box it is executing... (8 Replies)
Discussion started by: sv0081493
8 Replies

3. 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

4. Solaris

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. 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 ... (6 Replies)
Discussion started by: rock123
6 Replies

5. AIX

read lv mountpoint information directly from disk

Hello, I need to get the lv mountpoint from the hdisk directly (from vgda i guess) and not from odm or /etc/filesystems I knew the command, but unfortunately I forgot it ;) cheers funksen (5 Replies)
Discussion started by: funksen
5 Replies

6. UNIX for Advanced & Expert Users

Filesystem and partition, mountpoint

Hello All, I am new to System/plat-form administration work. Right now I am facing some issues while creating the filesystem and mounpoint. I am using Linux 6.0 SuSE 11. Last time I was used one command to partition the given space along with filesystem in SuSE 9 and it was done in GUI mode but... (0 Replies)
Discussion started by: nvkuriseti
0 Replies

7. UNIX for Dummies Questions & Answers

Testing NAS /mountpoint accessible

Hello. What's the best way to ensure that a NFS filesystem mounted from a disk-cabine (NAS) is accessible? My proposal: 1. ping to the ip of the cabine 2. verify filesystem is mounted 3. touch a file inside the /mountpoint Any other suggestions? Thank you! (2 Replies)
Discussion started by: asanchez
2 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. Solaris

problem in restoring mountpoint in Solaris

Hi, I am restoring the existing mount point on Solaris and getting below mentioned error mount: /dev/dsk/c0t2d0s6 is already mounted or /billing is busy I uses truss command to see the output and snapshot is below. Please help me to restore the mount point, # truss -fa mount -F... (3 Replies)
Discussion started by: helplineinc
3 Replies

10. UNIX for Advanced & Expert Users

HPUX : identify NFS mountpoint

Is there a way to identify a directory as the start of an NFS mountpoint in HPUX 11.0? Using existing utilities & without root priv. If you stat the directory and use the S_ISNWK macro you can find network special files that way. The requirement will have to go through other channels if I need... (5 Replies)
Discussion started by: jim mcnamara
5 Replies
Login or Register to Ask a Question