LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 10-13-2008, 01:04 AM   #1
vathsan
Member
 
Registered: May 2008
Posts: 46

Rep: Reputation: 15
Post Not able to clean up mqueue on servers


Hi All

I want to clean up unwanted and disk occupying files in the unix servers I manage. I am in the process of cleaning up /mqueue which is located under '/var/spool' as a root user.

The permissions are as below :

drwxrwxr-x 2 root system 226816 Oct 13 05:58 mqueue

Snip of bash shell is below :

svr01:root:/var/spool> >mqueue
Cannot write to a directory.
ksh[2]: mqueue: 0403-005 Cannot create the specified file.


Snip of a file within mqueue shows I dont have execute permissions :

-rw------- 1 root system 0 Apr 18 13:46 tfm3I7kTu90218

Please suggest me some steps to clean up the folder which always keeps growing.

Also, let me know what are the files under /var could be deleted in order make the disk left with space all the time.

Let me know if i am missing something obvious!


- Vathsan.
 
Old 10-16-2008, 10:23 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
How large is your /var file system?
Code:
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd9var        0.25      0.19   24%      928     3% /var
There is potentially quite a bit that can take a lot of space from var. The mail files are one example. If you run MQSeries the logs and error files can be stored under /var/mqm. These can take up a LOT of space if not monitored. The spool directory as you mentioned has the mail, syslog, printer queues and other stuff. What files do you have in the mqueue directory that take up so much space? The examples you have provided are not clear.

All depending on what you have already, the easy solution is to grow the /var file system and be done with it.
 
Old 10-20-2008, 06:16 AM   #3
vathsan
Member
 
Registered: May 2008
Posts: 46

Original Poster
Rep: Reputation: 15
Staying outside the /mqueue, I was not able to clean up files as there were lots and lots of files in it. I managed to clean up all files by typing the relative path by getting into /mqueue. /var has now got some good space to hold more files. Thanks for your help!.

- Vathsan.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I save Sendmail relayed mqueue messages? MensaWater Linux - Server 1 07-17-2012 05:36 PM
Failure when create mqueue pewo Programming 4 12-29-2007 04:12 PM
mqueue has grown too large Pete Dogg Linux - Software 1 10-29-2004 09:10 AM
mqueue is 29GB. yes it's an inherited system pete-wilko Linux - Networking 0 07-09-2004 05:31 AM
What is /var/spool/mqueue?? WorldBuilder Linux - General 4 05-07-2003 02:32 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration