Sponsored Content
Operating Systems Solaris /u01 is filling up -how to know the large files Post 302943084 by bakunin on Tuesday 5th of May 2015 08:53:35 AM
Old 05-05-2015
My preferred method of doing this is to "zoom in" into the filesystem: i use du -ks * | sort -n on a certain level to find out which file/directory is using most. Then i investigate directories high up on this list again by changing into them and repeating the procedure.

For instance:

Code:
# # du -ks /var/* | sort -n
0       /var/aacct
0       /var/cim
0       /var/empty
0       /var/ha
0       /var/lib
0       /var/lost+found
0       /var/msgs
0       /var/ncs
0       /var/news
0       /var/pconsole
0       /var/probevue
0       /var/security
0       /var/snapp
0       /var/symapi
0       /var/tss
0       /var/yp
4       /var/statmon
4       /var/suma
4       /var/websm
8       /var/locks
8       /var/run
8       /var/tivoli
24      /var/dt
36      /var/krb5
52      /var/ssl
120     /var/esa
160     /var/preserve
516     /var/tmp
9828    /var/ecc
15140   /var/log
16208   /var/ct
18008   /var/perf
22096   /var/spool
101360  /var/adm
513168  /var/opt

Therefore i try "/var/adm" and "/var/opt":
Code:
# du -ks /var/opt/* | sort -n
0       /var/opt/freeware
0       /var/opt/tivoli
112324  /var/opt/perf
400856  /var/opt/OV

# du -ks /var/adm/* | sort -n
0       /var/adm/acct
0       /var/adm/corrals
0       /var/adm/ffdc
0       /var/adm/nim
0       /var/adm/perfmgr
0       /var/adm/sa
0       /var/adm/streams
0       /var/adm/wpars
4       /var/adm/SUchecklog.chk
4       /var/adm/SUreport.chk
4       /var/adm/dev_pkg.fail
4       /var/adm/dev_pkg.success
4       /var/adm/pconsole
4       /var/adm/sulog
4       /var/adm/wtmp
8       /var/adm/SRC
8       /var/adm/esa
8       /var/adm/ml
12      /var/adm/ena_lg_send_virt_eth.log
12      /var/adm/sni
16      /var/adm/sw
40      /var/adm/hfi
448     /var/adm/config
1912    /var/adm/invscout
3884    /var/adm/ras
94980   /var/adm/cron

etc., etc.. This way i get a quick picture of where most of the space in /var is going to.

I hope this helps.

bakunin
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

large files in 32 bits?

How I can call routines for write large files' text if I've a libraries that can't be compiled in 64 bits? I tried whit open O_LARGEFILE option but if I see the rows whith cat are strange because I only see the first one. (1 Reply)
Discussion started by: glfuentes
1 Replies

2. UNIX for Dummies Questions & Answers

Large files

I am trying to understand the webserver log file for an error which has occured on my live web site. The webserver access file is very big in size so it's not possible to open this file using vi editor. I know the approximate time the error occured, so i am interested in looking for the log file... (4 Replies)
Discussion started by: sehgalniraj
4 Replies

3. UNIX for Dummies Questions & Answers

large files?

How do we check 'large files' is enabled on a Unix box -- HP-UX B11.11 (2 Replies)
Discussion started by: ranj@chn
2 Replies

4. UNIX for Dummies Questions & Answers

display large files

I'm looking to display the largest files in a file system without descending into subdirectories. The / file system is 65% full and I'm looking to display only the files in / without taking into consideration other filesystem/directories. I can execute this command du -sk ./* |sort -nr... (2 Replies)
Discussion started by: Steelysteel
2 Replies

5. UNIX for Dummies Questions & Answers

Renaming Large Files

When I have a file for example with the wrong name I normally use the cp {filename} {new filename} comand so I will have the original as well as the correct named file. Just for backup purposes. Problem: I have a file that is 24gb with a case sensitive filename. The file was named with upper... (3 Replies)
Discussion started by: trek88
3 Replies

6. Shell Programming and Scripting

Divide large data files into smaller files

Hello everyone! I have 2 types of files in the following format: 1) *.fa >1234 ...some text... >2345 ...some text... >3456 ...some text... . . . . 2) *.info >1234 (7 Replies)
Discussion started by: ad23
7 Replies

7. Solaris

How to safely copy full filesystems with large files (10Gb files)

Hello everyone. Need some help copying a filesystem. The situation is this: I have an oracle DB mounted on /u01 and need to copy it to /u02. /u01 is 500 Gb and /u02 is 300 Gb. The size used on /u01 is 187 Gb. This is running on solaris 9 and both filesystems are UFS. I have tried to do it using:... (14 Replies)
Discussion started by: dragonov7
14 Replies

8. UNIX for Dummies Questions & Answers

Lot of warn files filling /

hi guys I have suse 11 sp1 and I have a lot of warn file filling / these are under /var/log there's this big one -rw-r----- 1 root root 3.9G Feb 1 10:28 warn warn: ASCII text and the others that are about 2.5 to 3MB - they are about 130 warn-*.bz2 -rw-r----- 1 root root 3.9G Feb... (2 Replies)
Discussion started by: karlochacon
2 Replies

9. UNIX for Dummies Questions & Answers

Merging two text files by a column and filling in the missing values

Hi, I have to text files that I want to merge by the first column. The values in the first column pretty much match for the first part. However there are some values that are present in column 1 and not present in column 2 or vice versa. For such values I would like to substitute X for the... (9 Replies)
Discussion started by: evelibertine
9 Replies
utmpx(4)							   File Formats 							  utmpx(4)

NAME
utmpx, wtmpx - utmpx and wtmpx database entry formats SYNOPSIS
#include <utmpx.h> /var/adm/utmpx /var/adm/wtmpx DESCRIPTION
The utmpx and wtmpx files are extended database files that have superseded the obsolete utmp and wtmp database files. The utmpx database contains user access and accounting information for commands such as who(1), write(1), and login(1). The wtmpx database contains the history of user access and accounting information for the utmpx database. USAGE
Applications should not access these databases directly, but should use the functions described on the getutxent(3C) manual page to inter- act with the utmpx and wtmpx databases to ensure that they are maintained consistently. FILES
/var/adm/utmpx user access and adminstration information /var/adm/wtmpx history of user access and adminstrative information SEE ALSO
getutxent(3C), wait(3C)wait.h(3HEAD) SunOS 5.10 22 Feb 1999 utmpx(4)
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy