Category: How-To

  • Folding@Home: How to check your progress

    Once you start folding you will want to check on your contribution and see how you’re faring compared to other volunteers – one of the most popular ways of checking your stats is through the Extreme Overclocking website:   http://folding.extremeoverclocking.com/   On the left-hand side you can see a name search field; put your username…

  • ZFS: How to change the compression level

    ZFS: How to change the compression level

    By default ZFS uses the lzjb compression algorithm; you can select others when setting compression on a ZFS folder. To try another one do the following:   sudo zfs set compression=gzip [zfs dataset]   This changes the compression algorithm to gzip. By default this sets it to gzip-6 compression; we can actually specify what level…

  • ZFS: Replacing a drive with a larger drive within a vdev

    ZFS: Replacing a drive with a larger drive within a vdev

    One way to expand the capacity of a zpool is to replace each disk with a larger disk; once the last disk is replaced the pool can be expanded (or will auto-expand, depending on your pool settings). To do this we do the following:   zpool replace [poolname] [old drive] [new drive]   e.g.:  …

  • ZFS: Adding an SSD as a cache drive

    ZFS: Adding an SSD as a cache drive

    ZFS uses any free RAM to cache accessed files, speeding up access times; this cache is called the ARC. RAM is read at gigabytes per second, so it is an extremely fast cache. It is possible to add a secondary cache – the L2ARC (level 2 ARC) in the form of solid state drives. SSDs…

  • How to exclude results from grep

      Sometimes you may wish to further filter grep output, such as in the following situation:   # zfs get all | grep compressratio backup01         compressratio         1.23x                  – backup01         refcompressratio      1.00x                  – backup01/data    compressratio         1.50x                  – backup01/data    refcompressratio      1.50x                  – backup01/photos  compressratio         1.05x                  – backup01/photos  refcompressratio      1.05x                  – Here we only really want to see…

  • ZFS: How to check compression efficiency

    ZFS: How to check compression efficiency

      If you have enabled compression on a ZFS folder you can check to see just how much disk space you’re saving. Use the following command:   sudo zfs get all [poolname]/[folder] | grep compressratio   An example:   sudo zfs get all backup01/data | grep compressratio   returns the following:   backup01/data compressratio  1.50x …

  • Ubuntu: How to list drives by ID

    Ubuntu: How to list drives by ID

    If you’re creating a  zpool on Ubuntu you have several options when it comes to referring to the drives; the most common is /dev/sda, /dev/sdb and so on. This can cause problems with zpools as the letter designated to a drive can change if you move the drives around, add or remove a drive –…

  • ZFS basics: Installing ZFS on Ubuntu

    ZFS basics: Installing ZFS on Ubuntu

    For those who don’t want to use Solaris or FreeBSD as their ZFS platform Ubuntu now seems a valid option; installation is now relatively straightforward. Please note, though, that you should be running a 64-bit system – ZFS on Ubuntu is not stable on a 32-bit system. Open up a terminal and enter the following:…

  • Checking SSD health with ESXi 5.1

    A new feature with ESXi 5.1 is the ability to check SSD health from the command line. Once you have SSH’d into the ESXi box, you can check the drive health with the following command:   esxcli storage core device smart get -d [drive]   …where [drive] takes the format of: t10.ATA?????????. You can find…

  • DNS troubles with Ubuntu Server 12.04

    DNS troubles with Ubuntu Server 12.04

    Some customers have been having DNS issues after setting a static IP on Ubuntu 12.04.1 where the server is no longer picking up the DNS settings as it was before; this can be easily fixed by adding the following to /etc/network/interfaces after the eth0 entry:   dns-nameservers [ip.of.your.router]   e.g., for a modem/router that’s 10.1.1.1…