From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 00:19:25 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F5C01065694 for ; Tue, 21 Sep 2010 00:19:25 +0000 (UTC) (envelope-from drizzt321@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 007F68FC1B for ; Tue, 21 Sep 2010 00:19:24 +0000 (UTC) Received: by qyk4 with SMTP id 4so5440693qyk.13 for ; Mon, 20 Sep 2010 17:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=uynd0j8yEWXk1FTbTk+AHVl0bcXYXiNUWtzXIXHPEwQ=; b=dJRchrmJG8kksImlsfXi60vZcANz09VyYsN0h2AyMUAgbNHiHXIP1gyglRIwizAzG/ BpfGRrkKpzdTj8jng8WXQSL5IorowqAByASMCEbDLNhCC4XgJG7MOluk2vLNwbOc+GWJ 8eHIwQm8Hh7IBMEg7fOik272I90Ufv7Cx6HnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=kWruX4U4+Bd3f3MIaX5rDfyNTPn2QHhX69dEwHU1SA9g/ZZqD2xmB0YYsHKDA1E6wW T6ysKrZgiY/7cru+MMlh4AwbfY2yCcumiP11gv4XNi1D9AO2rWiIwmF2VpiELTn2dnUY DLJetU5jLV+VH8HniIvTKXj/rz8y7row1E93Y= Received: by 10.229.223.198 with SMTP id il6mr6878353qcb.50.1285028364225; Mon, 20 Sep 2010 17:19:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.236.85 with HTTP; Mon, 20 Sep 2010 17:19:04 -0700 (PDT) In-Reply-To: <201009201600.o8KG0iNk013372@mail.r-bonomi.com> References: <201009201600.o8KG0iNk013372@mail.r-bonomi.com> From: Aaron Date: Mon, 20 Sep 2010 17:19:04 -0700 Message-ID: To: Robert Bonomi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Problem running custom startup script at proper time X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 00:19:25 -0000 On Mon, Sep 20, 2010 at 09:00, Robert Bonomi wro= te: >> From owner-freebsd-questions@freebsd.org =A0Sun Sep 19 16:37:49 2010 >> From: Aaron >> Date: Sun, 19 Sep 2010 14:39:08 -0700 >> To: freebsd-questions@freebsd.org >> Subject: Re: Problem running custom startup script at proper time >> >> Doh! Forgot to reply to the mailing list. >> >> >> Nope, that didn't work either. Darn. Maybe I'll just have to modify >> the /etc/rc.d/zfs script to run the for loop first :( > > How about just modifying the REQUIRE header on it to include =A0'gnop' > the sequencer that selects the order to run rc.d things in sorts based > on the REQUIRE/PROVIDES dependencies. > Nope, that didn't fix it. I even tried editing /etc/rc.d/zfs and included the gnop commands in the zfs_start(). The gnop still started up _after_ the ZFS in dmesg. However, I did figure it out after looking at the services that were starting up. There is apparent a 'zvol' script, which was the culprit. It was loading some ZFS stuff before the 'zfs' script. Once I set the 'gnop' script to startup before the 'zvol' script, worked like a charm. My zpool status now shows that it's using the gnop devices. Yay!! >> >> On Sun, Sep 19, 2010 at 14:04, Boris Samorodov wrote: >> > On Sun, 19 Sep 2010 13:55:41 -0700 Aaron wrote: >> >> On Sun, Sep 19, 2010 at 13:27, Boris Samorodov wrote: >> >> > On Sun, 19 Sep 2010 12:40:52 -0700 Aaron wrote: >> >> > >> >> >> # PROVIDE: gnop >> >> > >> >> > What if you try "PROVIDE: disks" instead? >> > >> >> No good. I also tried the following in the gnop script: >> > >> >> # PROVIDE: gnop >> >> # REQUIRE: mountcritlocal >> >> # BEFORE: zfs >> > >> > /etc/rc.d/geli has this: >> > ----- >> > # PROVIDE: disks >> > # REQUIRE: initrandom >> > # KEYWORD: nojail >> > ----- >> > >> > Seems that that should work for you. If not I'm out of ideas >> > for now. >> > >> >> The services -r looks promising, but the dmesg is still the same :( >> >> =3DA0When I disable zfs auto-mount, and then run it manually after bo= ot, >> >> it uses the .nop devices that were created correctly as it should. >> > >> >> EXCERPT services -r >> >> /etc/rc.d/mdconfig >> >> /etc/rc.d/mountcritlocal >> >> /etc/rc.d/gnop >> >> /etc/rc.d/zfs >> > >> > -- >> > WBR, Boris Samorodov (bsam) >> > Research Engineer, http://www.ipt.ru Telephone & Internet SP >> > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve >> > >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" >> > > / >