From owner-freebsd-fs@FreeBSD.ORG Sat Mar 2 00:53:06 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 04737FA6 for ; Sat, 2 Mar 2013 00:53:06 +0000 (UTC) (envelope-from mailinglists.tech@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 945881F39 for ; Sat, 2 Mar 2013 00:53:05 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c41so2845077eek.13 for ; Fri, 01 Mar 2013 16:53:04 -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; bh=LZfbTPfAfRNl3GvNhvGjv2sStgBu3yKwitfl7qU21MU=; b=PXseLQIXhYIFVIFYgN6N5wm7RC/fmDxeXa3wggxetX5D577iMN5BDg7KtFheFWIUwo UVkLjflPteG4jbsBQURHxsYTL/el74z6koXGktiFhVWWDDmSzTrOD6Yw3jXqqihhwEmh qYI/+yf4rdrxJXjSMYn4QazYMneuFWmNk5NufK7tBQJO9o1J3cIxnAkr3ZZ3TpEoKcp5 NAUNji4j/YUYm1E9aqEi2VEsDxObqeSnbQHgFyG07qgxmj0ktOe2gvlZjUud2KR1mRP6 vbmRCUFtAy27ecPSpkfqn2hF7gjwhGpnrJJJ66Ro5AxqD0jpCkQ9m/yi0UBacrV47J7Y CbSQ== X-Received: by 10.14.3.133 with SMTP id 5mr32752698eeh.43.1362185584336; Fri, 01 Mar 2013 16:53:04 -0800 (PST) Received: from [127.0.0.1] (ashlynn.lippux.de. [5.9.218.242]) by mx.google.com with ESMTPS id d47sm19817075eem.9.2013.03.01.16.53.01 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Mar 2013 16:53:03 -0800 (PST) Message-ID: <51314D67.7040704@gmail.com> Date: Sat, 02 Mar 2013 01:52:55 +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: Freddie Cash Subject: Re: I am to silly to mount a zpool while boot References: <513098FF.8030806@brockmann-consult.de> <51312C32.6000207@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Filesystems 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: Sat, 02 Mar 2013 00:53:06 -0000 Am 01.03.2013 23:59, schrieb Freddie Cash: > What's the output of: > > zfs get mountpoint tank/home > > > On Fri, Mar 1, 2013 at 2:31 PM, tech mailinglists > > wrote: > > 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 > _______________________________________________ > 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 > " > > > > > -- > Freddie Cash > fjwcash@gmail.com The mountpoint of tank/home is set to /home. The output looks like this: NAME PROPERTY VALUE SOURCE tank/home mountpoint /home local Best Regards