From owner-freebsd-fs@FreeBSD.ORG Fri Mar 1 22:31:23 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9DF74944 for ; Fri, 1 Mar 2013 22:31:23 +0000 (UTC) (envelope-from mailinglists.tech@gmail.com) Received: from mail-ea0-x235.google.com (mail-ea0-x235.google.com [IPv6:2a00:1450:4013:c01::235]) by mx1.freebsd.org (Postfix) with ESMTP id 208CB1AAB for ; Fri, 1 Mar 2013 22:31:22 +0000 (UTC) Received: by mail-ea0-f181.google.com with SMTP id i13so417348eaa.40 for ; Fri, 01 Mar 2013 14:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=pZBvZY3F7igvyYzyt7hHx5fcHOhoKTgqbulafVkaIGI=; b=bf2nIe/kZBgyVx1PjUBPRoDlydin0poLWz8q7tG1BeO33XZS7B3gq2IgUgUZW/QqnE XQ0kunX34OJuuUSTnd8C4VtAip1avhphC2pd+8DfgPTudrsrkgJZt/GgaqWHiLCTJU9E rHFbN1ZQeyQpgnCXFcJXKsiKFPtetes0XGnkzkTkoddrYrLinvIfxzs+nmjli4ckBk4o IRUaar/txFFV+T80P0jFnOHhBy3Kv4z6jAnAuipvcv9qT4ObMhD59vAngbwExAILbuRc sQjGK2XMVwOG6Xe/yfkavO7u9Gf8Py4ac+Wkr6PtSJGbT6yWWM4bZwpnpEkEILfI91pR JYUQ== X-Received: by 10.14.3.70 with SMTP id 46mr32385815eeg.2.1362177082289; Fri, 01 Mar 2013 14:31:22 -0800 (PST) Received: from [127.0.0.1] (ashlynn.lippux.de. [5.9.218.242]) by mx.google.com with ESMTPS id 3sm19345585eej.6.2013.03.01.14.31.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Mar 2013 14:31:21 -0800 (PST) Message-ID: <51312C32.6000207@gmail.com> Date: Fri, 01 Mar 2013 23:31:14 +0100 From: tech mailinglists User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: Peter Maloney Subject: Re: I am to silly to mount a zpool while boot References: <513098FF.8030806@brockmann-consult.de> In-Reply-To: <513098FF.8030806@brockmann-consult.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 22:31:23 -0000 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