Archive for May, 2007

Mrtg on Ubuntu

Thursday, May 24th, 2007

I’ve added MRTG to Cron, but later I found that it is not running. Checking the logs, and found the following:
<code>
ERROR: Creating templock /var/lock/mrtg/_etc_mrtg.cfg_l_3723: No such file or directory at /usr/bin/mrtg line 1757
</code>

The folder doen not exist, so <code>mkdir -m 0755 /var/lock/mrtg</code>…


mount a Windows share with Samba on Ubuntu

Tuesday, May 8th, 2007


mount -t smbfs //10.1.1.99/folder /mnt/mymount -o lfs,username=administrator,password=xxxxxx

the parameter lfs is to disable Samba’s 2G filesize limit, so you can copy huge files over as well.


Archives

Monday, May 7th, 2007

Do not edit this page


restore JFS filesystem under Ubuntu

Monday, May 7th, 2007

today, a 5 disk SATA raid5 array misteriously went to ‘beeping mode’, it was unable to mount the JFS partition, however the ext3 root partition worked (thank God!) so we’ve needed to do the following:

apt-get install jfsutils
fsck.jfs -a -f /dev/sda2 -j /dev/sda2