From owner-freebsd-questions@FreeBSD.ORG Sun Jun 5 11:36:18 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 912C9106566C for ; Sun, 5 Jun 2011 11:36:18 +0000 (UTC) (envelope-from levitch@iglou.com) Received: from rdsmtp.iglou.com (rdsmtp.iglou.com [192.107.41.63]) by mx1.freebsd.org (Postfix) with ESMTP id 26CE88FC15 for ; Sun, 5 Jun 2011 11:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iglou.com; s=alpha; h=Content-Type:MIME-Version:References:Message-ID:In-Reply-To:Subject:cc:To:From:Date; bh=XWD29axXu/0ZqtWKc6IlNTMsiiMIXkmxsr0IcO0l0HY=; b=mRNrHx9WgwXuhswEPvBUquvtATJjhLjGLkzurxedv8eKJnl46VLhG9aaeIhbQBkTsCRgmwTGrP/czccWFue0FOYYqbAtB/JzauxjIc6lpv5AdQ5RTyttEhxLU0M/FDO9pVV+UfOmOwUCqlsxCY4hQ4IiAKY+GPX75p4oKNvPwTo=; Received: from iglou4.iglou.com ([192.107.41.39]:44384 helo=mail.iglou.com) by rdsmtp.iglou.com with esmtpa (Exim MTA/8.19.3) (envelope-from ) id 1QTBcv-0003VW-Ch by authid with igloumta_auth for freebsd-questions@freebsd.org; Sun, 05 Jun 2011 07:36:17 -0400 Received: from shell1.iglou.com ([192.107.41.17]:42051 helo=shell1) by mail.iglou.com with esmtps (TLS cipher TLSv1:AES256-SHA:256) (Exim MTA/8.19.3) (envelope-from ) id 1QTBcv-0000o7-1G; Sun, 05 Jun 2011 07:36:17 -0400 Date: Sun, 5 Jun 2011 07:36:16 -0400 (EDT) From: Darrel X-X-Sender: levitch@shell1 To: krad In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Originating-IP: 192.107.41.17 X-IgLou-Customer: 3cb6f76205bd20f518810676a67a982b Cc: freebsd-questions@freebsd.org Subject: solved: failure to create zfs storage pool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2011 11:36:18 -0000 > > > well you have 2x disks dont you. Break the mirrors and then you have a free > drive. Setup the pool how you want on this then rsync all your os build over > onto it. Make any zfs root tweaks you want then boot onto the drive. > > If all is good then copy across the partition table from the zfs drive to > the new one (gpart backup/restore) and attach the relevent slice/partition > to pool. Finally put the boot blocks onto the drive, job done no work lost > Seems like I crashed all of it along with the mirrors. This worked, though: - boot from FreeBSD82 digital versatile disk; \ e.g., FreeBSD-8.2-RELEASE-amd64-dvd1.iso - select 6 at loader menu load ahci load zfs boot - fixit > dvd gpart destroy -F ad4 gpart destroy -F ad6 gpart create -s gpt ad4 gpart add -s 64K -t freebsd-boot ad4 gpart add -s 5G -t freebsd-swap ad4 gpart add -t freebsd-zfs ad4 gpart bootcode -b /dist/boot/pmbr -p /dist/boot/gptzfsboot -i 1 ad4 gpart add -s 64K -t freebsd-boot ad6 gpart add -s 5G -t freebsd-swap ad6 gpart add -t freebsd-zfs ad6 gpart bootcode -b /dist/boot/pmbr -p /dist/boot/gptzfsboot -i 1 ad6 gpart show mkdir /boot/zfs zpool create pool0 mirror ad4p3 ad6p3 zpool status -v pool0 zfs set mountpoint=none pool0 zfs create pool0/ROOT zfs create -o mountpount=/mnt pool0/ROOT/freebsd zfs create pool0/ROOT/freebsd/tmp zfs create pool0/ROOT/freebsd/var zfs create pool0/ROOT/freebsd/usr zfs create -o mountpoint=/home pool0/HOME export DESTDIR=/mnt cd /dist/8.2-RELEASE for dir in base catpages dict doc info lib32 manpages; \ do (cd $dir; ./install.sh); done cd kernels ./install.sh GENERIC cd ../src ./install.sh all cd /mnt/boot cp -Rpv GENERIC/* kernel/ vi /mnt/boot/loader.conf !-- ahci_load="YES" zfs_load="YES" vfs.root.mountfrom="zfs:pool0/ROOT/freebsd" vi /mnt/etc/rc.conf !-- zfs_enable="YES" vi /mnt/etc/fstab !-- /dev/ad4p2 none swap sw 0 0 /dev/ad6p2 none swap sw 0 0 cp /boot/zfs/zpool.cache /mnt/boot/zfs/zpool.cache export LD_LIBRARY_PATH=/dist/lib cd / zfs umount -a zfs set mountpoint=legacy pool0/ROOT/freebsd zfs set mountpoint=/tmp pool0/ROOT/freebsd/tmp zfs set mountpoint=/usr pool0/ROOT/freebsd/usr zfs set mountpoint=/var pool0/ROOT/freebsd/var zfs set mountpoint=/home pool0/HOME zpool set bootfs=pool0/ROOT/freebsd pool0 exit - remove the dvd exit exit yes Darrel