pvaneynd: (Default)
pvaneynd ([personal profile] pvaneynd) wrote2011-03-28 09:46 am
Entry tags:

how to grow a zfs file system

I'm experimenting with zfs at home, for the moment on top of my md/lvm setup, and I ran out of disk space. Growing the lv is pretty easy:

frost:~# lvextend --size +110G /dev/new-vg/zfs-test
  Extending logical volume zfs-test to 120.00 GiB
  Logical volume zfs-test successfully resized
frost:~# zpool list
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
zfs-pool  9.94G  9.78G   161M    98%  1.00x  ONLINE  -


Hmm it did not notice the 110GB extra, so I did:

frost:~# zpool export zfs-pool
frost:~# zpool import zfs-pool
frost:~# zpool list
NAME       SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
zfs-pool   120G  9.78G   110G     8%  1.00x  ONLINE  -


so simply doing an import/export is enough.

I'm looking at zfs to have a better idea of what btrfs will mean in the future for us.
cdybedahl: (Default)

[personal profile] cdybedahl 2011-03-28 08:46 am (UTC)(link)
Part of the thought behind ZFS was/is that it be _both_ the volume manager and the filesystem, so it can optimize across the entire stack. Running it on top of another volume manager won't let it do its intended job properly.
reddragdiva: (Default)

[personal profile] reddragdiva 2011-03-28 01:09 pm (UTC)(link)
+1

If you're going to ZFS, just ZFS.