linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* is it possible to add a new filter to detect unusable partition types
@ 2024-12-17  8:34 Heming Zhao
  2024-12-17  9:13 ` Glass Su
       [not found] ` <43D73CB9-32E4-405E-93A9-E985C94F4A9E__33327.0934455626$1734427189$gmane$org@suse.com>
  0 siblings, 2 replies; 10+ messages in thread
From: Heming Zhao @ 2024-12-17  8:34 UTC (permalink / raw)
  To: linux-lvm@lists.linux.dev; +Cc: mchang, Glass Su

Hi LVM2 maintainers,

One of SUSE's customers encountered an issue with LVM2. The user created several partitions, one of which was marked as "BIOS boot" (4) instead of "LINUX LVM" (8E). Subsequently, the user ran pvcreate/vgcreate/lvcreate on this partition. During a system update, grub2-install installed GRUB2 in the "BIOS boot" partition, resulting in LVM2 metadata corruption.

The root cause of this issue is that grub2-install targets the "BIOS boot" partition when this lvm2 device is specified for installation. If the user had initially marked the partition as "LINUX LVM", grub2-install would not have chosen this partition.

On the other hand, it would be beneficial if LVM2 could implement a new filter or a filter function to detect and exclude the "BIOS boot" partition from being considered a valid target for LVM2 device creation. This could involve issuing a warning or error message to alert the user of the potential conflict. This may also help user to notice the issue more easily.

Best regards,
Heming

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-12-19 10:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17  8:34 is it possible to add a new filter to detect unusable partition types Heming Zhao
2024-12-17  9:13 ` Glass Su
     [not found] ` <43D73CB9-32E4-405E-93A9-E985C94F4A9E__33327.0934455626$1734427189$gmane$org@suse.com>
2024-12-17 10:21   ` Zdenek Kabelac
2024-12-17 12:45     ` Michael Chang
2024-12-17 20:32     ` Demi Marie Obenour
     [not found]     ` <yjiu3c3e4aknayawhw7lw52kev6fvp4wm6n6wte4t27hx3fr4u__21682.4523567752$1734439545$gmane$org@cc5bu2ij2ia3>
2024-12-18 10:12       ` Zdenek Kabelac
2024-12-18 14:44         ` Karel Zak
2024-12-18 17:05           ` Thomas Weißschuh
2024-12-19  4:48             ` Michael Chang
     [not found]             ` <jcqrtifxjk2adtngyykvyoffh6ab3twulqra4ugq7satddqob7__49168.7655843393$1734583719$gmane$org@rngyhl7nuyhk>
2024-12-19 10:50               ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).