Date: Mon, 27 Aug 2012 14:00:01 +0400 From: "Andrey V. Elsukov" <bu7cher@yandex.ru> To: Jeremie Le Hen <jlh@FreeBSD.org> Cc: freebsd-fs@FreeBSD.org Subject: Re: Cannot get zfsboot prompt Message-ID: <503B4521.9080603@yandex.ru> In-Reply-To: <20120827070210.GA798@felucia.tataz.chchile.org> References: <20120827070210.GA798@felucia.tataz.chchile.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27.08.2012 11:02, Jeremie Le Hen wrote: > I've struggled all over the weekend to make a remote machine full ZFS. > I did it once last year. I already struggled a lot at that time by the > way so I took notes, but it doesn't work (see below for a manuel > screenshot): > > The server is using the mbr partitionning scheme, with one slice -- > ada0s1. There is a BSD label on it with two partitions, ada0s1a which > is used in the zpool and ada0s1b which is used for swap/dump. > > I've set up boot0 and it works correctly: > gpart bootcode -b /mnt/boot/boot0 ada0 > I've then set up zfsboot: > dd if=/mnt/boot/zfsboot of=/dev/ada0s1 count=1 > dd if=/mny/boot/zfsboot of=/dev/ada0s1a skip=1 seek=1024 Hi, When i'm configuring ZFS-only system, usually i do the following steps: 1. zpool create -R /mnt bsdroot ada0s1a 2. Create several filesystems and install the system. 3. zpool set bootfs=bsdroot/root bsdroot 4. zpool set cachefile=/mnt/boot/zfs/zpool.cache bsdroot 5. echo 'vfs.root.mountfrom="zfs:bsdroot/root"' >> /boot/loader.conf echo 'zfs_load="YES"' >> /boot/loader.conf 6. echo 'zfs_enable="YES"' >> /etc/rc.conf 7. Add swap entry to the /etc/fstab 8. zpool set mountpoint=none bsdroot/root 9. zpool set mountpoint=none bsdroot 10. Write bootcode: > dd if=/mnt/boot/zfsboot of=/dev/ada0s1 count=1 > dd if=/mnt/boot/zfsboot of=/dev/ada0s1 skip=1 seek=1024 I guess your ada0s1a partition has non zero offset, and second part of zfsboot bootcode has been written into wrong place. AFAIK, the first part of the zfsboot does read the second part from the 1024 sector of the active FreeBSD slice in the MBR. -- WBR, Andrey V. Elsukov
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?503B4521.9080603>