From owner-freebsd-questions@FreeBSD.ORG Wed Apr 10 08:16:53 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 7BF0D7C3 for ; Wed, 10 Apr 2013 08:16:53 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 20258CBA for ; Wed, 10 Apr 2013 08:16:52 +0000 (UTC) Received: by mail-we0-f177.google.com with SMTP id o45so147270wer.8 for ; Wed, 10 Apr 2013 01:16:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=5pYMcMPeFjJQkSegxLVj08M7n2oTOw33CCpvATRqezM=; b=iti8Ifq5q31V5+rqlSKXVSbLMw+GY9F+g5A4dQ/pyjacQSaXFIEw7N1Ue6V1y9/hHu AMW4JQjpbCdfte2AoBOwVj7Yc5G3arxhvU7D6PwN06k/86V6xkBPFXeozk5ivmE/1KCQ y9e8hGDZJe7blHZM5lLe2UIX+CDeWJWY+v4NM2881de/P8vaZHqgVPx4w2UmK7ahFYvA yc8BEAfwgR0SF8CACNZ/rw7WLKl1E36gOYTfJDC4Z6Z//bHOp+p+dw/FDsOLckv7aPgh nvBh6PhLYN0XuvfMsdsdxYtpAaPbTKcuvt64VSMHyjTuA6GDhTF2GmuF9l1SSPb4Ji0Y kE2Q== MIME-Version: 1.0 X-Received: by 10.180.92.97 with SMTP id cl1mr24809862wib.19.1365581812391; Wed, 10 Apr 2013 01:16:52 -0700 (PDT) Received: by 10.194.76.147 with HTTP; Wed, 10 Apr 2013 01:16:52 -0700 (PDT) Date: Wed, 10 Apr 2013 10:16:52 +0200 Message-ID: Subject: ZFS mounting failed with error 2 From: David Demelier To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 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 08:16:53 -0000 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=/tmp/zpool.cache -o altroot=/mnt -f cp /tmp/zpool.cache /mnt/boot/zfs/ And then tried to set mount point to legacy and bootfs with : zfs set bootfs=tank tank zfs set mountpoint=legacy tank The following commands made a lot of warnings : zfs set mountpoint=/usr tank/usr zfs set mountpoint=/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.. -- Demelier David