Link to home
Create AccountLog in
Unix OS

Unix OS

--

Questions

--

Followers

Top Experts

Avatar of sams20
sams20

/var/mqm is 90% full how do I cleanup some files or increase available space for this filesystem
/var/mqm is 90% full how do I cleanup some files or increase available space for this filesystem

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of omarfaridomarfarid🇦🇪

try this to find which files are big and see if you can delete them or copy them some where else:

du -k /var/mqm | sort -rn | more

ASKER CERTIFIED SOLUTION
Avatar of woolmilkporcwoolmilkporc🇩🇪

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of woolmilkporcwoolmilkporc🇩🇪

... perhaps you should consider using the 'logrotate' utility to manage the above mentioned logs.

Find an rpm for AIX here:

http://www.oss4aix.org/download/RPMS/logrotate/

It should run under AIX 5.3 (at least it does for me), although its 'officialy' the version for AIX 5.1 (there is no other one, afaik).

wmp


Avatar of woolmilkporcwoolmilkporc🇩🇪

... and one more:

When I wrote 'move away' in my first post, this was a bit inarticulate.
A safe way to 'move away', particularly if you can't pause your websphere application
is to first copy the file, then, if this was successful, to empty it using a '>' :

'cp -p [file] [/target/location] && > [file]'

wmp


Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of DbLanManDbLanMan🇨🇦

One of the files that keeps growing is the /var/adm/wtmp file that contains login / logoff records.
You should somehow control this file. I use /usr/sbin/acct/fwtmp command (and its parameters i & c) in a script that runs monthly.
Here is what the script does:

1- Backs up & compresses wtmp file to a different location where I have enough space for archiving.
2- Converts the wtmp binary file to ASCII (text file)
3- Gets the last 500 lines in the text file into a new text file
4- Converts the new text file (500 lines - about 32K when converted to binary) again to binary (just to keep the most recent records in case I might need them)
5- Replaces the original wtmp binary file with the new smaller binary file.

If you are not familiar with fwtmp, try this to see what it displays on standard output:
/usr/sbin/acct/fwtmp < /var/adm/wtmp

Unix OS

Unix OS

--

Questions

--

Followers

Top Experts

Unix is a multitasking, multi-user computer operating system originally developed in 1969 at Bell Labs. Today, it is a modern OS with many commercial flavors and licensees, including FreeBSD, Hewlett-Packard’s UX, IBM AIX and Apple Mac OS-X. Apart from its command-line interface, most UNIX variations support the standardized X Window System for GUIs, with the exception of the Mac OS, which uses a proprietary system.