[pve-devel] applied: [PATCH zfsonlinux v2 1/3] zfs-initramfs: add patch to avoid activating all LVs at boot

Thomas Lamprecht t.lamprecht at proxmox.com
Sun Mar 16 20:24:30 CET 2025


On 07/03/2025 10:52, Friedrich Weber wrote:
> zfs-initramfs ships an initramfs-tools boot script that
> unconditionally activates all LVs on boot. This can cause issues if
> the LV resides on a shared LVM VG on top of a shared LUN, in
> particular Fibre Channel / directed-attached SAS LUNs, as these are
> usually visible at boot time. See bug #4997 [1] for more details.
> 
> To avoid this, patch zfs-initramfs such that it performs LVM
> autoactivation instead. Thus, it honors the `--setautoactivation n`
> flag that is normally used to disable autoactivation during boot for
> particular VGs/LVs.
> 
> [1] https://bugzilla.proxmox.com/show_bug.cgi?id=4997
> 
> Signed-off-by: Friedrich Weber <f.weber at proxmox.com>
> ---
> 
> Notes:
>     new in v2
>     
>     I'm also planning on sending the inner patch upstream, well post here
>     once I do.
> 
>  ...s-use-LVM-autoactivation-for-activat.patch | 49 +++++++++++++++++++
>  debian/patches/series                         |  1 +
>  2 files changed, 50 insertions(+)
>  create mode 100644 debian/patches/0012-contrib-initramfs-use-LVM-autoactivation-for-activat.patch
> 
>

applied, with merge conflict in d/patches/series due to applying Fabians
patch earlier resolved, thanks!




More information about the pve-devel mailing list