From owner-freebsd-fs@FreeBSD.ORG Fri Mar 1 22:59:58 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 606F1262 for ; Fri, 1 Mar 2013 22:59:58 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qa0-f48.google.com (mail-qa0-f48.google.com [209.85.216.48]) by mx1.freebsd.org (Postfix) with ESMTP id 269E71BBD for ; Fri, 1 Mar 2013 22:59:57 +0000 (UTC) Received: by mail-qa0-f48.google.com with SMTP id j8so62186qah.7 for ; Fri, 01 Mar 2013 14:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=GhBTFB57zu0Vttuf+Ri9l7x168Ijm2PqKMToODLvdPU=; b=ckpEc/1xClSQ7C06GxFafSH9eCs7OnffZPp+Lz9l1mWTDO0d4E9NBJDRk3sk9Z0B6X epQJtRcWn32a1jccLr1IhcEUWkqEneWTQSUDNzRaPCmIJ7JjtpH8Q/emifGbDW9EtQro ES1BmCZEh4r7HWtto5csh/YBDQx5RR2YPwKpydPgnDau0CzhdNKMbP1dlK/IHGq6Ly84 7w9bAf9JALZW6HK+c8EiXCel0L9a30iDlUqQCOhlNxivASQCYlG1WvH3r4UXtBn03lL3 ORg/OajsyA3BjzblKx24E/O6kzM1+wEf1i59soNLapTCWl/pet0T3V6XNAwbkjadgpk1 Ezdg== MIME-Version: 1.0 X-Received: by 10.224.203.131 with SMTP id fi3mr22428502qab.77.1362178797242; Fri, 01 Mar 2013 14:59:57 -0800 (PST) Received: by 10.49.106.233 with HTTP; Fri, 1 Mar 2013 14:59:57 -0800 (PST) In-Reply-To: <51312C32.6000207@gmail.com> References: <513098FF.8030806@brockmann-consult.de> <51312C32.6000207@gmail.com> Date: Fri, 1 Mar 2013 14:59:57 -0800 Message-ID: Subject: Re: I am to silly to mount a zpool while boot From: Freddie Cash To: tech mailinglists Content-Type: text/plain; charset=UTF-8 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: Fri, 01 Mar 2013 22:59:58 -0000 What's the output of: zfs get mountpoint tank/home On Fri, Mar 1, 2013 at 2:31 PM, tech mailinglists < mailinglists.tech@gmail.com> 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