du -sh issue in solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris du -sh issue in solaris 10
# 1  
Old 01-22-2010
du -sh issue in solaris 10

i have 30 file systems on my production system and my system is responding too slow and / is 99% full is there any way i can run the du -sh only on root file systems and skip all the SAN file systems as the system is unable to do du -sdh * / as it would try to run du on all the SAN/NAS file systems too.
# 2  
Old 01-22-2010
Hi.

If I understand the man page correctly:

Code:
/usr/xpg4/bin/du -shx /*

might give what you want?

Quote:
-x When evaluating file sizes, evaluate only those
files that have the same device as the file speci-
fied by the file operand.


Last edited by Scott; 01-22-2010 at 06:40 AM..
# 3  
Old 01-22-2010
Can you housekeep you root filesystem first then redo du or df. If df still shows 99%, then you might need to check the open files in cache and fuser to track and kill open processes
# 4  
Old 01-22-2010
i have already done housekeeping and still unable to find anything .. my /usr, /var, /tmp ,/export and they all are fine & how can i check open files in / .. i know i can do this with lsof but for /var or /usr not for entire root file system i would appreciate if you can help me on this

---------- Post updated at 06:01 AM ---------- Previous update was at 05:52 AM ----------

and one more thing i didn;t understand how to use /usr/xpg4/bin/du -shx /*

as my SAN file systems are vxfs and root file system are on zfs

Code:
rpool                       132G      0    94K  /rpool
rpool/ROOT                  126G      0    18K  legacy
rpool/ROOT/s10s_u6wos_07b   126G      0   126G  /
rpool/dump                 4.00G      0  4.00G  -
rpool/swap                    2G  2.00G    16K  -


 df -h /
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10s_u6wos_07b
                       132G   126G     0K   100%    /

# 5  
Old 01-22-2010
It might be a ZFS snapshot.

What says
Code:
zfs list

or
Code:
zfs list -t all

?
# 6  
Old 01-22-2010
Code:
$ zfs list -t all
invalid type 'all'

Code:
$ zfs list -r rpool
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                       132G      0    94K  /rpool
rpool/ROOT                  126G      0    18K  legacy
rpool/ROOT/s10s_u6wos_07b   126G      0   126G  /
rpool/dump                 4.00G      0  4.00G  -
rpool/swap                    2G  2.00G    16K  -



---------- Post updated at 06:17 AM ---------- Previous update was at 06:17 AM ----------

Code:
$ zfs list -t all
invalid type 'all'

Code:
$ zfs list -r rpool
NAME                        USED  AVAIL  REFER  MOUNTPOINT
rpool                       132G      0    94K  /rpool
rpool/ROOT                  126G      0    18K  legacy
rpool/ROOT/s10s_u6wos_07b   126G      0   126G  /
rpool/dump                 4.00G      0  4.00G  -
rpool/swap                    2G  2.00G    16K  -

as far as in can see there is no snapshot .. this was the first thing we checked

---------- Post updated at 07:04 AM ---------- Previous update was at 06:17 AM ----------

the /var/cores directory was the culprit and since i was using sudo with normal user i it was not showing me the contents of /var/cores ..:-) sorry for confusion .. this thread can be closed now.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cipher issue on Solaris 11.4

Hi, Our most of servers are on Solaris 11.2 (with no SRU). Recently I upgraded one of them to Solaris 11.4. It has to go in multiple steps, as it can not jump fro 11.2 to 11.4 in one go. After upgrading, I can not login to server with SecureCRT and it through error key exchange failed: cipher... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. Shell Programming and Scripting

X Forwarding issue on Solaris 11

Hello All , Need assistance in finding out a solution for X Forwarding issue IBM applications requires X Forwarding . Server X11 works fine when i try xclock but not this application . On a different server with the same OS it is working . Need inputs . OS Version : Solaris 11 with updated... (1 Reply)
Discussion started by: ajayram_arya
1 Replies

3. Solaris

Solaris version issue

Hi Friends, I am new in solaris. yesterday i installed solaris in VM. now while installing weblogic setup(.bin) its giving me Invalid argument error. after some google i have two points in my mind 1) i am using solaris on intel machine. thats why i am facing this issue. If answer is yes... (3 Replies)
Discussion started by: Vishal Baghla
3 Replies

4. Solaris

Solaris 11 disk issue

I have 2 disks in my system.I recently added a zpool to the disk, but today I changed my mind and deleted the zpool , zpool destroy -f extra The zpool is now deleted and I want to partition the disk, so I delete the only partition on the disk. Now when I run format again, format... (13 Replies)
Discussion started by: cbtshare
13 Replies

5. UNIX for Dummies Questions & Answers

grep issue (Solaris)

Can anyone explain this (i.e. why the 2nd grep does not find anything)?: -bash-3.00$ cat tmp.log sftp> chdir /home/test-dir sftp> mget thosefiles*.txt File "/home/test-dir/thosefiles*.txt" not found. -bash-3.00$ grep "s*.txt" tmp.log sftp> mget thosefiles*.txt File... (4 Replies)
Discussion started by: dhebden
4 Replies

6. Solaris

Vi issue with solaris

I'm facing a peculiar issue when using vi on solaris. When i open a file using vi & search for a string pattern & if that pattern is not found & if i exit, vi exits with return value 1. (Checked the return value with 'echo $?' ). When the string is found, vi exits with return value 0. This... (9 Replies)
Discussion started by: pj87
9 Replies

7. Solaris

Printing Issue On Solaris 10

Synopsis: Solaris 10 SunFire v880 with two networked HP laser printers set up through HPPI. Test page will print through HPPI but can't print to them us the lp command. When using the lp command it just hangs and causes the Samba process to fail. We have a SunFire v880 running Solaris 10. $$... (1 Reply)
Discussion started by: KenLynch
1 Replies

8. Solaris

Solaris Issue

Hi, I am having a serious problem with a Solaris 2.6 box. Whenever I try and tar a large directory I get this error:tar: write error: unexpected EOF My own research shows that I might have to enable tarring large files by this command: fsadm -o largefiles <mountpoint> My box does not... (8 Replies)
Discussion started by: mojoman
8 Replies

9. Solaris

CDE Issue In Solaris 10

Hi All, I have solaris 10 on X86 and I need to connect this through X-Manager or similar software. I have googled a lot and tried the following : root@sol10x86 # ps -ef |grep dtlogin root 1825 4718 0 13:38:50 pts/1 0:00 grep dtlogin root@sol10x86 # svcs cde-login STATE ... (2 Replies)
Discussion started by: pintu_asim
2 Replies

10. UNIX for Advanced & Expert Users

Solaris 10 auth issue

Very strange one, we've got a recently build server (Sol10 via JET flash). Bascially you can ssh to it fine, but telnet will allow entry of username, but will then feed in a carriage return on the passwd field, this also happens on any auth type command, ie passwd on a user account will also... (4 Replies)
Discussion started by: itsupplies
4 Replies
Login or Register to Ask a Question