Long delays during boot and zpool/zfs commands on 9.1-RELEASE (possibly because of unavailable pool?)

Steven Hartland killing at multiplay.co.uk
Tue May 14 19:22:44 UTC 2013


----- Original Message ----- 
From: "Henner Heck" <Henner.Heck at web.de>
> Hello all,
> 
> i set up a PC with FreeBSD 9.1-Release and 2 zfs pools.
> One is a mirror from which FreeBSD is booting
> (tough enough without getting "error 2"),
> the other one a raidz2 for data.
> The disks for the raidz2 are encrypted with geli and attached manually.
> 
> I noticed that a "zpool status" or a "zfs list" before attaching
> the encrypted disks waits for about one minute before showing output.
> When they finally do, the output is as expected, the raidz2 pool is shown as
> UNAVAIL and its datasets are not listed.
> When all the disks are attached with geli, the outputs are given
> immediately.
> 
> On boot there are 2 delays.
> One of about 1 minute after the output
> "Setting hostid: 0x........"
> and one of 2 minutes after
> "Mounting local file systems:.".
> Both these outputs don't show up in dmesg, which ends with
> "Trying to mount root from zfs:zroot/ROOT []..." shortly before.
> 
> I suspect that the boot delays too are because of the encrypted pool.
> 
> A different machine running FreeBSD 8.3-RELEASE has a delay of only
> about 3 seconds on "zpool status" with an encrypted pool
> and also the boot shows no annoying anomalies.
> 
> Any idea how to get rid of these really long delays?

Try the attached patch see if that helps?

    Regards
    Steve

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster at multiplay.co.uk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zfs-slice-boot.patch
Type: application/octet-stream
Size: 837 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20130514/a37903e9/attachment.obj>


More information about the freebsd-fs mailing list