Space Issue


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Space Issue
# 1  
Old 02-15-2013
Tools Space Issue

Hey Experts,

I'm facing an issue related to space in the unix system. I have a mount point where 9.4 T is allocated. The entire mount point is filled and I can trace only for 6.7T but I could not located the rest of the space around 2T. I tried every single command to locate the file starting with find,du,df etc but no luck. Requesting you all to please help me find that hidden space.

Filesystem size used avail capacity Mounted on
/dev/vx/dsk/edwqadg/edw_qa
9.4T 9.3T 60G 100% /edw_qa
# 2  
Old 02-15-2013
They may be in deleted files. files which are deleted while still in use, will remain on disk until the files are closed. If someone naively deletes files to free up space, this may cause a problem that only restarting the process hogging them, or rebooting the machine, can resolve.
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 02-15-2013
Deleted files on NFS if still open are renamed in place to a funny .nfs* name, and other open deleted files used to go to /mount-point/lost+found/ You might be able to see them using lsof, and kill the processes that are holding them. On some systems the deleted files are still linked in /proc/$$/ or the like. If the files are still alive somewhere, you can run fuser on them to find using procs. To see where visible space is, I do something like this:
Code:
sort -nrm <( du -dk /mount-point | sort -nr | sed 's/$/\//' ) <( find /mount-point -mount -type f | xargs -r du -k | sort -nr )|pg

However, it misses big directories. du forgets them. Just for big directories, use something like this (reports in pages):
Code:
find /mount-point -mount -type d | xargs -r ls -sd | sort -nr | pg

There is no utility to shrink huge directories, but something like this is good if there is no white space in entry names and the directory is quiescent:
Code:
mkdir /huge_path'X'
ls -A /huge_path | ( cd /huge_path ; mv `cat` /huge_path'X' )
rmdir /huge_path
mv /huge_path'X' /huge_path

Huge directories are many ways bad.

Last edited by DGPickett; 02-15-2013 at 03:21 PM..
This User Gave Thanks to DGPickett For This Post:
# 4  
Old 02-15-2013
Space Issue

Thanks DGPcikett,

I have tried the command but not working...

Code:
 find /edw_qa -mount -type d | xargs -r ls -sd | sort -nr | pg
xargs: illegal option -- r
xargs: Usage: xargs: [-t] [-p] [-e[eofstr]] [-E eofstr] [-I replstr] [-i[replstr]] [-L #] [-l[#]] [-n # [-x]] [-s size] [cmd [args ...]]

This is Solaris

Code:
uname -a
SunOS dencdbbi2.cricketcommunications.com 5.10 Generic_147440-15 sun4u sparc SUNW,SPARC-Enterprise

# 5  
Old 02-15-2013
The xargs option we want is to not run with nothing, so try -n999 in place of -r.
# 6  
Old 02-15-2013
Thanks you sir,

It worked but its says 0 in lost+found dir.
# 7  
Old 02-15-2013
Well, where the inodes hide until closed varies with operating system and perhaps with file system. With Solaris, /proc suffices. Some of the file names in there give device and inode by number, as I recall, and may also be there as /dev/fd/some-number. Some file systems can actually lose track of space with overload, and need a reboot or more to rebuild the fs.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 8 metainit space issue

I am trying to create soft partition metaclear -r d109 metainit d109 -p d100 -o 178423817 -b 33554432 After i did this i saw the df -k /dev/md/dsk/d109 0 779600337 0 0% /test df -k shows that it is full? also i have tried adding no logging entry in /etc/vfstab... (0 Replies)
Discussion started by: gull05
0 Replies

2. UNIX for Advanced & Expert Users

Swap space issue

I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.... (3 Replies)
Discussion started by: solaris_1977
3 Replies

3. HP-UX

Swap space issue.

Hi, I am not sure how many scripts / java processes running on my HP-UX server. I need to calculate the total heap of these processes. I then need to recommend increasing the swap memory to be increase and equal to total heap if that is the right concept. Currently we are facing... (2 Replies)
Discussion started by: mohtashims
2 Replies

4. Shell Programming and Scripting

Combine 2 line with space issue

Hello all, i am new to linux , and please need your help and suggestion on.... when vi 1.txt :set list, it looks like $ is displaying the end of line Filter: vlan1-BUM-1M $ BUM-1M 0 ... (4 Replies)
Discussion started by: samoptimus
4 Replies

5. Solaris

swap space issue

HI All, Recently during oracle install I realized that I did not have enough swap space. So I - 1. Created a swap file "swap_fille1" in /rpool using mkfile - # ls -ltr /rpool total 10487121 drwxr-xr-x 3 root root 3 Dec 21 12:09 boot drwxr-xr-x 2 root root ... (10 Replies)
Discussion started by: sumeet
10 Replies

6. Shell Programming and Scripting

extra space issue with awk

for diskname in $(lspv |awk '{print $1}') do lquerypv -h /dev/|awk '/'$diskname'/ { print ; exit }' done No output is returning from the loop. I think awk put an extra space to the command - lquerypv -h /dev/ so that the command is executed as i.e. lquerypv -h /dev/ hdisk230 with a space... (7 Replies)
Discussion started by: Daniel Gate
7 Replies

7. UNIX Desktop Questions & Answers

Issue with disk space usage

Issue with disk space usage I have the following line in my "df -h" output: Filesystem Size Used Avail Capacity Mounted on /dev/ad4s1a 496M 495M -39M 109% / What is the issue with having 9% excess utilisation? How can I find out what this partition is... (2 Replies)
Discussion started by: figaro
2 Replies

8. Filesystems, Disks and Memory

Issue available disk space while using xdd

Good morning, I seem to be running into an issue with some drives I have attached to my solaris server. The drives are attached correctly, the partitions are arranged with fdisk, the ext3 filesystem is setup using mkfs, and finally the drive is mounted. When I use xdd to perform read/write... (3 Replies)
Discussion started by: mrpogo07
3 Replies

9. UNIX for Dummies Questions & Answers

Need help with space issue

Ok, I have a drive on my unix system that looks like this: /dev/hd4 0.38 0.00 100% 4316 3% / I can't find any file on that drive that would account for the 400MB. How can I thoroughly find the culprit of this space? I've done ls -al, but don't see anything that... (1 Reply)
Discussion started by: bbbngowc
1 Replies

10. UNIX for Dummies Questions & Answers

Space issue with Directory

Hi, How can I check whether a directory has enough space to create file? I have checked the space is availabe in the file system. For example: the directory /var/tmp resides in root file system. In the root file system currently 20% (5.5gb) space availabe. but how can I check the in the /var/tmp,... (1 Reply)
Discussion started by: siba.s.nayak
1 Replies
Login or Register to Ask a Question