Mount point at 100%, but cannot see what is filling up


 
Thread Tools Search this Thread
Operating Systems Solaris Mount point at 100%, but cannot see what is filling up
# 15  
Old 07-16-2014
This also works slightly similarly in Linux but you can't actually get the file size from there:

Code:
$ echo asdf > file # Create dummy file
$ exec 5<file # Open file
$ rm file # Delete file
$ ls -l /proc/self/fd # Show it in /proc/.../fd

total 0
lrwx------ 1 user user 64 Jul 16 11:43 0 -> /dev/pts/1
lrwx------ 1 user user 64 Jul 16 11:43 1 -> /dev/pts/1
lrwx------ 1 user user 64 Jul 16 11:43 2 -> /dev/pts/1
lr-x------ 1 user user 64 Jul 16 11:43 200 -> /home/user/.ssh-agent
lr-x------ 1 user user 64 Jul 16 11:43 3 -> /proc/23358/fd
lr-x------ 1 user user 64 Jul 16 11:43 5 -> /home/user/file (deleted)

$ exec 5<&- # Close file

Deleted files just show as dead symlinks with (deleted) in their name.
These 2 Users Gave Thanks to Corona688 For This Post:
# 16  
Old 07-16-2014
As for the file size, use stat (if available on your system) with -L option to dereference the link:
Code:
stat -L /proc/self/fd/5
  File: ‘/proc/self/fd/5’
  Size: 5             Blocks: 8          IO Block: 4096   regular file
Device: 809h/2057d    Inode: 260099      Links: 0
Access: (0664/-rw-rw-r--)  Uid: ( 1000/ coerdtr)   Gid: ( 1000/ coerdtr)
Access: 2014-07-16 20:04:12.253665423 +0200
Modify: 2014-07-16 20:04:12.253665423 +0200
Change: 2014-07-16 20:04:39.729799747 +0200
 Birth: -

These 4 Users Gave Thanks to RudiC For This Post:
# 17  
Old 07-16-2014
Interesting, I didn't think that would work, ls shows the link as broken. I guess the link's shown destination and the links "contents" are actually different.
# 18  
Old 07-17-2014
I would think it references the inode, which in turn contains the relevant information.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

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)
Discussion started by: Thilagarajan
2 Replies

2. AIX

How to change the mount point of LV?

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)
Discussion started by: mrmurdock
1 Replies

3. UNIX for Beginners Questions & Answers

Can we have 2 mount point under the same name but at different directory?

guys i would like to know can we have 2 mount point which is same name but on different directory? (3 Replies)
Discussion started by: leecopper
3 Replies

4. Shell Programming and Scripting

Filling in the missing data point by awk

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)
Discussion started by: numareica
5 Replies

5. Red Hat

NFS mount point

Hi, Can you tell me something about NFS mount point ? Regards, Maddy (3 Replies)
Discussion started by: Maddy123
3 Replies

6. Shell Programming and Scripting

Mount point usage

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)
Discussion started by: Phuti
2 Replies

7. Solaris

Mount point in a server

Hi , How to find out mount point in a server ? OS -- SunOS 5.6 Generic sun4u sparc SUNW Thanks (4 Replies)
Discussion started by: Maddy123
4 Replies

8. Solaris

Mount Point Sorting?

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)
Discussion started by: honmin
2 Replies

9. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies

10. UNIX for Dummies Questions & Answers

mount point

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)
Discussion started by: colesy
1 Replies
Login or Register to Ask a Question