Skip to content

Swap on a file

Using a file based swap has several benefits. Among the most important for me are the fact that it can be increased and decreased extremely easily; the other bonus, just as important is that I don't need to maintain complex partition tables.
The above reasons are especially important if you are running a virtualised OS where extra flexibility/simplicity helps and the performance difference is not really that big, both swap types are SLOW. :-)

Let's proceed. First we need to create a - say - 500M file; the best way to do it is via "fallocate" as it requires virtually no I/O (man fallocate), but you can also use good old "dd" if you're on an old OS:
fallocate -l 500M /swap.IMG

Next we need to format it, add it to fstab and mount it:
chmod 0700 /swap.IMG
mkswap /swap.IMG
echo "/swap.IMG		swap		swap	defaults	0 0" >> /etc/fstab
swapon -a

If you ever get in a situation where you need to increse swap you can simply do the above for a new file or just increase the current file:
swapoff /swap.IMG
fallocate -l 1000M /swap.IMG
mkswap /swap.IMG
swapon /swap.IMG
Voilà!

If you're working on a virtual machine you might want to avoid swapping as much as possible (many swapping instances generate significant I/O). This can be done via sysctl:
sysctl -w vm.swappiness=0
And also add "vm.swappiness = 0" to /etc/sysctl.conf to make it permanent between reboots.
"vm.swappiness = 0" means it will swap only to avoid an out of memory condition.

HTH.

Good bye, PLF

We say good bye to one of the last remnants of the old Mandrake world.

Several days ago Guillaume Rousse announced the PLF project that has provided qood quality RPMs for Mandrake/Mandriva for so many years is officially dead.

Hello, dear PLF mignons.

The last package release announcement is now 15 month old, and the last message posted on -discuss mailing-list list is 18 month old, so it's quite safe to consider PLF project officialy dead now. 
As zarb.org is moving to a new server, I'd prefer to avoid useless efforts such as migrating unused resources...

At the end of the week, all project mailing-list will be closed, and the package repository set read-only. The web site, and the mailing-list archives will stay accessible at usual address.

It was a great adventure, thanks you for your support.

It was indeed a great adventure. So long and thanks for all the fish!

Cloudstack becomes an Apache top-level project

And so Cloudstack has graduated from the Apache Incubator!

Fireworks, trumpets!

Official announcement here.

Apache Cloudstack homepage.

Stella 6.4

Following the release of Centos 6.4 recently I'm pleased to publish the same version of Stella.

There is nothing special about this release other than the changes brought in by EL 6.4.

Download from the usual locations:
http://mirror.li.nux.ro/li.nux.ro/ISO/
http://ftp.ines.lug.ro/li.nux.ro/

Enjoy!

GlusterFS 3.4 hits Alpha

People interested in distributed filesystems will be glad to hear GlusterFS has reached v3.4 Alpha.
This new version brings a lot of new and really cool stuff to the table:
    WORM (write once read many)
    Operating version for glusterd
    Block device translator
    Duplicate Request Cache
    Server Quorum
    libgfapi
    VM image storage improvements – not related to QEMU integration; related to performance improvements
    NFSv3 ACL support
The new QEMU integration should massively increase performance when used as backing storage for KVM virtual machines. Really nice!

More info on the project's blog: http://www.gluster.org/2013/02/new-release-glusterfs-3-4alpha/

CentOS project testing MariaDB as possible MySQL replacement

According to certain messages on the centos-devel mailing list there is now a repository from the CentOS project dedicated to the MariaDB as a complete MySQL replacement.
It's high time MySQL started to get replaced in the linux distros!
hi guys,

quick start:
drop http://dev.centos.org/centos/6/mariadb/mariadb.repo into
/etc/yum.repos.d/ and yum list mariadb\*

This is adapted from the Fedora spec adapted by Johnny for CentOS-6 and
upgraded to 5.5.29; we have done some basic testing on these packages
and they worked for us. We are now looking for wider testing and
feedback about both the packaging, the payload and how its setup as well
as any build issues.

These packages are setup to replace MySQL on your machine, so be
careful. And we consider these rpms to be of Testing grade, unsuiteable
for production at this point.

Post feedback as follow up to this email, or at bugs.centos.org/

See you at FOSDEM 2013

See you at FOSDEM!

ZFS on CentOS

For those interested in running ZFS on EL6 via kmods, I snatched and updated the kmods in PUIAS. Testing so far has been _minimal_ (beware, Selinux needs to be in permissive mode or disabled altogether). Any feedback welcome.
Installation is very easy:
wget -P /etc/yum.repos.d/ http://li.nux.ro/download/nux/zfs/nux-zfs.repo
yum --enablerepo=nux-zfs install kmod-spl kmod-zfs zfs spl zfs-dracut
modprobe zfs

New DJBDNS

Yesterday I needed to migrate a very old dns server running djbdns/tinydns on Centos 5 to a Centos 6 machine.
My 2 options were to convert the tinydns zones in BIND format and use this which comes by default in EL6 or install djbdns on the machine.
I really was not looking forward to "make, make install" sessions, but also converting the djbdns data was not very appealing - luckily though there's a fork of djbdns in Fedora nowadays called "ndjbdns" (new djbdns) which is fully compatible with the original implementation! All I had to do was to install it move the "data" and "Makefile" files over in /etc/ndjbdns/ and run "make".

The Fedora SRPM is quite RHEL/EL friendly so building it for Centos 6 was a breeze! You can find the RPMS in my nux-misc repo. Enjoy!

En Lefko Radio

En Lefko has slowly but surely took over the radio in our house. It's a Greek station and when they talk I don't understand a bit, luckily they keep the chatter to a minimum.

Really few ads, no news breaks and THE BEST MUSIC YOU'VE NEVER HEARD BEFORE! You won't be disappointed.