Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clean up space on root dir

Status
Not open for further replies.

holdahl

IS-IT--Management
Apr 4, 2006
213
NO
a quick question:
is it normal to reduce the size of smit.log and errpt-a to free up space on /


-holdahl
 
I would usually back smit.log up and then reduce/zeroise it. As long as there's nothing of current relevance in the errpt output, I think it's safe to clear it out. Do you have any core files or log files which have grown inordinately?

Alan Bennett said:
I don't mind people who aren't what they seem. I just wish they'd make their mind up.
 
If your root filesystem is constantly filling up, consider expanding it... Most systems I've built had a one-PP size root filesystem (32MB) right after installing and I generally double it to 64MB on the spot!


HTH,

p5wizard
 
Another trick (from my Linux servers) is to change root's home directory from / to /home/root. This shouldn't have any bad effects and stops things like smit.log filling up somethign as important as the root partition. It also stops
Code:
normal user>rm -r *
The file access permissions do not allow the specified action.
normal user>su -
root>rm -r *
from destroying the system which was my biggest oops!

Ceci n'est pas une signature
Columb Healy
 
cloumb, I've been doing that recently and had no problems.
 
DukeSSD
The key point is whether you use 'su' or 'su -'. 'su -' has the same effect as logging in as the relevant user, which includes switching to the home directory. This was my mistake. I'd been used to doing a simple su to get round permission problems but had changed to using 'su -'. This switched me to the root directory and rm -r * started to delete everything. By the time I realised what was going wrong the box had been destroyed and needed a complete rebuild. Fortunately it wasn't a production system or I might have been looking for a new job. As it was I wasn't flavour of the month! Nowadays I always do a pwd before doing an rm under root.

Mind you, I've never met a Unix Admin who doesn't have some similar story!

Ceci n'est pas une signature
Columb Healy
 
thanks for suggestions...


-holdahl
 
Columb,
Sorry, I meant I'd been setting root's home to /home/root to prevent important filesytems from filling up.
I didn't mean that I'd been stupid enough to run rm -r * as root in the default root home directory of /, well not a second time...as you say, you only do that once ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top