Missing wtmp file

We have a server running Siemens Hipath PABX whose wtmp file in the /var/log/ was accidentally deleted. Can someone help with the reconstruction of this file. Is it possible to copy it from another machine?

@epk Hi and welcome to the Forum :slight_smile:
Better to recreate… As root user;

touch /var/log/wtmp
chown root:utmp /var/log/wtmp
chmod 0644 /var/log/wtmp

I am getting the following message: touch: cannot touch `/var/log/wtmp’: No space left on device

my var usage is indicating 49% I don’t understand how I am getting that message.

@epk Hi, sounds like it may have been a bit more than just file removal, check all the permissions?

Are you using btrfs?

Can you show the output from;

mount

The problem was with the /var/spool/postfix/maildrop folder. I deleted number of quelled mails and there seem to be some good response.