127c8
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
After reading the RootOnZFS/GPTZFSBoot/Mirror wiki page, I installed the 9.0-RELEASE-amd64 on a pair of USB sticks with swap inside the ZFS and my own set of ZFS filesystems. (This was done on an Intel Atom N330 motherboard, if it matters)
However, every time it boots, it takes around ten+ minutes to get the kernel loaded. It would be stuck at the spinning prompt after BTX Loader (with the Drives C:, D:, ... shown), with one USB stick being constantly accessed. Around five minutes later, the other USB stick would be constantly accessed for another five minutes or so. After the whole ordeal, the kernel would be loaded, and the rest of the boot up process would continue without a fuss. My original impression was that it may have something to do with the -b 34 option when I created the freebsd-boot partition with gpart, (somehow misaligned) since I searched around the 'net and some pages would put the -b 34 in, while some would simply omit that option. Has anyone experienced this before? Is there a way to eliminate the delay? Thanks! Last edited by DutchDaemon; May 8th, 2012 at 10:43. |
|
#2
|
|||
|
|||
|
It seems to be a BIOS USB access problem. (USB 1.1 booting may be very slow). Try to boot the same stick on different computers. Post the results.
Last edited by DutchDaemon; May 10th, 2012 at 23:06. |
|
#3
|
|||
|
|||
|
Just a very late update... I tried turning off USB legacy in BIOS, and the USB drives are not seen by BIOS (not bootable at all)
Apparently I need USB legacy enabled to boot a USB 2.0 flash drive... |
|
#4
|
||||
|
||||
|
-b 34 is not required. On a GPT-partitioned drive, the first 34 blocks are used for the partition table. gpart(8) will use the next available block when you create a partition, so there really isn't much point to using -b 34.
Similarly, it's not an alignment problem. I recall reading that USB boot was slow because it reads single blocks, which USB doesn't do quickly. With ZFS, there is more to load before it can boot and start reading big chunks at a time. |
|
#5
|
|||
|
|||
|
@HarryE, I tried booting on a different machine, it's still slow.
@wblock, thanks. I'll remember that next time I create another one. |
|
#6
|
|||
|
|||
|
How fast the stock 9.0-RELEASE-amd64 usb install image boots on the same computer, from the same stick?
I get, on the same machine, with different generations of Kingston sticks, different boot times (btx spinning cursor) up to 20 seconds, but never such long boots. I'd try different USB stick manufacturer. Some Atom BIOSes (incl. my D525TUD) have a hard time booting from GPT, try also the MBR partition scheme. |
|
#7
|
||||
|
||||
|
I´m thinking, this:
ZFS partition probing causing long delay at BTX loader The GPT ZFS-loader was recently changed from probing 4 partitions to 128 for booting, even if the disk only has two partitions... Imagine what this did to storage systems with 50 disks(or more) attached; that´s 50*128 of the delay it takes to probe at BTX. So, to change back this behavior: Code:
Phase 1.
/Sebulon |
| The Following User Says Thank You to Sebulon For This Useful Post: | ||
HarryE (September 19th, 2012) | ||
|
#9
|
||||
|
||||
|
Done!
http://www.freebsd.org/cgi/query-pr.cgi?pr=171805 When you click the link, it cannot find any PR matching my ID, but I´m guessing it just takes a while for it to show up. /Sebulon EDIT: Yepp, now I see it
Last edited by Sebulon; September 20th, 2012 at 09:16. |
|
#10
|
||||
|
||||
|
OK,
so I´ve been in contact with a developer that says that the problem lies rather in "zfsloader" instead of "gptzfsboot". He has made changes that has made booting much faster in 10-HEAD that he hopes to be included in 8.4- and 9.2-RELEASE. So we´ll have to keep doing the sed-edit until then, or possibly installing the 10-HEAD, or shortly 8- and 9-STABLE version of "zfsloader" over 8.>4 or 9.>2, or just track STABLE all together. /Sebulon |
| The Following User Says Thank You to Sebulon For This Useful Post: | ||
wblock@ (September 20th, 2012) | ||
![]() |
| Tags |
| gptzfsboot, usb boot, zfs boot |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| gptzfsboot error 49 LBA 1 & LBA 32 | chaseepoch | System Hardware | 3 | December 14th, 2011 10:53 |
| Automounting USB sticks and CDs? | grateful | X.Org | 2 | September 17th, 2011 22:42 |
| IPFW - Delay question(getting x2 the delay) | lovepony | Firewalls | 8 | August 24th, 2011 07:15 |
| Possible to go from GPTZFSBoot to GPTZFSBoot/Mirror? | rusma | Installing & Upgrading | 14 | August 13th, 2010 00:17 |
| kernel panic on detaching flash sticks/players | varnie | Peripheral Hardware | 3 | January 28th, 2009 01:55 |