Filesystem Full


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Filesystem Full
# 8  
Old 07-14-2005
Filesystem Full

I don't exactly know what wtmpx file does in my system. I am quite skeptical whether I should trim this file or not because I don't know how to do that. Could you please reiterate further what does cp /dev/null /var/adm/wtmpx actually does? Thanks!
# 9  
Old 07-14-2005
Bug

/var/adm/wtmpx contains the history of user access and adminstrative/accounting information for the utmpx database.
Yoiu can use 'last' command looks in the /var/adm/wtmpx file, which
records all logins and logouts, for information about a
user, a terminal, or any group of users and terminals.

( If accounting isn't enabled, clean up wtmp and wtmpx )
----------------------
You can refer to man pages for wtmpx and last.
# 10  
Old 07-14-2005
cp /dev/null file
will leave you with an empty file. Empty the file or let system run out of disk space and crash. Whether you have accounting enabled on not, when was the last time you used wtmpx? The system doesn't need that data. It is saving it in case you want to see it. You have allowed the file to get too big to be useful. I have frequently copied /dev/null to /var/adm/wtmpx on solaris systems. It won't cause a system problem. If you let the system run out of space and crash, do you have the expertise to deal with that?

Besides you need to determine why it is growing so fast. It's too hard to do that while it's that large.
# 11  
Old 07-15-2005
Sorry but I don't know how to check if the accounting is enabled or not. Could you please let me know? Before using the command cp /dev/null /var/adm/wtmpx, I still have to refer this matter to the customer support of the software that I am using right now whether this wtmpx file is being used by their software or not. This is just to confirm that our field operation won't be affected by such step. Moreover, I don't know if I am accessing wtmpx files or not and why is it growing that fast. For your info, I have temporarily stopped printing from my workstation until this problem is solved.

Thanks a lot for your help guys. I really appreciate it.
# 12  
Old 07-16-2005
I ran the command “last -a -f /var/adm/wtmpx | more” to investigate what causes wtmpx file to grow fast and I found out that whenever we transfer a file via ftp from our workstation to pc and vice-versa, the size of this file increases at the same time. For your information, we do an ftp transfer every now and then to do a regular check to the file that is being generated during our field operation.

Could you please let me know how to disable the accounting in case we need to clean up the wtmpx file later on?

I am still waiting for the response from the Customer Support of the Software that we are using whether this wtmpx file is being utilized by their software to monitor any incongruities during our operation or not. I will let you know as soon as I get a reply from them. In the meantime, thanks a lot for all the help!
# 13  
Old 07-16-2005
Accounting is a bunch of different things. They all write to /var and would have shown up when you did that find. Connect-time accounting is the only thing you have running. The only way to disable that is to remove wtmpx. That is legal and won't cause any system problems. But then you can't see who has been logging in to your system. So no one does that.

With most ftp servers, though, you can cause it to stop recording in wtmpx. If you are using Sun's ftpd, this is a -W option. You are probably running it from inetd, so you would edit /etc/inetd.conf and add the -W to the ftpd line. Then you need to "kill -1" inetd to make it reread the file. Read "man inetd" and "man ftpd".

You need to:
cp wtmpx wtmpx.old
cp /dev/null wtmpx
or something like that on a regular basis. Most people use a cron job.
# 14  
Old 07-17-2005
Thanks once again for the info inetd and ftpd. While waiting for the response from our Software Customer Support, I'm still wondering that if ever I do a "cp /dev/null /var/adm/wtmpx", would it also increase the available disk space in my filesystem particularly /dev/dsk/c0t0d0s0 directory since wtmpx is on a different directory?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Livedump filesystem almost full

Guy's I'm getting this message Livedump filesystem almost full in errpt logs and its meanning this file system /var/adm/ras/livedump /var has more than 1.5 GB free space .. why I'm getting that message and .. Pls advice to to avoide it ---------- Post updated 03-21-11 at 01:39 AM... (1 Reply)
Discussion started by: Mr.AIX
1 Replies

2. Solaris

Filesystem Full

In our shop we have to run a batch cycle. Every so often while we are running batch we get a filesystem full situation that causes batch to stop or slow down. Anyway, the practiced procedure is to look for large files and zip them. This takes a lot of time. We are in a sun solaris environment. What... (1 Reply)
Discussion started by: Harleyrci
1 Replies

3. AIX

What is the cause of USR filesystem full

we are using aix 5.3 and we notice that the filesystem /usr is almost full. we have an oracle database running on the server.what are the cause why this filesystem is almost full.what should we do to free some space on this filesystem beside increase the size?thanks (4 Replies)
Discussion started by: paulexis
4 Replies

4. UNIX for Dummies Questions & Answers

filesystem is full

Hello everybody, a very basic question. Inspite of me deleting huge files in a filesystem(AIX 5.3) in oracle folder, the filesystem when i check using df -k still shows 100% full. Does that mean there is a process still pointing to the files which i deleted. how do i work around this. Thanks!... (3 Replies)
Discussion started by: karthikosu
3 Replies

5. Red Hat

/ filesystem getting full

Hi All, How do I increase the root filesystem? It's getting full. / 90% Here's the break down, below 232 dev 5624 tmp *6764 bin 16860 root *19680 sbin *20436 lib64 28329 boot *47992 etc 150012 var *254540 lib 651708 home *2445044 usr (5 Replies)
Discussion started by: itik
5 Replies

6. UNIX for Dummies Questions & Answers

filesystem full

my root filesystem is eventually full "/dev/rdsk/c1d0s0" as a result i cannot boot to the operating system, i booted into the fail safe mode to check the space using df -h command i discover that it is eventually full. Also to my amazement i found that i cannot see the filesystem which mounted on... (1 Reply)
Discussion started by: seyiisq
1 Replies

7. Solaris

The filesystem is still full - Solaris 10!

Good morning, sir! I've a problem with FileSystem, the problem is FileSystem is full First time, I've already read carefully the sticky thread FileSystem full - What to lock for https://www.unix.com/sun-solaris/25840-filesystem-full-what-look.html And then, I will post some information of... (4 Replies)
Discussion started by: trantuananh24hg
4 Replies

8. HP-UX

vxfs filesystem full!

Dear all, What should I do with the following error message: vxfs: mesg 001: vx_nospace - /dev/root file system full (1 block extent) Thanks for your advises, (1 Reply)
Discussion started by: hungevntelecom
1 Replies

9. UNIX for Dummies Questions & Answers

/tmp filesystem full

I am running AIX 3 4. When I do a df I get: Filesystem 512-blocks Free %Used Iused %Iused Mounted on /dev/hd4 32768 10232 69% 1309 16% / /dev/hd2 917504 86360 91% 19744 18% /usr /dev/hd9var 131072 67712 49% 617 ... (11 Replies)
Discussion started by: szodiac
11 Replies
Login or Register to Ask a Question