Booting from ZFS raidz

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <freebsd-fs@...>
Date: Wednesday, December 17, 2008 - 2:25 pm

I've been working on adding raidz and raidz2 support to the boot code  
and I have a patch which could use some testing if anyone here is  
interested. This http://people.freebsd.org/~dfr/ 
raidzboot-17122008.diff adds support for raidz and raidz2. The easiest  
way to prepare a bootable pool is to put a GPT boot partition on each  
disk that will make up the raidz pool and install gptzfsboot on the  
boot partition of every drive.

You can boot from any of the drives and as long as the BIOS can see  
enough drives you should be able to boot. The boot code supports  
booting from degraded pools and pools where some of the data is  
corrupt (as long as it has enough data available to repair the problem).

Currently the ZFS kernel code refuses to allow you to set the bootfs  
pool property on raidz pools (because Solaris can't boot from them).  
This means that you are limited to booting from the root filesystem of  
the pool for now (it shouldn't be hard to relax this restriction). The  
root filesystem of the pool should contain a directory /boot with the  
usual contents which must include a /boot/loader which was built with  
the 'LOADER_ZFS_SUPPORT' make option.

_______________________________________________
freebsd-fs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Booting from ZFS raidz, Doug Rabson, (Wed Dec 17, 2:25 pm)
Re: Booting from ZFS raidz, Peter Jeremy, (Sun Feb 1, 3:24 am)
zpool resilver restarting, Wes Morgan, (Fri Dec 26, 11:22 pm)
Re: zpool resilver restarting, Wes Morgan, (Fri Dec 26, 11:57 pm)
Re: zpool devices "stuck" (was zpool resilver restarting), Gary Jennejohn, (Mon Dec 29, 7:01 am)
Re: Booting from ZFS raidz, Stefan Bethke, (Fri Dec 19, 5:46 pm)
Re: Booting from ZFS raidz, Ollivier Robert, (Thu Apr 16, 12:01 pm)
Re: Booting from ZFS raidz, George Hartzell, (Thu Apr 16, 12:52 pm)
Re: Booting from ZFS raidz, Ollivier Robert, (Fri Apr 17, 9:14 am)
Re: Booting from ZFS raidz, Ollivier Robert, (Fri Apr 17, 10:46 am)
Re: Booting from ZFS raidz, George Hartzell, (Fri Apr 17, 9:47 am)
Re: Booting from ZFS raidz, Ollivier Robert, (Fri Apr 17, 9:57 am)
Re: Booting from ZFS raidz, Ollivier Robert, (Thu Apr 16, 12:40 pm)
Re: Booting from ZFS raidz, Nathanael Hoyle, (Thu Apr 16, 2:14 pm)
Re: Booting from ZFS raidz, Nathanael Hoyle, (Thu Apr 16, 2:12 pm)
Re: Booting from ZFS raidz, Doug Rabson, (Sat Dec 20, 10:23 am)
Re: Booting from ZFS raidz, Stefan Bethke, (Sat Dec 20, 11:01 am)
Re: Booting from ZFS raidz, Doug Rabson, (Sat Dec 20, 11:06 am)
Re: Re: Booting from ZFS raidz, Arnaud Houdelette, (Mon Dec 22, 6:29 am)
Re: Booting from ZFS raidz, Doug Rabson, (Fri Jan 2, 9:17 am)
Re: Booting from ZFS raidz, Nikolay Denev, (Sat Jan 10, 7:56 am)
Re: Booting from ZFS raidz, Nikolay Denev, (Mon Jan 12, 6:35 am)
Re: Booting from ZFS raidz, Nikolay Denev, (Tue Jan 13, 11:47 am)