- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NOQUEUE space.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:29 AM
08-23-2005 05:29 AM
Here is the error I received this morning:
Aug 23 07:32:35 diomede sendmail[1033]: NOQUEUE: low on space (have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue)
Here is the information concerning my /var:
/dev/vg00/lvol8 2457600 2441994 14973 99% /var
If I cant find anything to delete from /var then I am going to have to increase it’s size. Do I need to be single user mode to do that?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:39 AM
08-23-2005 05:39 AM
Re: NOQUEUE space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:43 AM
08-23-2005 05:43 AM
Re: NOQUEUE space.
Do the 'mailq' command. How many are there? Will also provide some reason as to why the mails are not going out.
Once you get the emails sending out then the mqueue directory will decrease in space used.
If you have OnLineJFS, you can increase /var on the fly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:47 AM
08-23-2005 05:47 AM
Re: NOQUEUE space.
The error came because there was no spcae in /var for sendmail to put the mail queue (I believe is /var/spool/mqueue)
There are different methods to find out what is the spcae consuming files in a FS.
cd /var
find . -size +1000000c
This will show u the files having size more than 1000000 bytes.
or
quot /var will give u which user is holding the maximum FS space
cd /var
du - sk * |sort -n will give the files sizes in sorted order.
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:47 AM
08-23-2005 05:47 AM
Re: NOQUEUE space.
1. check maillog file.
/var/adm/maillog , sometimes its become too large , u can copy it to some other place and do a null to this.
# > /var/adm/maillog
2. You can check other big files under /var
# cd /var
# ls -lR | sort +4 -5nr | more
This will give biggest files.
3. and as per the error "have 0, SMTP-DAEMON needs 101 in /var/spool/mqueue" in syslog , you need some space in /var.
Cheers ,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 05:54 AM
08-23-2005 05:54 AM
Re: NOQUEUE space.
I missed the last part..
If u r using online JFS then u can extend the /var FS even without unmounting it..
swlist -l roduct|grep -i jfs
With the above command u can find whether u r using online jfs and if so u can do a lvextend and then fsadm -b
regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:01 AM
08-23-2005 07:01 AM
Re: NOQUEUE space.
/var/adm/wtmp
-rw-rw-r-- 1 adm adm 44732820 Aug 23 10:59 wtmp
root: /var/adm ==>
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:07 AM
08-23-2005 07:07 AM
Re: NOQUEUE space.
Do not delete this file. If you really want to get rid of it null it out 1st.
> wtmp
This will make the file 0 bytes.
If you remove then inodes will still be occupied because it is an open process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:11 AM
08-23-2005 07:11 AM
Re: NOQUEUE space.
root: /var/adm ==> wtmp
sh: wtmp: Execute permission denied.
root: /var/adm ==>
Do I need to change the owner to root before I can reduce its size? If I can reduce the files size to 0 then that would free up the space I need.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:11 AM
08-23-2005 07:11 AM
Re: NOQUEUE space.
How big is the /var filesystem?
If there are no emails to go out, what is the space on /var now?
Was a file deleted earlier? Could this deleted file have been for an open process so the inodes are not freed up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:11 AM
08-23-2005 07:11 AM
Re: NOQUEUE space.
/var/adm/wtmp is the file keeps logs of all last logins.
You can make it null , if you dont need the logs , or else keep a copy elsewhere.
To make it null :
# cat /dev/null > /var/adm/wtmp
or simply # > wtmp
Cheers ,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:12 AM
08-23-2005 07:12 AM
Re: NOQUEUE space.
What is the return from the 'id' command? Is UID=0?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:15 AM
08-23-2005 07:15 AM
Re: NOQUEUE space.
Wtmp contains informatin about the user logins, who commmand etc.
From the man page of wtmp it is clear that it should not be deleted.
" Note that wtmp and btmp tend to grow ithout bound, and should be checked regularly. Information that is no longer useful should be removed periodically to prevent it from becoming too large. Also note that wtmp and btmp are not created by the programs that maintain them.Thus, if these files are removed, record-keeping is turned off."
Best was is to trim the file by issuing
>/var/adm/wtmp. This will make it into zero byte file with keeping the file permissions properly.
Regards
CS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:17 AM
08-23-2005 07:17 AM
Re: NOQUEUE space.
# cd /var/adm
# > wtmp
This will make the file 0 bytes. Now you can delete the file.
What it appears you were doing is trying to execute the file. This is not an executable file. It is a log file for the 'last' command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:45 AM
08-23-2005 07:45 AM
Re: NOQUEUE space.
"cleanup -c 2" or "cleanup -c 1"
Will free up lot of space.
Alex.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 07:51 AM
08-23-2005 07:51 AM
Re: NOQUEUE space.
-p option will preview the cleanup task but do not actually perform the requested action.
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 08:29 AM
08-23-2005 08:29 AM
Re: NOQUEUE space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 08:31 AM
08-23-2005 08:31 AM
Re: NOQUEUE space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 08:53 AM
08-23-2005 08:53 AM
Re: NOQUEUE space.
To reduce the size of /var/adm/wtmp, you must be root and you can do this:
cat /dev/null > /var/adm/wtmp
NOTE: This file is a list of all login sessions. When you zero the file, you will have no history of logins/logouts. The command: last will show the contents of the special binary file.
Another big file that probably needs trimming: /var/adm/btmp which is a list of failed login attempts. Use the same technique to zero out the file:
cat /dev/null > /var/adm/btmp
And as before, this log is a history, in this case, all failed login attempts are kept here. Both btmp and wtmp must be trimmed regularly.
But wait, there's more! ;-)
/var/adm is full of logfiles. Another logfile location is /var/adm/syslog where you'll find mail.log and syslog.log. The mail.log file can be zeroed out (the cat /dev/null technique above) but syslog should be examined for errors. You may have a bad disk, bada tape, memory problems, processes crashing, etc, etc which are logged in syslog.log. So look at it with vi and make sure everything is OK. Then you can trim the file.
There are numerous other locations to check but I would start by finding the largest directories first:
du -kx /var | sort -rn | head -20
Then look in those directories for large files using:
ll | sort -rnk5 | head -20
If you don't know about certain files, post questions here in the forums. This is a regular task for all Unix administrators.
Bill Hassell, sysadmin