How to check Utilization of single filesystem


 
Thread Tools Search this Thread
Operating Systems Solaris How to check Utilization of single filesystem
# 8  
Old 03-03-2011
Thanks avronis. Yeah I think the act needs to be cleaned up, but is there someway to quickly redeem this loose space, dangling pointers etc. Without machine reboot or partition remounting.
Someway to flush the memory.
# 9  
Old 03-04-2011
It's not stuff that hasn't been flushed -- the deleted files are literally still in use. Deleting the file doesn't do anything to something that already has the file open -- the file continues to exist, and won't be released from disk until whatever's holding them open lets them close.

lsof doesn't seem to be able to give file names, but you can ask it for every process using / with fuser -v -M /

Quickest and dirtiest way: reboot the system.
# 10  
Old 03-05-2011
you can try that below:
du -ks /* |sort -nr
# 11  
Old 03-07-2011
Hi all

Thanks for the guidance. I ended up rebooting the machine on the weekend because the situation was getting out of hand and good to say i can see the utilization is now down to 3GB as per our "du" output Smilie.

I have now come across a sun script
Code:
nfsfind

would this work to close deleted files still held open by processes?
# 12  
Old 03-07-2011
As long as the file is open by a process, there is no way it can be closed. The file is closed when the application that holds it closes the file, which is usually when the application quits.

Code:
pfiles

The pfilescommand could be used to check which files are open by an application. For files that are delete, pfiles will only list file information but no file name. But be aware. Not all files listed by pfiles without a file name are errors and/or problems that need to be fixed.

Code:
 $ pfiles 19547 
 19547:  /usr/bin/perl ./keepopen 
 Current rlimit: 256 file descriptors 
 0: S_IFCHR mode:0620 dev:298,0 ino:12582934 uid:0 gid:7 rdev:24,9 
 O_RDWR|O_LARGEFILE 
 /devices/pseudo/pts@0:9 
 1: S_IFCHR mode:0620 dev:298,0 ino:12582934 uid:0 gid:7 rdev:24,9 
 O_RDWR|O_LARGEFILE 
 /devices/pseudo/pts@0:9 
 2: S_IFCHR mode:0620 dev:298,0 ino:12582934 uid:0 gid:7 rdev:24,9 
 O_RDWR|O_LARGEFILE 
 /devices/pseudo/pts@0:9 
 3: S_IFREG mode:0644 dev:136,3 ino:79343 uid:0 gid:0 size:222173910 
 O_RDONLY|O_LARGEFILE FD_CLOEXEC

# 13  
Old 03-08-2011
Quote:
Originally Posted by waqasahsan
I have now come across a sun script
Code:
nfsfind

would this work to close deleted files still held open by processes?
Doesn't sound related, no.

To close the file you either have to convince the application to close it, or kill the application.

The former would be nicer if you can do it. If it's system logs, a SIGHUP to the right daemon might do.

You can get a version of lsof for Solaris from sunfreeware which hopefully provides more illuminating output than fuser.
# 14  
Old 04-15-2011
susheel

metastat
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

How to check overall hard disk utilization in UNIX?

how to check overall hard disk utilization in unix? we use bdf command to find the utilized space for the particular path bdf filepath how can i find overall hard disk utilization? (4 Replies)
Discussion started by: ashwanthfrq
4 Replies

2. Red Hat

Need to check full utilization of my pc RAM - any commands ???

hi guys, I wanted to utilize my PC's full RAM memory to check its performance, for that how can i perform this full RAM utilization with the help of a process or a command in rhel 6. for example, in windows, while checking the harddisk for error (chkdsk - command ) could takes full RAM... (7 Replies)
Discussion started by: redhatlbug
7 Replies

3. Shell Programming and Scripting

Check if NAS filesystem is mounted

Anyone know the best way to check and see if a NAS filesystem is mounted on a linux box. I have no idea where to start :wall:. (2 Replies)
Discussion started by: d3mon_spawn
2 Replies

4. Shell Programming and Scripting

script to check high cpu utilization for java process

Hello Team, I need help in preparing script to check for high cpu utilisation for java process. I have many java process on my system which consumes high cpu so i have to monitor it using script. ---------- Post updated 12-10-10 at 02:21 AM ---------- Previous update was 12-09-10 at... (1 Reply)
Discussion started by: coolguyamy
1 Replies

5. Solaris

check the utilization of kernel values ?

Any native Solaris commands/scripts to check the utilization of kernel tables/limits in Solaris ? (like equivalent command in HPUX is kcusage) (2 Replies)
Discussion started by: thamurali
2 Replies

6. SuSE

How to check Memory Utilization by each process

If following is the usage of cat /proc/meminfo MemTotal: 4051304 kB MemFree: 28544 kB Buffers: 216848 kB Cached: 3398628 kB SwapCached: 0 kB Active: 455460 kB Inactive: 3291612 kB HighTotal: 0 kB HighFree: 0 kB... (5 Replies)
Discussion started by: bryanabhay
5 Replies

7. Shell Programming and Scripting

Check for the Processes in Unix and also CPU utilization

What is the command for checking all the processes running on UNIX. Alos can any one share the CPU utilization script to know what are all the processes running and what is the cpu utilization ... thanks in advance Perla Mohan (3 Replies)
Discussion started by: perlamohan
3 Replies

8. Solaris

Unable to check / filesystem

Hi buddies, I have T1000 and Solaris 10 installed on it. After a power failure system shut down improperly. Error Message is WARNING - Unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c0t0d0s0). Jul 18 10:16:09 svc.startd:... (6 Replies)
Discussion started by: ahsen
6 Replies

9. Shell Programming and Scripting

Check space utilization in recursive mode

Hi friends, I have the following query.. Suppose I have the parent directory as /home/suresh/Jobs and assume there are many child ub-directories created within this parent directory I would like to fire a command which will give me the space utilization within each of the child... (1 Reply)
Discussion started by: sureshg_sampat
1 Replies

10. SCO

How to check CPU Utilization

Hi All, I want to check the CPU Utilization for my SCO UNIX machine. Please suggest some commands to do that. Thanks, Am (2 Replies)
Discussion started by: am_yadav
2 Replies
Login or Register to Ask a Question