From owner-freebsd-fs@FreeBSD.ORG Sun Mar 3 02:26:33 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 EE5D17EB for ; Sun, 3 Mar 2013 02:26:33 +0000 (UTC) (envelope-from takeda@takeda.tk) Received: from chinatsu.takeda.tk (mail.takeda.tk [74.0.89.210]) by mx1.freebsd.org (Postfix) with ESMTP id B9006E70 for ; Sun, 3 Mar 2013 02:26:33 +0000 (UTC) Received: from localhost.takeda.tk (takeda-ws2.lan [10.0.0.3]) (authenticated bits=0) by chinatsu.takeda.tk (8.14.5/8.14.5) with ESMTP id r232E5us019391 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sat, 2 Mar 2013 18:14:05 -0800 (PST) (envelope-from takeda@takeda.tk) Date: Sat, 2 Mar 2013 18:14:06 -0800 From: Derek Kulinski X-Priority: 3 (Normal) Message-ID: <1934743591.20130302181406@takeda.tk> To: tech mailinglists Subject: Re: I am to silly to mount a zpool while boot In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at chinatsu.takeda.tk X-Virus-Status: Clean 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: Sun, 03 Mar 2013 02:26:34 -0000 Hello tech, Friday, March 1, 2013, 3:26:37 AM, you wrote: > 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. Few things: - you don't need fstab entry for ZFS - make sure you have zfs_enable="YES" in /etc/rc.conf - make sure (perhaps this is your issue) /boot/zfs/zpool.cache is writable. This is where ZFS remembers (among many things) what you had previously imported. BTW why your /boot is ext2? - check that "zfs get canmount home" returns "on" -- Best regards, Derek mailto:takeda@takeda.tk If brute force doesn't solve your problems, then you aren't using enough.