Grow root ZFS pool online under FreeBSD 9.2 using Rackspace’s instance

If you opted for a FreeBSD instance on Rackspace and chose standard configuration then you’ll end up with 512MB of RAM and 20GB of space. That’s ok for the starter but eventually you’d need more one day and will upgrade RAM to 1GB for example. With this upgrade your disk will grow upto 40GB but OS would not notice that (Rackspace doesn’t support automatic disk partitioning on FreeBSD). But you could fix that easily by yourself with a few simple CLI commands.
So lets plunge into the command line and see what we have and what we could do about that:

Bye!

Posted on January 6, 2014 at 10:21 pm by sergeyt · Permalink
In: FreeBSD

6 Responses

Subscribe to comments via RSS

  1. […] a few months after writing this I came across this article which does a good […]

  2. Written by Ian
    on May 27, 2014 at 7:55 pm
    Reply · Permalink

    Many thanks for this, just what I needed.

    I had an issue with FreeBSD 10p4 where the very last command failed with the error:

    # zpool online -e zroot ada0s3 ada0s3
    cannot expand ada0s3: no such device in pool
    cannot expand ada0s3: no such device in pool

    I had to find the guid of the disk and use that instead of the device name.

    # zdb
    zroot -> vdev_tree -> children[0] -> guid

    # zpool online -e zroot 14207384352887274889 14207384352887274889

    After that it worked great!

    • Written by sergeyt
      on May 27, 2014 at 8:44 pm
      Reply · Permalink

      Even more kudos for your great comment. Didn’t know that it’s possible to grow a pool using vdev’s guid ;-)
      Thank you!

  3. Written by Andrea Leofreddi
    on June 7, 2014 at 12:58 pm
    Reply · Permalink

    Thanks!

    • Written by sergeyt
      on June 7, 2014 at 1:13 pm
      Reply · Permalink

      You’re most welcome! ;-)

  4. Written by How to expand a ZFS device | cyberz.org
    on June 7, 2014 at 1:07 pm
    Reply · Permalink

    […] Update 06/2014: while the above procedure is related to Solaris, some time ago I was trying to use it to expand a zpool on FreeBSD where I’ve found that the above procedure won’t work. This happens because first you need to grow the partition where the filesystem resides and the grow the pool itself. I’ve found this useful article that describes the FreeBSD procedure. […]

Subscribe to comments via RSS

Leave a Reply