As we're running out of disk space, I've added another block storage device and made it a zfs partition with gpart :
So /dev/vtbd0p3 is used as a zpool and basically I'd like to add /dev/vtbd1p1 as new free space to the existing pool.
I know how to grow a zfs partition on the same device, but I don't know how to do it across devices. My only idea would be to create a new zpool and then take one of the existing zfs mountpoints and move that over to the new pool. If that's the way to do it, what's the cleanest way of doing this?
As I couldn't find any how-tos on this I suspect it's not possible to simply expand the pool but maybe someone has a tip on the best way of doing it?
Thanks!
Marco
Code:
$ gpart show
=> 40 125829040 vtbd0 GPT (60G)
40 1024 1 freebsd-boot (512K)
1064 6291456 2 freebsd-zfs (3.0G)
6292520 117440512 3 freebsd-zfs (56G)
123733032 2096048 4 freebsd-swap (1.0G)
=> 40 20971440 vtbd1 GPT (10G)
40 20971440 1 freebsd-zfs (10G)
So /dev/vtbd0p3 is used as a zpool and basically I'd like to add /dev/vtbd1p1 as new free space to the existing pool.
I know how to grow a zfs partition on the same device, but I don't know how to do it across devices. My only idea would be to create a new zpool and then take one of the existing zfs mountpoints and move that over to the new pool. If that's the way to do it, what's the cleanest way of doing this?
As I couldn't find any how-tos on this I suspect it's not possible to simply expand the pool but maybe someone has a tip on the best way of doing it?
Thanks!
Marco