bugGNU GRUB - Bugs: bug #62821, Request the addition of zstd...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #62821: Request the addition of zstd compression support for ZFS

Submitter:  John <nosehair>
Submitted:  Wed 27 Jul 2022 11:35:18 AM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 13 Aug 2022 12:02:14 AM UTC, comment #1: 

original submission:

> Currently "zstd" compression is supported for BRTFS, but not for ZFS.  As the version of ZFS shipped with many distributions now supports zstd, it is possible for a user to set the root-on-ZFS filesystem to use zstd and inadvertently cause their system to become un-bootable and virtually irrecoverable.
>
>


Just to clarify the impact a little  ...On any Ubuntu 21.10 or 22.04 system, if the "compression" setting for the "bpool" (/boot) filesystem is changed to "zstd" (and the system actually compresses any data on that filesystem using zstd), the system will be effectively "bricked" on the next reboot.

The UEFI boot will call Grub, the boot menu will appear, but none of the listed kernels will boot and the roll-back snapshots will, likewise, not boot.

Just changing the compression type back to "none" or "lz4" will not work (because the data is already compressed with "zstd").  For most casual users, the only viable (system) recovery method is a complete re-installation.


FOR ANYONE LOOKING TO RECOVER FROM THIS ISSUE:-

  The data on your filesystems is intact (this is a Grub issue, -not- a ZFS issue), therefore you can recover your whole system using an alternative boot method which has "zstd" support, such as ZFSBootMenu.

   Alternatively, if you are comfortable with ZFS basics, you can boot from a live-CD, use ZFS send-receive to back-up your bpool to either an external disk, system or SD-card, recreate the bpool  (hint:- zpool create -o compatibility=grub2 bpool) and then re-import the data  again.



John <nosehair>
Wed 27 Jul 2022 11:35:18 AM UTC, original submission:  

Currently "zstd" compression is supported for BRTFS, but not for ZFS.  As the version of ZFS shipped with many distributions now supports zstd, it is possible for a user to set the root-on-ZFS filesystem to use zstd and inadvertently cause their system to become un-bootable and virtually irrecoverable.


John <nosehair>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nosehair (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code