From owner-freebsd-fs@FreeBSD.ORG Sun Mar 3 14:25:13 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 41B3712F for ; Sun, 3 Mar 2013 14:25:13 +0000 (UTC) (envelope-from mailinglists.tech@gmail.com) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by mx1.freebsd.org (Postfix) with ESMTP id AD8A2950 for ; Sun, 3 Mar 2013 14:25:12 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id d41so3271522eek.36 for ; Sun, 03 Mar 2013 06:25:10 -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=RN+BQKihw9kSM/NRO0Pqyhj1bpaBGC6zOZ8B1XCKd/0=; b=dXPuhP3hf7fv9MctffirGKJAn1Slx3NhO2YN7Du4wB8QbkdpFk9L4ATdgyfDpI20jL n59Q9tPrprgwwbDfYiHQ8k0sEgVtXiIK2hkaHiJWS8M8c2zIiQ0e5Od+Ac5THFCPLRS5 V20l6p5PNUDiGCczvQSeAqaRe+dSwM7Hpk3/r+CBxeioLfhOaFZAK5i3QrjCCWMp7lUp MWrBfWPsqOvagvUGULvYQlgET7KV/snw/JBvSAJhI2xNGh+PNdCXV0UQtnUPZiapB1+k 5VdCdIfSLbD2meyHZlmcejELcYOkvp5gux0AEvD5PffdLqwGSwpbNTes+ERjRUSbIQNl E8SA== X-Received: by 10.14.4.69 with SMTP id 45mr49041651eei.0.1362320710742; Sun, 03 Mar 2013 06:25:10 -0800 (PST) Received: from [127.0.0.1] (ashlynn.lippux.de. [5.9.218.242]) by mx.google.com with ESMTPS id m46sm27303126eeo.16.2013.03.03.06.25.08 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Mar 2013 06:25:09 -0800 (PST) Message-ID: <51335D43.30108@gmail.com> Date: Sun, 03 Mar 2013 15:25:07 +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: Derek Kulinski Subject: Re: I am to silly to mount a zpool while boot References: <1934743591.20130302181406@takeda.tk> In-Reply-To: <1934743591.20130302181406@takeda.tk> 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: Sun, 03 Mar 2013 14:25:13 -0000 Am 03.03.2013 03:14, schrieb Derek Kulinski: > 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" > Hello all, I was able to solve the problem actually. The thing was that two zfs cache files was existing on two partitions and so the imported pools were not be found. The give an answer to the question. I am actually in the case that I have a Xen paravirtualized FreeBSD i386 DomU which gets booted with PV GRUB. PV GRUB is GRUB compiled against Mini OS and has the intension to solve problems which exist with the kernel and initrd configuration file options and PyGRUB (GRUB written in Python). I first tried to boot from a ZFS volume which failed I think I made some mistakes and will try to figure it out again. UFS seems to be not usable with PV GRUB it detects UFS2 but can read files from there. This problem also couldn't be solved by chainloading because it seems that PV GRUB can not handle the loader files. So I thought to create and ext2 filesystem to bootstrap the system which works for now. There is a PV GRUB version which can handle ZFS but I wasn't able actually to create a ZFS pool which works as system disk. So I will try to figure this out. Best Regards