Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 01 Mar 2013 23:31:14 +0100
From:      tech mailinglists <mailinglists.tech@gmail.com>
To:        Peter Maloney <peter.maloney@brockmann-consult.de>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: I am to silly to mount a zpool while boot
Message-ID:  <51312C32.6000207@gmail.com>
In-Reply-To: <513098FF.8030806@brockmann-consult.de>
References:  <CAMCOOJvs_SS1n2r3jA28x4et%2BdSFv9YJ4BR0d9Padtmrj8E1Hw@mail.gmail.com> <513098FF.8030806@brockmann-consult.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 01.03.2013 13:03, schrieb Peter Maloney:
> For the mount, don't use fstab. use:
>
> zfs set mountpoint=/home poolname/path/to/dataset
>
> And for the import, add
>
> zfs_enable="YES"
>
> to rc.conf.
>
>
> And I think that's it. (all my FreeBSD systems are pure zfs, so not sure
> what troubles you would get if you had UFS on root)
>
>
> On 2013-03-01 12:26, tech mailinglists wrote:
>> Hello all,
>>
>> I think that I only can be an idiot to get in such a problem but I am
>> not able to mount a zpool via fstab while boot.
>>
>> I have a FreeBSD i386 PV Xen DomU running with 3 disks xbd0 (ext2 for
>> /boot), xbd1 (UFS for /) and xbd2 (ZFS/zpool with name home to mount
>> at /home).
>>
>> I now tried everything I could find. So my fstab entry looks like this:
>>
>> home            /home   zfs     rw,late 0       0
>>
>> The real problem is that after a reboot the zpool is no longer
>> imported, I really don't know why I always have to reimport the pool
>> via zpool import -d /dev home. Because of this the filesystem never
>> can be mounted via fstab while boot and I get dropped into a shell
>> where I need to do this always manually.
>>
>> So why the pool always isn't imported after boot and how can I solve this issue?
>>
>> And is the fstab entry correct itself? So would it work when the pool
>> gets imported with it's name befor the fstab entry is parsed?
>>
>> Hope that someone give me a few hints or a solution.
>>
>> Best Regards
>> _______________________________________________
>> freebsd-fs@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
>> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>

Hello all,

a few of the things I already had done. But the real problem is I think 
that the pool doesn't get imported automatically. I read that ZFS 
searches in special directories when it tries to import. So is there a 
way to set an option which says that it should search in /dev? I always 
have to do this after reboot:

zpool import -d /dev tank

Than tank (pool) gets mounted at /tank and the zvol tank/home gets 
mounted on /home.

So I think that the import of the zpool fails. I have set 
zfs_enable="YES" in /etc/rc.conf also zfs_load=YES as boot parameter 
which gets shown in kenv and commented out the fstab entry. So I read 
that the import normally should work automatically when the module is 
loaded and zfs is enabled but I think the fact that my pool is located 
on /dev/xbd2 is the problem.

Best Regards



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