Sponsored Content
Operating Systems Solaris How to use space in /tmp to increase root? Post 302978614 by rbatte1 on Tuesday 2nd of August 2016 04:19:31 AM
Old 08-02-2016
I would actually ask the reverse question:-
"What is filling up my root filesystem?"
You might help to answer this reviewing the output from the following:-
Code:
cd /
du -ks *|sort -n

You can then work down the largest directories to get a feel for where the space is used. Perhaps you can move these.


Are you using a volume manager at all on this server (Veritas perhaps?) You would be far better to try to split up and shrink the root filesystem to hold just the OS that you need to boot. Data in the root filesystem, whatever directory path you squirrel it away under, is usually bad as if your application runs away, you can end up with a system that will not boot.

I would suggest that splitting out /var (where most OS logs are written to, along with mail files etc.) /home (user personal files) and /tmp would be good practice.


Can you tell us more about the server disk you have?

Output from df -h and a listing from the volume manager of all the volume groups would be useful. That might be a vgdisplay -v or vxdg list & vxdg free


That said, splitting a root filesystem is not a trivial matter. You will probably have to boot to single-user from media so that it is not in use, then move data around before attempting a shrink if your volume manager allows it.


How critical is the server and it's data? It would be prudent to check you can read your backups before starting anything.




Robin

Last edited by rbatte1; 08-02-2016 at 05:21 AM.. Reason: Added the section about using DU to find the directories using most space
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

increase size of /tmp

My /tmp is full, and the oracle installation is crashing. How can I increase the size of /tmp, even though I have allocated all the available disk space to other partitions? (2 Replies)
Discussion started by: pkappaz
2 Replies

2. UNIX for Dummies Questions & Answers

Moved root directory to tmp

I just received a phone call from a customer who accidentally typed this in: # mv * /tmp They did this from the root directory. I think they thought they were in a different folder. So now no commands work. I even adjusted the path to have the /tmp in front of everything. Even when I went... (8 Replies)
Discussion started by: stufine
8 Replies

3. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

4. Shell Programming and Scripting

/tmp out of space error

Hi , I am a documentum consultant and facing a problem with a shell script that launches an installer to install documentum . The problem i am facing is that , when i invoke the below script to install the software it says - The directory /tmp does not contain enough space to extract... (1 Reply)
Discussion started by: h.shergill
1 Replies

5. Solaris

increase Root size

Dear all, I am very new to solaris, I have installed solaris 10, i tried installing few softwares into file system, unfortunately system failed to install stating "No space left on device " i searched few threads and it says, we have to increase root size. where my root size is... (2 Replies)
Discussion started by: radhnki
2 Replies

6. AIX

i-nodes - out of disk space on /tmp

Usage: We run test build jobs that login to our AIX machines and create many small files in /tmp. After these jobs complete, they delete their temporary files that they have created. Issue: After approximately a week /tmp appears to become full. Issuing the command “df –g... (4 Replies)
Discussion started by: bblondin
4 Replies

7. Solaris

Increase /tmp size temporarily

Hi all system Solaris 10 10/09 s10x_u8wos_08a X86 ufs file system I would like to install SunStudio. After the gui comes up it shows that i need to add swap space of at least 900m. the command swap-s shows 880m free. My question is can you temporarily increase swap by 1 or 2... (3 Replies)
Discussion started by: kc2dws
3 Replies

8. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

9. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

10. Solaris

Increase /tmp file system size dynamically in Solaris zone

Hi Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone # df -h Filesystem size used avail capacity Mounted on zones/zone1 11G 1.0G 10.0G 10% / /dev 11G 1.0G ... (6 Replies)
Discussion started by: sb200
6 Replies
QUOTAON(8)						    BSD System Manager's Manual 						QUOTAON(8)

NAME
quotaon, quotaoff -- turn filesystem quotas on and off SYNOPSIS
quotaon [-g] [-u] [-v] filesystem ... quotaon [-g] [-u] [-v] -a quotaoff [-g] [-u] [-v] filesystem ... quotaoff [-g] [-u] [-v] -a DESCRIPTION
Quotaon announces to the system that disk quotas should be enabled on one or more filesystems. Quotaoff announces to the system that the specified filesystems should have disk quotas turned off. The filesystem must be mounted and it must have the appropriate mount option file located at its root, the .quota.ops.user file for user quota configuration, and the .quota.ops.group file for group quota configuration. Quotaon also expects each filesystem to have the appropriate quota data files located at its root, the .quota.user file for user data, and the .quota.group file for group data. These filenames and their root location cannot be overridden. By default, quotaon will attempt to enable both user and group quotas. By default, quotaoff will disable both user and group quotas. Available options: -a If the -a flag is supplied in place of any filesystem names, quotaon/quotaoff will enable/disable any filesystems with an existing mount option file at its root. The mount option file specifies the types of quotas that are to be configured. -g Only group quotas will be enabled/disabled. The mount option file, .quota.ops.group, must exist at the root of the filesystem. -u Only user quotas will be enabled/disabled. The mount option file, .quota.ops.user, must exist at the root of the filesystem. -v Causes quotaon and quotaoff to print a message for each filesystem where quotas are turned on or off. Specifying both -g and -u is equivalent to the default. Quotas for both users and groups will automatically be turned on at filesystem mount if the appropriate mount option file and binary data file is in place at its root. FILES
Each of the following quota files is located at the root of the mounted filesystem. The mount option files are empty files whose existence indicates that quotas are to be enabled for that filesystem. .quota.user data file containing user quotas .quota.group data file containing group quotas .quota.ops.user mount option file used to enable user quotas .quota.ops.group mount option file used to enable group quotas SEE ALSO
quota(1), quotactl(2), edquota(8), quotacheck(8), repquota(8) HISTORY
The quotaon command appeared in 4.2BSD. 4.2 Berkeley Distribution October 17, 2002 4.2 Berkeley Distribution
All times are GMT -4. The time now is 10:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy