
On Thu, Jul 05, 2012 at 09:24:44PM +1000, Russell Coker wrote:
I have a Debian/Squeeze system that's running ZFS quite nicely.
Now I've just tried to install ZFS via the http://zfsonlinux.org/ method on a Debian/Testing system. I'm deploying a new server in the next week or so and
i recommend not using that method. Instead, re-compile the ubuntu packages for debian. make sure that dkms and the kernel-header package for your current kernel are installed mkdir /usr/local/src/zfs/ cd /usr/local/src/zfs/ git clone https://github.com/dajhorn/pkg-spl.git git clone https://github.com/dajhorn/pkg-zfs.git cd pkg-spl optionally run 'dch -i' to change the version number dpkg-buildpackage -b -us -uc cd .. install the freshly built spl and spl-dkms packages cd pkg-zfs vi debian/control, search for the dependancy on zfs-grub, change to grub optionally run 'dch -i' to change the version number dpkg-buildpackage -b -us -uc cd .. install the freshly built zfs packages, libnvpair1 libuutil1 libzfs1 libzpool1 zfs-dkms and zfsutils the last time I upgraded ZFS, i ended up with: 58686 Jul 2 12:32 libnvpair1_0.6.0.65-0ubuntu1_amd64.deb 67570 Jul 2 12:32 libuutil1_0.6.0.65-0ubuntu1_amd64.deb 142480 Jul 2 12:32 libzfs1_0.6.0.65-0ubuntu1_amd64.deb 980710 Jul 2 12:32 libzfs-dev_0.6.0.65-0ubuntu1_amd64.deb 435774 Jul 2 12:32 libzpool1_0.6.0.65-0ubuntu1_amd64.deb 30172 Jul 2 11:34 spl_0.6.0.65-0ubuntu1_amd64.deb 534526 Jul 2 11:34 spl-dkms_0.6.0.65-0ubuntu1_all.deb 1229 Jul 2 11:34 spl-linux_0.6.0.65-0ubuntu1_amd64.changes 1972940 Jul 2 12:32 zfs-dkms_0.6.0.65-0ubuntu1_amd64.deb 31264 Jul 2 12:32 zfs-initramfs_0.6.0.65-0ubuntu1_amd64.deb 3702 Jul 2 12:32 zfs-linux_0.6.0.65-0ubuntu1_amd64.changes 301284 Jul 2 12:32 zfsutils_0.6.0.65-0ubuntu1_amd64.deb note: I have no idea if the above works if you have root on ZFS. I believe debian's grub package may support zfs but i've never really cared enough to find out. The above method definitely works for non-root filesystems.
The code doesn't currently build with kernel 3.2.0. Has anyone got it to work?
works for me. Linux ganesh 3.2.0-2-amd64 #1 SMP Mon Jun 11 17:24:18 UTC 2012 x86_64 GNU/Linux ii libnvpair1 0.6.0.65-0ubuntu1 amd64 Solaris name-value library for Linux ii libuutil1 0.6.0.65-0ubuntu1 amd64 Solaris userland utility library for Linux ii libzfs1 0.6.0.65-0ubuntu1 amd64 Native ZFS filesystem library for Linux ii libzpool1 0.6.0.65-0ubuntu1 amd64 Native ZFS pool library for Linux ii spl 0.6.0.65-0ubuntu1 amd64 Solaris Porting Layer utilities for Linux ii spl-dkms 0.6.0.65-0ubuntu1 all Solaris Porting Layer kernel modules for Linux ii zfs-dkms 0.6.0.65-0ubuntu1 amd64 Native ZFS filesystem kernel modules for Linux ii zfsutils 0.6.0.65-0ubuntu1 amd64 Native ZFS management utilities for Linux
Also has anyone got root on ZFS to work with Debian? ZFS wants to partition the disks itself so it can use 4K sectors and properly align things.
never tried it. have always intended to experiment on a VM just so I understand how it works and the potential problems, but i never got around to it :)
I don't want to mess with that and the server in question will have an internal USB port that's ideal for booting such configurations. So I want to get a USB device with GRUB and an initramfs that starts ZFS for the root filesystem.
good plan. I planned to do that on one system, but ended up getting a 120GB SSD instead, and partitioned it to use about half for boot and root partitions, and the remainder for a small log and large cache partition. SSDs are down to about $1/GB now, about half what they were when i got the 120GB SSD for that server, so i'd probably use a 240GB today. or maybe two 120GBs. craig -- craig sanders <cas@taz.net.au>