From owner-freebsd-questions@FreeBSD.ORG Wed Apr 10 09:05:41 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0D4704FB for ; Wed, 10 Apr 2013 09:05:41 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wg0-f45.google.com (mail-wg0-f45.google.com [74.125.82.45]) by mx1.freebsd.org (Postfix) with ESMTP id A4162F1B for ; Wed, 10 Apr 2013 09:05:40 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id l18so210315wgh.0 for ; Wed, 10 Apr 2013 02:05:39 -0700 (PDT) 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:content-transfer-encoding; bh=K+wnaMelglnK2EApAT4AuY/TOGXi4usETF6f5jNullo=; b=SMbTEiUMreEO/Zi/Pui4Ug3ZR5ZNZB5zkjTmDjAunSnK7BA4hHVpTcvws+/IUPd4QF +z+gRuXm6ArdeWV9M1ka8aZfbjN1+WNdVqU9aO0osdgxbldrBrFrP3hpwEXOTwJtTzMr ber5gEjNyp8iTlgFI4Ow05kGwLEY58QIcYGDaxgLcJxZqutjMqe9AQjrKdw6pHhAj0B6 CWGvV70uyWqtqNDhBh4oGUaIqulWiTvD+po2H80ArCY4n+OOaLJA0OPTefQNy2B5b4eK s4FkU43o4X2JomZvVwHLEC5KWFnZWkuvpHuxj5HNRpoXXv5FKTXCUm2cQQlsTrSgvp/v ONvg== MIME-Version: 1.0 X-Received: by 10.180.13.233 with SMTP id k9mr2244038wic.6.1365584739476; Wed, 10 Apr 2013 02:05:39 -0700 (PDT) Received: by 10.194.76.147 with HTTP; Wed, 10 Apr 2013 02:05:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 10 Apr 2013 11:05:39 +0200 Message-ID: Subject: Re: ZFS mounting failed with error 2 From: David Demelier To: =?UTF-8?Q?Trond_Endrest=C3=B8l?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2013 09:05:41 -0000 2013/4/10 Trond Endrest=C3=B8l : > On Wed, 10 Apr 2013 10:16+0200, David Demelier wrote: > >> Hello >> >> I have tried to create a GPT partition scheme on my machine. I've >> created some dataset like that : >> >> tank/usr >> tank/usr/ports >> tank/usr/src >> tank/var/ >> tank/var/log >> >> (Please note that is a test on a virtual machine before applying to a >> real machine). >> >> I've tried to generate the zpool.cache like that: >> >> zpool import -o cachefile=3D/tmp/zpool.cache -o altroot=3D/mnt -f >> cp /tmp/zpool.cache /mnt/boot/zfs/ >> >> And then tried to set mount point to legacy and bootfs with : >> >> zfs set bootfs=3Dtank tank >> zfs set mountpoint=3Dlegacy tank >> >> The following commands made a lot of warnings : >> >> zfs set mountpoint=3D/usr tank/usr >> zfs set mountpoint=3D/var tank/var >> ... >> >> After, the import on the livecd shell generated the error : >> >> cannot mount '/mnt/var': failed to create mountpoint. >> >> I must say that it is very hard to make a ZFS working machine, there >> are a lot of pages on the Wiki and most of them are a little bit >> outdated.. > > Try to use /tmp/mnt as a temporary altroot. /tmp should be writeable. > Not sure about / within the livecd env. > But the FreeBSD installer says to mount over /mnt before exiting the shell. > When you set mountpoints using the above commands, the filesystems are > actually being mounted at their specified mountpoint. > Yes that was a probable issue, I will unmount everything before trying a new install. > Unless the filesystems contain some actual files, more to the point, > critical files, i.e. libraries and executables, then you are out of > luck. > > My own blog entry is a bit (out)dated, but maybe it's worth a look: > > http://ximalas.info/2011/10/17/zfs-root-fs-on-freebsd-9-0/ > Now I currently have 504 Gateway Timeout going to your website, I will try at home maybe my corporate firewall is blocking this. Regards, -- Demelier David