From owner-freebsd-current@FreeBSD.ORG Thu May 21 08:35:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E96ED1065675 for ; Thu, 21 May 2009 08:35:50 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [IPv6:2001:41d0:2:2d29:0:1::]) by mx1.freebsd.org (Postfix) with ESMTP id 776078FC25 for ; Thu, 21 May 2009 08:35:50 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:2:2d29:1:ffff::]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id BE1B74BB8; Thu, 21 May 2009 10:35:49 +0200 (CEST) Received: from morzine.restart.bel (morzine.restart.be [IPv6:2001:41d0:2:2d29:1:2::]) (authenticated bits=0) by restart.be (8.14.3/8.14.3) with ESMTP id n4L8Zled075230; Thu, 21 May 2009 10:35:47 +0200 (CEST) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1242894949; bh=KOW61PD+bCEHgIQG00umUVNidHwy97+W8a+jEE6uT0M=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=KUl+uEUI98OLMSyllu1JyHkNqtqXEUSPrxRdrtJIZypm7hSm139OK9d05lRJz0qdA b8NBHUiqAxP21bfj4mudA== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=16ixiod500/v+vhGhJsve7FjbGH2aGfkViX4pCbqXsKJCHzwjXgs8occqz39f3M5H iUKiIX6J/h09OvDnTc6/A== Message-ID: <4A151263.2070708@restart.be> Date: Thu, 21 May 2009 10:35:47 +0200 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.21 (X11/20090412) MIME-Version: 1.0 To: Thomas Backman References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on IPv6:2001:41d0:2:2d29:1:1:: Cc: freebsd-current@freebsd.org Subject: Re: How to duplicate a pool with zfs send/recv without breaking mountpoints? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2009 08:35:51 -0000 Thomas Backman wrote: > I'll let the output speak for itself. This is after running > zpool create slave X && zfs create slave/received && NOW=$(date > +"backup-%Y%m%d-%H%M"); zfs snapshot -r tank@$NOW && zfs send -R > tank@$NOW | zfs recv -vFd slave/received && zpool export slave && zpool > import slave > > [root@chaos ~]# mount > tank/root on / (zfs, local, noatime) > devfs on /dev (devfs, local) > /dev/ad0s1a on /bootdir (ufs, local, soft-updates) > tank/tmp on /tmp (zfs, local, noatime) > tank/usr on /usr (zfs, local, noatime) > tank/usr/ports on /usr/ports (zfs, local, noatime) > tank/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime) > tank/usr/src on /usr/src (zfs, local, noatime) > tank/var on /var (zfs, local, noatime) > //SERENITY@EXSCAPE/FBSDBACKUP on /mnt/backup (smbfs) > slave/received/root on / (zfs, local, noatime) > slave on /slave (zfs, local) > slave/received/tmp on /tmp (zfs, local, noatime) > slave/received/usr on /usr (zfs, local, noatime) > slave/received/usr/ports on /usr/ports (zfs, local, noatime) > slave/received/usr/ports/distfiles on /usr/ports/distfiles (zfs, local, > noatime) > slave/received/usr/src on /usr/src (zfs, local, noatime) > slave/received/var on /var (zfs, local, noatime) > [root@chaos ~]# ls /dev > [root@chaos ~]# zfs list > internal error: failed to initialize ZFS library (shocking!) > > Any ideas? I tried setting the mountpoint property on the slave, but I'm > pretty sure that didn't help (as the next (incremental) backup resets > the mountpoints to /... again, I suppose). How about creating slave like this: mkdir /slave zpool create -R /slave -m none slave X Henri > > Regards, > Thomas > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"