AIX

prashantchauhan
prashantchauhan used Ask the Experts™
on
root@abc:/etc/security$ vi user
"/var/tmp/Ex25180" No space left on device

Please let me know how to solve this
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Hi,
in the /var filesystem lives, among may other things, the 'wtmp' file, which is in many cases responsible for filling up /var.
It collects information about all logins and logouts.
Look at the the size of /var/adm/wtmp. If it's huge, which I assume, and you don't need it, simply issue
>/var/adm/wtmp
to empty it.
Please note the '>' sign in front - it's mandatory that you type it in.
Should you need /var/tmp, or shouldn't it be that bg, please come back so we can investigate further.
 
wmp
 
Most Valuable Expert 2013
Top Expert 2013
Commented:
... sorry, typo, I meant to write
"Should you need /var/adm/wtmp ..."

Most Valuable Expert 2013
Top Expert 2013
Commented:
Additionally,
you could issue
du -ms /var/* | sort -n
and you will find the directories occupying the greatest amount of space at the bottom of the list.
Try to cleanup there. If in doubt, please post the list procuded by the command above so we can search for the culprit.
Btw. the reason why of all things 'vi' complained about /var being full - it tried to create an editing buffer in /var/tmp and couldn't, due to lack of space.
wmp
Top Expert 2007
Commented:
vi uses a temp file when you want to edit any file and by default it goes to /var/tmp dir

So, try to cleanup some files on the file system on which /var resides

you could also change the temp dir to which vi writes temp files by creating file .exrc in your home dir and put line like this in it

set directory=/path/to/some/dir

Author

Commented:
Many Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial