-
Bug
-
Resolution: Unresolved
-
Normal
-
rhel-9.4
-
lvm2-2.03.27-1.el9
-
None
-
Moderate
-
-
rhel-sst-logical-storage
-
ssg_filesystems_storage_and_HA
-
8
-
12
-
5
-
QE ack, Dev ack
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
Pass
-
Automated
-
-
All
-
None
What were you trying to do that didn't work?
When a device contains a "GPT" label but no actual partition, even with the "-y" option, pvcreate fails to initialize the device.
Please provide the package NVR for which bug is seen:
# rpm -q lvm2
lvm2-2.03.21-3.el9.x86_64
How reproducible:
Always
Steps to reproduce
- Create GPT label on disk.
- Try to initialize the device as PV with pvcreate -f .
Expected results
If the device has no actual partitions on it, then using the "-f" option to pvcreate should remove the gpt label from the disk.
Actual results
pvcreate fails with below error when disk has GPT label.
# parted /dev/sda mklabel gpt # pvcreate -f /dev/sda Devices file /dev/sda is excluded: device is partitioned. Cannot use /dev/sda: device is partitioned # wipefs /dev/sda DEVICE OFFSET TYPE UUID LABEL sda 0x200 gpt sda 0x7ffffe00 gpt sda 0x1fe PMBR
The behavior should be same as "MDSOS" label.
# parted /dev/sda mklabel msdos # wipefs /dev/sda DEVICE OFFSET TYPE UUID LABEL sda 0x1fe dos # pvcreate -f /dev/sda Wiping dos signature on /dev/sda. Physical volume "/dev/sda" successfully created.
- is blocked by
-
RHEL-61251 [RHEL-9.6.0] Rebase lvm2 to 2.03.27 or later
-
- Release Pending
-
- links to
-
RHBA-2024:140091 lvm2 update