It seems that ZFS and ISCSI don't play well at boot time in FreeBSD 10. ZFS is started fairly early in the boot sequence, well before ISCSI is initiated, so ISCSI based pools aren't detected. Should there be a stage 2 ZFS rc.d script that rescans for pools and mounts the filesystems after ISCSI initiation if ISCSI and ZFS are enabled? I don't know the rc setup well enough to create one myself. Right now, I'm simply using rc.local, but I would think an official rc.d solution would be preferable in the long run. Danny Schales -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3734 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20131218/4c240050/attachment.bin>
On Wed, 18 Dec 2013 16:50:02 +0100, Danny Schales <dan at latech.edu> wrote:> It seems that ZFS and ISCSI don't play well at boot time in FreeBSD 10. > ZFS is started fairly early in the boot sequence, well before ISCSI is > initiated, so ISCSI based pools aren't detected. Should there be a > stage 2 ZFS rc.d script that rescans for pools and mounts the > filesystems after ISCSI initiation if ISCSI and ZFS are enabled? I > don't know the rc setup well enough to create one myself. Right now, > I'm simply using rc.local, but I would think an official rc.d solution > would be preferable in the long run. > > Danny Schales >As soon as a disk with ZFS is connected GEOM/ZFS should detect it automatically. But I could be wrong. Ronald.
On Wed, 18 Dec 2013 20:59:39 +0100, Danny Schales <dan at latech.edu> wrote:> On 12/18/13 01:20 PM, Ronald Klop wrote: > >> >> Maybe asking for the obvious, but... >> Do your zfs volumes have mountpoint set? >> >> I have things like: >> $ zfs get mountpoint tank/usr >> NAME PROPERTY VALUE SOURCE >> tank/usr mountpoint /usr local >> > > yes, mountpoint is set. > > Danny > >Hi Danny, It helps if you reply to the mailinglist instead of directly to me. Other peoples don't have to ask the same question than. You might also post more information about your setup. Like the partitioning of your iscsi 'disks' (I don't have much experience with that). And the actual values of things like your mountpoint and iscsi config files. Or try the freebsd-fs mailinglist. Regards, Ronald. PS: original message: http://lists.freebsd.org/pipermail/freebsd-stable/2013-December/076516.html