Mounting ZVOLs automatically at boot time

Vlad GALU dudu at dudu.ro
Wed May 27 09:55:59 UTC 2009


On Wed, May 27, 2009 at 12:29 PM, Vlad GALU <dudu at dudu.ro> wrote:
> On Wed, May 27, 2009 at 12:25 PM, Pawel Jakub Dawidek <pjd at 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,  I 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.


More information about the freebsd-fs mailing list