Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 13:12:46 +0300
From:      Vlad GALU <dudu@dudu.ro>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: Mounting ZVOLs automatically at boot time
Message-ID:  <ad79ad6b0905270312pb5e801di87311a46672d2db5@mail.gmail.com>
In-Reply-To: <20090527100344.GC1510@garage.freebsd.pl>
References:  <ad79ad6b0905270002g77182a86t956607c98d7fc54b@mail.gmail.com>  <20090527092520.GB1510@garage.freebsd.pl> <ad79ad6b0905270229g50e67a2bvea68c72eae198e7b@mail.gmail.com>  <ad79ad6b0905270255y68e37ac0h94857b61c8a86744@mail.gmail.com>  <20090527100344.GC1510@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 27, 2009 at 1:03 PM, Pawel Jakub Dawidek <pjd@freebsd.org> wrot=
e:
> On Wed, May 27, 2009 at 12:55:37PM +0300, Vlad GALU wrote:
>> On Wed, May 27, 2009 at 12:29 PM, Vlad GALU <dudu@dudu.ro> wrote:
>> > On Wed, May 27, 2009 at 12:25 PM, Pawel Jakub Dawidek <pjd@freebsd.org=
> wrote:
>> >> On Wed, May 27, 2009 at 10:02:43AM +0300, Vlad GALU wrote:
>> >>> Hello, is there a way to do $subj? rc.d/zfs only takes care of
>> >>> regular, ZFS, volumes. I have a ZVOL holding an UFS2 fs inside my ~,
>> >>> which I need for extattrs, I'd also like to have it mounted
>> >>> automatically at boot time.
>> >>
>> >> ZFS can only make ZVOLs visible automatically (by running zfs volinit=
)
>> >> and it does that. If you have a file system in there you need to add =
it
>> >> to /etc/fstab.
>> >>
>> >
>> > Hi Pawel,
>> > Well, =A0I did so, but at the time fstab is parsed the rc.d/zfs script
>> > hasn't issued "zfs volinit" yet, so mounting fails. I had to mark it
>> > as noauto and mount it by hand, later on.
>> >
>>
>> Hm, I've rebooted to test this and still doesn't work, there's no
>> /dev/zvol/ at that time.
>
> Can you try if adding 'late' to mount options in /etc/fstab will make it
> work?

I've just tried that, it behaves the same (fsck reporting an (unknown
error)) regardless of the flags set in fstab. After prompting me to
choose a shell, remounting the / partition in rw mode and mounting all
other partitions, then resuming the boot sequence, it did mount the
ZVOL.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ad79ad6b0905270312pb5e801di87311a46672d2db5>