Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Since version 0.9.29, Greyhole allows you to use ZFS datasets as storage pool drives.
If you want to convert your drives to ZFS, here's how you can do it.
The change from anything to ZFS is destructive, so you will need to:
Remove the drive from the Greyhole pool:
greyhole --going /path/to/drive1
Delete all partitions from drive1 (using cfdisk or gparted).
Create a ZFS pool on the disk:
zpool create $LABEL -m none /dev/disk/by-id/$DISK_ID(I used LABEL=hdd1. Careful to use the correct DISK_ID! There's no confirmation of any sort.)
Create a ZFS dataset on the just-created pool:
zfs create -o atime=off -o xattr=off -o normalization=formD -o mountpoint=/mnt/$LABEL $LABEL/ROOT(/mnt/$LABEL is where I want it mounted)
Remove drive1 from /etc/fstab
Re-add it to greyhole.conf:
mkdir /mnt/$LABEL/ghThen add /mnt/hdd1/gh as a storage_pool_drive in
To use ZFS on my Ubuntu server, you would need to install this PPA: https://launchpad.net/~zfs-native/+archive/stable/ Then install the ubuntu-zfs and mountall packages.