Opened 18 months ago

Closed 7 months ago

#678 closed System Defect (deferred)

PC-BSD 9.1 RC2 Install using ZFS fails to boot

Reported by: rhdinah Owned by: kris
Priority: major Milestone: 9.1
Component: Installer Version: 9.1-RC2
Keywords: Cc: trac-bugs@…

Description

Installing PCBSD9.1-RC2-x64-USBFULL.img with default install creates a system that does not boot after install. Changing the settings to NOT use ZFS, but UFS works.

My machine: Lenovo T420, 4GB RAM, 1TB hard drive.

The machine boots to the F1 - FreeBSD F6 PXE prompt ... goes to newline, sits there for what seems forever ... nothing else is going on activity-wise ... just a hang.

Change History (11)

comment:1 Changed 18 months ago by rhdinah

The Version above is incorrect there is no drop down for RC2 ... somehow 9.0-Release was chosen.

comment:2 Changed 18 months ago by kris

  • Version changed from 9.0-RELEASE to 9.1-RC2

comment:3 follow-up: Changed 18 months ago by kris

Sounds like an issue possibly with the zfsboot loader... I'll do some additional testing here, but it may be hardware specific, since I just did the exact same install with RC2 on a laptop here and it worked fine. Did the disk previously have any other file-systems on it? How about if you choose the GPT option in Disk Configuration -> Advanced?

comment:4 in reply to: ↑ 3 Changed 18 months ago by rhdinah

Replying to kris:

Sounds like an issue possibly with the zfsboot loader... I'll do some additional testing here, but it may be hardware specific, since I just did the exact same install with RC2 on a laptop here and it worked fine. Did the disk previously have any other file-systems on it? How about if you choose the GPT option in Disk Configuration -> Advanced?

I did a default ZFS install by using the graphical installer. As I mentioned it failed. But it piqued my interest ... I wondered if it was a ZFS-related problem. So I went to the advanced install options - UFS - next round. Surprisingly it worked. I did the install again using just the default install. Again it failed ... then I reinstalled the UFS version where it now sits.

It originally was a brand new hard drive. Later it had Bodhi Linux on it. But between all the last few installs were only PC-BSD ... but I will try the GPT suggestion. At this time the hardware is sitting there waiting for the 9.1 Release ... since only this release fixes the T420 video rendering issues with 9.0. I still need to check to see if the audio is working ... will do that along with your idea. I can test with any changes that are made. As I mentioned this system is idle ... and it is much better to test this issue at the native hardware level than a virtual machine if it is hardware-related.

I'm looking forward to a quality release 9.1 for my T420 ... seriously looking to use PC-BSD than Ubuntu Linux.

comment:5 Changed 18 months ago by rhdinah

Adding GPT to ZFS made the hard drive unbootable.

comment:6 Changed 17 months ago by rhdinah

fyi problem remains in RC3.

comment:7 Changed 17 months ago by kris

I've installed RC3 on about 5 systems now, all with ZFS and some dual-booted or dedicated with GPT and can't seem to duplicate this issue. Is there anything else on your disk? If you boot the installer and run "gpart show ada0" can you post the results here? Maybe we have some other stuff still on the disk.

comment:8 Changed 17 months ago by rhdinah

Hi Kris. I'll do this when I get back home. If you can remember the original hard drive was brand new and contained nothing in the way of older partitions. But I'll run this and any other test you need and let you know. Plus this time it replaced RC2 UFS with RC3 ZFS ... which in the same way wouldn't proceed past the F1/F6 prompt except for a blinking cursor ... now it has RC3 UFS and appears to be working okay. Will keep you up-to-date.

Regards, Robert

comment:9 Changed 17 months ago by rhdinah

Operational with RC3 UFS installed and rebooting usbkey:

pcbsd# gpart show ada0
=>        63  1953525105  ada0  MBR  (931G)
          63          63        - free -  (31k)
         126  1953524979     1  freebsd  [active]  (931G)
  1953525105          63        - free -  (31k)

Not operational with RC3 ZFS installed and rebooting usbkey:

pcbsd# gpart show ada0
=>        63  1953525105  ada0  MBR  (931G)
          63          63        - free -  (31k)
         126  1953524979     1  freebsd  [active]  (931G)
  1953525105          63        - free -  (31k)

Precisely the same. Difference *now* though is that rather than just hanging there with a blinking cursor ... it continually reboots after five seconds. Making things even worse ... maybe ...
I reinstalled UFS again ... runs okay ... reinstalled ZFS ... got the blinking cursor again.

F1  FreeBSD
F5  Drive 1

F6 PXE
Boot:  F1
_

Let me know if I can be of further help.

Regards, Robert

comment:10 Changed 14 months ago by mjollnirpaul

Doesn't ZFS need an extra zfsboot partition of 64k for the zfs-bootloader? Or is this bundled inside the freebsd partition on MBR disks? With GPT, your layout should look like this
[CODE]
[paul@paul-lifebook ~]$ gpart show ada0
=> 34 250069613 ada0 GPT (119G)

34 128 1 freebsd-boot (64k)

162 6 - free - (3.0k)
168 241680216 2 freebsd-zfs (115G)

241680384 8389248 3 freebsd-swap (4.0G)
250069632 15 - free - (7.5k)

BOOT
The extra swap partition is not needed, it's just because I want to have crashdumps.

comment:11 Changed 7 months ago by kenmoore

  • Resolution set to deferred
  • Status changed from new to closed

Please re-test with PC-BSD 9.2 - there have been a significant number of changes to the boot process (including changing the boot manager to GRUB2) so this might be fixed for you.

Note: See TracTickets for help on using tickets.