Running out of /usr space ...


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Running out of /usr space ...
# 8  
Old 10-24-2014
Before you start juggling filesystems, perhaps verify that the data on that filesystem is where it belongs...

Check for dangling filehandles - compare the output of du -sk /usr and df -k /usr, if the du output is significantly lower, you've probably deleted a file but left a process using the handle. Use lsof (or fuser, /proc or pfiles) to locate the process that is holding the handle and restart it.

Look for the big blobs in /usr - du -sk /usr/* | sort -n will show you the largest directories in there, you can drill deeper from there as required.

Look for recently modified files - /usr should be fairly static, if something is changing frequently, maybe it doesn't belong in there. find /usr -mtime -10 will show files modified in the last 10 days.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. Solaris

Running a script in a sub dir with space in it

Hi I am trying to run a script in a sub-directory, that has one space on it: such as: /internaldisk1/Task Logs1, but my entry in cron is not working: 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /internaldisk1/Task\ logs1/./remov_reject.sh > /var/tmp/interd_`date '+%Y%M%d'`.log 2>&1 Please can... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Disk space being used up while running a script

We have a script which when run consumes the space of the disk from where it is being run. we have to kill this script every time to release space. why do this happen ? any work around please we are using solaris 10 P.S. : a part of the code will make some connection to the DB (1 Reply)
Discussion started by: chidori
1 Replies

4. AIX

Running out of space

AIX 6.1 Of course, right at the end of the day I see that my "/" file system is just about out of space. I've been googling and reading man pages, but my google-fu is weak today. How do I find out what is taking all the space? I think I found the process that is cause *some* file to grow but I... (15 Replies)
Discussion started by: Spellbound
15 Replies

5. AIX

Alter paging space while the server is running

========================================================================= Hi I should make hd6 as 6144MB and remove paging00 How to do ? root@dbspsdbn1 #lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging01 hdisk2 ... (1 Reply)
Discussion started by: newtoaixos
1 Replies

6. Solaris

Allocating space to ufs /usr by using ZFS in solaris

Hi, Im currently having my diskspace allocation of my UFS filesystem in solris as 100% for /usr directory.I have created a zfs pool of 3 gb.I want to allocate space from my zfs pool to /usr so that i can free space in /usr.Please help me it is quiet urgent. (6 Replies)
Discussion started by: navjotmannan
6 Replies

7. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

8. HP-UX

/usr out of disk space need to unmount/ expand volume /mount

Greetings, I am running HP-UX 10.2 and /usr is out of disk space already. I installed IE 5.0 for UNIX on my machine under /usr and browsed the Internet for a while and presto no more disk space. I have plenty of hard disk space on my computer so would like to expand the size of the volume. The... (5 Replies)
Discussion started by: Dirk_
5 Replies

9. AIX

How much space is needed by /usr?

Aix 5.2 If you install Aix and accept the default settings for the various filesystems how much space is allocated for /usr? I've just accepted the default settings for the install prompts and no third party apps have been installed. TIA (3 Replies)
Discussion started by: Westy564
3 Replies

10. UNIX for Advanced & Expert Users

Running out of Space (Root)

Hi, I m working on about 16 Unix Servers, Sometime a file is generated in the root names STA, which causes the root to run out of space within few seconds ,,, and the server crashes..... hlp me out to find why the file is generated , what does it contain 'n' what is the cause ! (0 Replies)
Discussion started by: scorpiyanz
0 Replies
Login or Register to Ask a Question
swapon(8)						      System Manager's Manual							 swapon(8)

NAME
swapon - Specifies additional disk partitions for paging and swapping SYNOPSIS
/sbin/swapon [-asv] [-s special-device] [-v special-device] DESCRIPTION
The swapon command is used to specify additional disk partitions for paging and swapping. A paging partition is a block special device. ( Tru64 UNIX does not currently support paging and swapping to a regular file. All paging and swapping areas must be block special devices.) The swapon command uses a priority default of 4 for block special devices. Calls to swapon normally occur in the system multiuser state initialization. When you make more swap space available with the command, the additional swap space is available until the system is rebooted. To make additional swap space permanent, you must specify the swap device entry in the /etc/sysconfigtab file. The swapon command flags can override the partition specifications in the /etc/sysconfigtab file. You can use Logical Storage Manager (LSM) volumes for additional swap space. For high system availability, you can mirror the LSM volumes. The Logical Storage Manager manual describes how to use the command to configure an LSM mirrored volume as additional swap space. There are two strategies for swap space allocation: immediate mode and deferred or over-commitment mode. The two strategies differ in the point in time at which swap space is allocated. If immediate mode is used, swap space is allocated when modifiable virtual address space is created. If deferred mode is used, swap space is not allocated until the system needs to write a modified virtual page to swap space. Immediate mode is the default swap space allocation strategy. Immediate mode is more conservative than deferred mode because each modifiable virtual page is assigned a page of swap space when it is created. If you use the immediate mode of swap space allocation, you must allocate a swap space that is at least as large as the total amount of modifiable virtual address space that will be created on your system. Immediate mode requires significantly more swap space than deferred mode because it guarantees that there will be enough swap space if every modifiable virtual page is modified. If you use the deferred mode of swap space allocation, you must estimate the total amount of virtual address space that will be both cre- ated and modified, and compare that total amount with the size of your system's physical memory. If this total amount is greater than the size of physical memory, the swap space must be large enough to hold the modified virtual pages that do not fit into your physical memory. If your system's workload is complex and you are unable to estimate the appropriate amount of swap space by using this mode, you should first use the default amount of swap space and adjust the swap space as needed. To determine which swap space allocation mode is being used, check the setting of the vm-swap-eager parameter in /etc/sysconfigtab. If it is either not specified or set to 1, the system uses immediate swap mode. If it is set to 0 (zero), the system uses deferred mode. FLAGS
Installs all paging partitions specified in the /etc/sysconfigtab file. Displays swap space utilization. For each swap partition, this flag displays the total amount of allocated swap space, the amount of swap space that is being used, and the amount of free swap space. Generates verbose output. NOTES
There is no way to stop paging and swapping on a partition. It is therefore not possible to use swap devices that can be dismounted during system operation. Swap space is also used during a system crash dump. In planning your swap space allocation you should also consider your crash dump requirements. See the System Administration for information on crash dumps. EXAMPLES
The following example shows a swap device entry in an /etc/sysconfigtab file: vm: swapdevice=/dev/disk/dsk0b,/dev/disk/dsk1b The following command adds the /dev/disk/dsk0b block device file as swap space: swapon /dev/disk/dsk0b ERRORS
You may receive the following messages when using the swapon command: special-device or an overlapping partition is open. Quitting... This message indicates that you tried to add a partition as a swap device that is actively in use by UFS, AdvFS, swap, or LSM. spe- cial-device is marked in use for fstype in the disklabel. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] This message indicates that you tried to use a partition as a swap device that is not currently in active use but is marked for use in the disk label's partition map. For example, the partition may be part of an LSM volume or an AdvFS domain. If you know that the partition you specified to swapon does not contain any data, you can choose to override the warning. In this case, the fstype in the disk label will be modified to swap. Note that you can use the disklabel -s command to set the fstype in the disk label to unused for partitions that do not contain any valid data. See disklabel(8) for more information. Partition(s) which overlap special-device are marked in use. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] This message indicates that the partition you specified is not marked for use, but other, overlapping partitions on the disk are marked for use. If you override this warning, the fstype in the disk's label will be modified. The partition you specified to swapon will be marked as in use as a swap device and all overlapping partitions will be marked UNUSED. The following examples illustrate these messages: Adding a partition that is marked for use as a swap device: # /usr/sbin/swapon /dev/disk/dsk11g /dev/disk/dsk11g disk is marked in use for LSMpubl in the disklabel. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] Partition g of disk dsk11 is part of a disk marked for use by LSM. If LSM is not actively using this partition and the partition does not contain any data, you may want to override this warning, by answering y. In this case, partition g will be marked as swap in the disk label. Adding a partition as a swap device whose overlapping partitions are marked for use: # /usr/sbin/swapon /dev/disk/dsk11c Partition(s) which overlap /dev/disk/dsk11c are marked in use. If you continue with the operation you can possibly destroy existing data. CONTINUE? [y/n] If you answer yes, partition c on disk dsk11 will be marked swap in the disk label and all partitions that overlap c will be marked UNUSED. Adding a partition that is currently in use as a swap device: # /usr/sbin/swapon /dev/disk/dsk11g /dev/disk/dsk11g or an overlapping partition is open. Quitting... Adding a partition that does not have a disk label as a swap device: # /usr/sbin/swapon /dev/disk/dsk11c The disklabel for /dev/disk/dsk11c does not exist or is corrupted. Quitting... See disklabel(8) for information on installing a disk label on a disk. FILES
Specifies the command path. Specifies information about file systems and swap devices. RELATED INFORMATION
Functions: swapon(2), savecore(8) System Administration delim off swapon(8)