Re: Root on zfs (stable9) - how to make it bootable
There are a lot of example in gpart(8) man page. You should use it I think you should do something like gpart bootcode -b /boot/pmbr ada0 gpart bootcode -p /boot/gptzfsboot -i 1 ada0 (The second assume that you have a freebsd-boot as first index in ada0) Cheers, 2013/2/22 uki uka...@gmail.com Hi, I want to install freebsd9 (stable) on zfs root, unfortunately my bios is unable to recognize GPT discs. I'm using MBR disc, with BSD slice (on mbr index 4) containing freebsd-zfs filesystem. I've no idea how to make it bootable, I've tried using: zpool export sys dd if=/boot/zfsboot of=/dev/ada0s4 count=1 dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024 zpool import sys When I select F4 (slice with zfs) whilst booting the computer just turns off. How do I make it boot? Do I need freebsd-boot slice? I have set bootfs property on pool, and added vfs.root.mountfrom to loader.conf. Cheers, Łukasz Gruner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Demelier David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Root on zfs (stable9) - how to make it bootable
Sorry didn't read that you have a MBR slice instead of GPT then you should take a look at that one https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition 2013/2/22 David Demelier demelier.da...@gmail.com There are a lot of example in gpart(8) man page. You should use it I think you should do something like gpart bootcode -b /boot/pmbr ada0 gpart bootcode -p /boot/gptzfsboot -i 1 ada0 (The second assume that you have a freebsd-boot as first index in ada0) Cheers, 2013/2/22 uki uka...@gmail.com Hi, I want to install freebsd9 (stable) on zfs root, unfortunately my bios is unable to recognize GPT discs. I'm using MBR disc, with BSD slice (on mbr index 4) containing freebsd-zfs filesystem. I've no idea how to make it bootable, I've tried using: zpool export sys dd if=/boot/zfsboot of=/dev/ada0s4 count=1 dd if=/boot/zfsboot of=/dev/ada0s4a skip=1 seek=1024 zpool import sys When I select F4 (slice with zfs) whilst booting the computer just turns off. How do I make it boot? Do I need freebsd-boot slice? I have set bootfs property on pool, and added vfs.root.mountfrom to loader.conf. Cheers, Łukasz Gruner ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- Demelier David -- Demelier David ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Root on zfs (stable9) - how to make it bootable
2013/2/22 David Demelier demelier.da...@gmail.com: Sorry didn't read that you have a MBR slice instead of GPT then you should take a look at that one https://wiki.freebsd.org/RootOnZFS/ZFSBootPartition I have used that one, unfortunately I was unable to boot. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ROOT on ZFS with MBR partitions
On Sun, Feb 27, 2011 at 12:45 AM, Daniel Staal dst...@usa.net wrote: --As of February 27, 2011 12:26:04 AM +, Slawomir Wojtczak is alleged to have said: ... but none of them seems to work, after installation it hangs at boot like that: http://ompldr.org/vN2tscQ --As for the rest, it is mine. Hmm. Interesting. I'm having the same result when trying the 'root on ZFS, boot from UFS' guide here: http://wiki.freebsd.org/RootOnZFS/UFSBoot Anything interesting happening during your install? I have an error late in the process (During 'Step 3.1') with this command: Fixit# mv boot bootdir/ It gives me an error saying that /bin/cp can't found/executed. (I've been trying to work around using `bin/cp -pRP boot bootdir/`. Note the lack of the leading slash.) I had tried several of the other installs from http://wiki.freebsd.org/RootOnZFS successfully, but I don't think I'd tried the MBR install. Daniel T. Staal I had the same problem. Today, I tried using the PCBSD dvd to install FreeBSD on ZFS (with /boot on UFS). It kept giving errors just before completion. However, some comments I found while googling about that problem mentioned that the installation seemed to have completed, which seems to be the case. Both FreeBSD and FreeDOS are now installed on the same drive (in a VM, I'll try this on real h/w next). Still not sure what caused the error during installation though. Regards Gautham Ganapathy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ROOT on ZFS with MBR partitions
--As of February 27, 2011 12:26:04 AM +, Slawomir Wojtczak is alleged to have said: ... but none of them seems to work, after installation it hangs at boot like that: http://ompldr.org/vN2tscQ --As for the rest, it is mine. Hmm. Interesting. I'm having the same result when trying the 'root on ZFS, boot from UFS' guide here: http://wiki.freebsd.org/RootOnZFS/UFSBoot Anything interesting happening during your install? I have an error late in the process (During 'Step 3.1') with this command: Fixit# mv boot bootdir/ It gives me an error saying that /bin/cp can't found/executed. (I've been trying to work around using `bin/cp -pRP boot bootdir/`. Note the lack of the leading slash.) I had tried several of the other installs from http://wiki.freebsd.org/RootOnZFS successfully, but I don't think I'd tried the MBR install. Daniel T. Staal --- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ROOT on ZFS with MBR partitions
Anything interesting happening during your install? I would say no, everything seems smooth until I try to boot it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: ROOT on ZFS with MBR partitions
How long are you waiting? What are you booting from? On Sat, Feb 26, 2011 at 7:54 PM, Slawomir Wojtczak verma...@gmx.com wrote: Anything interesting happening during your install? I would say no, everything seems smooth until I try to boot it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Root on ZFS
On 04/03/2010 11:53, Matthew Law wrote: I am following this wiki page to move to zfs root: http://wiki.freebsd.org/ZFSOnRoot I got to this section: Create bootdir directory where the boot file system will be mounted: # mkdir /tank/bootdir # ln -s bootdir/boot /tank/boot I am confused about the symlink line - what is 'bootdir' ? Thanks, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Hi Matt bootdir is where the ufs boot partition gets mounted on further down in the instructions... The symbolic link is to keep everything in order when; * upgrading or installing a new kernel * updating any of the boot configs. Regards /Craig B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Root on ZFS
On Thu, March 4, 2010 3:44 pm, Randal L. Schwartz wrote: Matthew == Matthew Law m...@webcontracts.co.uk writes: Matthew I am following this wiki page to move to zfs root: Matthew http://wiki.freebsd.org/ZFSOnRoot If you're running RELEASE-8 or later, I've gotten this to work just fine: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot Thanks, guys. Yes, I am on 8-RELEASE. I was really looking to create a 3-disk raidz or raidz2 volume with 1 hot spare. I happened across this page: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ2 and started to follow that. Currently live on two slices at arpnetworks.com with that. The trickiest part is that Arp installs an existing system on the disk, and the instructions there don't tell how to remove it. :( I can't remember the workaround, but someone in IRC told me. (gpart destroy didn't work, because it said already in use) I ran into this and figured out I need to remove each slice first. But it did take a little head scratching. I installed a minimal OS from a USB stick onto a single SATA drive. After testing it was installed and running OK, I rebooted and chose the fixit option from sysinstall and followed the above guide. I've got to this part: 7. 'Create ZFS Pool zroot' Fixit# mkdir /boot/zfs Fixit# zpool create zroot raidz2 /dev/gpt/disk0 /dev/gpt/disk1 /dev/gpt/disk2 Fixit# zpool set bootfs=zroot zroot The zpool create command fails because I don't have '/dev/gpt' - I take it I haven't actually installed with gpt in the first place? Can I go back and do that and what's the advantage of gpt? Finally, I had problems with the SAS card in this box, which is a bog standard LSI SAS8041E. I can install OK, but on rebooting it can't find the root slice, panics and drops me into mountroot. Where I get stuck. Any help much appreciated, Matt. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Root on ZFS
Matthew == Matthew Law m...@webcontracts.co.uk writes: Matthew I am following this wiki page to move to zfs root: Matthew http://wiki.freebsd.org/ZFSOnRoot If you're running RELEASE-8 or later, I've gotten this to work just fine: http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot Currently live on two slices at arpnetworks.com with that. The trickiest part is that Arp installs an existing system on the disk, and the instructions there don't tell how to remove it. :( I can't remember the workaround, but someone in IRC told me. (gpart destroy didn't work, because it said already in use) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 mer...@stonehenge.com URL:http://www.stonehenge.com/merlyn/ Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org