I've bought an external hard drive. I want to use it with Ubuntu 11.04 (kernel 2.6.38-11-server) and the zfs-fuse package. I've successfully formatted the disk to zfs. The disk is suspending when it is inactive after a while.
The problem is that zfs can't access the disk after I manually resume it. I can use sudo zpool clear after the resume, but it's not really a solution for me.
There is set usbcore.autosuspend=-1 in grub – I can see in a file /sys/module/usbcore/parameters/autosuspend that its value is set to -1 – but it doesn't work.
How can I correctly disable autoresume? Or is it possible to create a "hook script" that will detach zfs devices before they are suspended and attach the zfs devices after resuming the disk?