Date: Mon, 13 Aug 2007 08:34:58 -0500 From: "Scot Hetzel" <swhetzel@gmail.com> To: gary.jennejohn@freenet.de Cc: freebsd-current@freebsd.org, "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au> Subject: Re: ZVOL/ZFS hosting UFS filesystems ... ERROR! Message-ID: <790a9fff0708130634k18411f00ld6aa47b6bfb2a54b@mail.gmail.com> In-Reply-To: <20070813123332.bd6dba7b.gary.jennejohn@freenet.de> References: <20070813055415.GM93381@obelix.dsto.defence.gov.au> <790a9fff0708122350w729761d1v72e6aaff414d3756@mail.gmail.com> <20070813070530.GT93381@obelix.dsto.defence.gov.au> <20070813123332.bd6dba7b.gary.jennejohn@freenet.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8/13/07, Gary Jennejohn <gary.jennejohn@freenet.de> wrote: > On Mon, 13 Aug 2007 15:05:30 +0800 > "Wilkinson, Alex" <alex.wilkinson@dsto.defence.gov.au> wrote: > > > 0n Mon, Aug 13, 2007 at 01:50:32AM -0500, Scot Hetzel wrote: > > > > >On 8/13/07, Wilkinson, Alex <alex.wilkinson@dsto.defence.gov.au> > wrote: > > >> Currently when boostrapping I get the following error: > > >> > > >> "Can't stat /dev/zvol/data_dg/export/ufs > > >> Unknown error; help! > > >> ERROR: ABORTING BOOT (sending SIGTERM to parent)!" > > >> > > >> And I drop into single user mode. > > >> > > >> The line causing this in fstab(5) is: > > >> > > >> /dev/zvol/data_dg/export/ufs /export/mod ufs rw,acls 1 1 > > >> > > >> Can anyone recommend how I can get around this ? > > >> > > >Try using: > > > > > > /dev/zvol/data_dg/export/ufs /export/mod ufs rw,acls,late 1 1 > > > > > >I had a similar problem, except I was mounting UFS filesystems > > >(/dev/ad0s2d) on to a mount point that was in a ZFS filesystem. When > > >I added the 'late' option, I nolonger saw messages that the mount > > >point didn't exist. > > > > Unfortuneately the 'late' option does not help. Exact same problem as I > have > > described above with 'late' included in fstab(5). :-( > > > > I am dropped into single user mode, then I have to: > > > > #/etc/rc.d/hostid start > > #/etc/rc.d/zfs start > > #mount /export/mod > > #^D > > > > And THEN all is good. OR set "noauto" in fstab(5) for /export/mod > > > > :-( > > > > Add this line to /boot/loader.conf (if it's already there then I can't help > you): > > zfs_load="YES" > If this doesn't work add the following to /etc/rc.d/zfs start_main so that it will mount the zfs volumes after the module has been loaded: # Mount ZVOLs with property org.freebsd:late=on. zfs list -H -o org.freebsd:late,name -t volume | \ while read state name; do case "${state}" in [oO][nN]) mount /dev/zvol/${name} ;; esac done Edit /etc/fstab to add noauto to each ZVOLs, and then add the "org.freebsd:late" attribute to each ZVOLs: zfs set org.freebsd:late=on data_dg/export/ufs Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0708130634k18411f00ld6aa47b6bfb2a54b>