mysql-bin logs filling up diskspace

Posted in linux, server, srvbox on 2013/11/21
Tags: , , , , , , , ,

In my last article I've documented howto to setup a master-master mysql replication. Though I've configured mysql to clean up the old binlogs, I've realized that such setup will not only consume a lot of diskspace, but also does not guarantee that only the unused binlogs will be removed. Mysql allows you to configure binlogs Read More »

mysql master-master replication

Posted in linux, server, srvbox on 2013/10/24
Tags: , , , , , , ,

This is a short note on howto quickly deploy a master-master mysql replication on 2 servers. After installing mysql on both of them, the important changes to configurations (/etc/mysql/my.cnf) are: bind-address = # required for replication over vpn, make sure you block 3306 port on external IP in your firewall # it could also Read More »

nsd3 eating up memory after update to wheezy (version 3.2.12-3)

Posted in linux, server, srvbox on 2013/08/20
Tags: , , , , , , , ,

Recently I've updated the nsd3 server to wheezy version. I was surprised about its quite big memory usage. Before: 306 ? Ss 0:00 0 181 4034 268 0.2 /usr/sbin/nsd -c /etc/nsd3/nsd.conf 308 ? S 0:00 0 181 10694 196 0.1 /usr/sbin/nsd -c /etc/nsd3/nsd.conf 309 ? S 0:02 0 181 4238 304 0.2 /usr/sbin/nsd -c /etc/nsd3/nsd.conf Read More »

aptitude dist-upgrade or howto resolve dpkg: warning: files list file for package

Posted in linux, server, srvbox on 2013/08/11
Tags: , , , , , , , ,

Today I was doing dist-upgrade on one of my servers and end up with warnings for several packages like the samples below: dpkg: warning: files list file for package 'libc6:i386' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libslang2:i386' missing; assuming package has no files currently installed I've Read More »

mailgraph statistics for postfix running on nginx

Posted in linux, server, srvbox on 2013/07/20
Tags: , , , , , , , ,

I'm using postfix as my mail server. In order to get nice graphical overview about the server activity I'm using mailgraph. Mailgraph is a cgi script written in perl. It uses rrdtool to produce daily, weekly, monthly and yearly graphs of received/sent and bounced/rejected mail. Installing mailgraph on debian is as easy as running: aptitude Read More »

Server Availability with nagios and bootstrap

Posted in linux, server, srvbox on 2013/06/06
Tags: , , , , , , , ,

Nagios is one of the most known monitoring systems. It is powerful and thanks to the modular plugin architecture you can easily monitor just anything with it. I'm mainly using it to monitor my vps machines and services as web, dns, imap, smtp, mysql. Nagios offers web gui, where you can see everything, starting from Read More »

tmux attach - no sessions quick fix

Posted in linux, server on 2013/05/15
Tags: , , ,

I'm using tmux (terminal multiplexer) instead of screen, because it is less resource hungry. Today while cleaning up /tmp folder I accidentially removed tmux folder. After the next login I was getting the folling message while trying to attach to the previous session with tmux attach: no sessions The output of tmux ls was reading: Read More »

pptp vpn on opevz vps server

Posted in linux, server, srvbox on 2013/04/15
Tags: , , , , , , ,

If you are in the need for a vpn server for you iphone, android phone or just notebook or home pc, here is how to do it quickly on a vps server. What you need is a tiny vps server having ppp device enabled. To check if it is enabled run (with sudo or as Read More »

vps in poland from biznes-host

Posted in linux, server on 2013/03/21
Tags: , , , , ,

Since long time I'm a happy customer of a polish company biznes-host. I'm using their vps since over a year (394 days) already. The service is fast, the machine performs well. The longest downtime (planned, announced) was 3 hours and 21 minutes. The overall uptime reads ~ 99.5%. Below the uptime history for this box: Read More »

vnstat - monitor your traffic usage

Posted in linux, server on 2013/01/27
Tags: , , , , ,

vnstat/vnstatd is a nice little daemon tool monitoring traffic usage of your server. Installing it on debian only requires to run: aptitude install vnstat To see the result just execute vnstat: vnstat -m venet0 / monthly month rx | tx | total | avg. rate ------------------------+-------------+-------------+--------------- Apr '12 1.73 GiB | 6.09 GiB | 7.81 Read More »