Did zpool upgrade on boot pool. Now what?

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
I'll try to find out how one does update grub after a zpool upgrade. Just because I'm curious. The boot drive is a VMDK. I can do a copy.
Interesting:


There is no /etc/default/grub in TrueNAS and /etc/default/grub.d/truenas.cfg does not contain that GRUB_CMDLINE_LINUX="root=ZFS=rpool/ROOT/debian" or similar.

Not yet sure what to make of this.

For the record:

In FreeBSD it is really easy. The boot loader is either a legacy one written to a partition of type freebsd-boot or an EFI one placed in the FAT32 EFI partition. Every FreeBSD release comes with a boot loader that can boot a zpool upgraded to the latest features supported by that release. So you do the matching one of these two and you are good:
Code:
# assume legacy boot, the boot device is nvd0, the freebsd-boot partition is #1
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nvd0

# assume EFI boot, the boot device is nvd0, the EFI partition is #1
mount -t msdosfs /dev/nvd0p1 /mnt
mkdir -p /mnt/efi/boot /mnt/efi/freebsd
cp /boot/boot1.efi /mnt/efi/boot/bootx64.efi
cp /boot/boot1.efi /mnt/efi/freebsd/loader.efi
umount /mnt

That's it.
 
Last edited:
Joined
Oct 22, 2019
Messages
3,641
ZFS is still a second-class citizen in the Linux ecosystem. :confused:

I'm still not sure who to believe. On one side they claim it's due to the license and fear of being sued by Oracle. On the other side they say it's due to Torvalds' "not invented here" attitude.

Either way, it kind of sucks that ZFS essentially "duct tapes" itself to Linux kernel development.

(I've read on other forums people locking themselves out of there own Linux system, being unable to boot into their OS installed on a ZFS root, even after months of success.)
 
Last edited:

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
One one side they claim it's due to the license and fear of being sued by Oracle.
...which hasn't deterred Ubuntu or Proxmox (or now iX) from using it.
On the other side they say it's due to Torvalds' "not invented here" attitude.
I've seen Torvalds make some utterly ignorant statements about ZFS, so this is where I'd put my money if I were betting.
 
Joined
Oct 22, 2019
Messages
3,641
...which hasn't deterred Ubuntu or Proxmox (or now iX) from using it.
I meant more on along the lines of "out-of-tree" in regards to the Linux kernel development.

EDIT: For context, here is Linus Torvalds' (in)famous quote on the matter:
"There is no way I can merge any of the ZFS efforts until I get an official letter from Oracle that is signed by their main legal counsel or preferably by Larry Ellison himself that says that yes, it's OK to do so and treat the end result as GPL'd."
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I meant more on along the lines of "out-of-tree" in regards to the Linux kernel development.
Sure, but the same concerns (if valid) would apply to distros who package ZFS with the distro.
 
Top