1. Creating a loop device on Linux

    Just a quick note so I don't forget in 2 minutes from now.

    1. Create a file and specify the size for it - in this example the filename will be moosefs01.img and the size 800GB:

    cd /root
    truncate -s 800G moosefs01.img
    

    2. Create a filesystem inside the file …


  2. CentOS 7 - where did my iptables go ?

    Let me make something clear. I'm not a fan of systemd. I'm learning how to use it but I don't like it still.

    So check this weirdness out. CentOS 7 comes with the iptables command in a default installation:

    cat /etc/redhat-release 
    CentOS Linux release 7.2.1511 (Core)
    

    Here's …


  3. Nagios script that checks permissions for a file

    A few days ago I run into a situation where the ownership of a file would change unexpectedly.

    Fearing the worse, I looked around for a Nagios check to ensure that I get alerted if that were to happen but I couldn't find one so I wrote my own.

    The …





  4. Generating thousands of files for testing purposes

    Hello internet,

    Recently I was in a situation where I was asked to migrate a server to a different provider.

    I figured this would be trivial so I started with the usual rsync in a screen copy. I checked a few hours later and rsync was frozen.

    Further investigation revealed …


  5. Wiping a server without rebooting and without rescue media

    Hey folks,

    Have you ever found yourself in a situation where you're trying to leave a hosting provider but you want to make sure that while migrating your VPS you leave nothing behind?

    How sure are you that your data has been destroyed?

    What do you do with a VPS …



  6. PostgreSQL 9.3 Installation on CentOS

    A long time ago I wrote a post on how to install MySQL on FreeBSD. Lately I've had to work on more PostgreSQL installations so I've been trying to get more familiar with it, so I'm currently working on a series of posts on how to do the basics.

    Here …


Page 4 / 13