无法在 RAID1 上创建 LVM

无法在 RAID1 上创建 LVM

我在 RAID1 上创建 LVM 时遇到问题。我已将两个硬盘格式化为 Linux RAID

Disk /dev/sdg: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 0EDBEA0C-4245-4BCF-987E-0EAEA8A7BF45

Device     Start         End     Sectors  Size Type
/dev/sdg1   2048 19532869631 19532867584  9.1T Linux RAID

Disk /dev/sdh: 9.1 TiB, 10000831348736 bytes, 19532873728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: EBF194AB-95DD-4924-A85A-789101E1526E

Device     Start         End     Sectors  Size Type
/dev/sdh1   2048 19532869631 19532867584  9.1T Linux RAID

并使用命令创建 RAID1

mdadm --create --verbose /dev/md0 --level=mirror --raid-devices=2 /dev/sdg1 /dev/sdh1

之后,我尝试创建 LVM,但无法通过pvcreate /dev/md0。我收到错误:

/dev/md0: pe_align (2048 sectors) must not be less than pe_align_offset (8388607 sectors)
Format-specific initialisation of physical volume /dev/md0 failed.
Failed to setup physical volume "/dev/md0"

我也尝试过vgcreate vg0 /dev/md0并且成功创建了卷组。

如何初始化 RAID 设备以用于 LVM?
为什么我可以创建卷组而不初始化物理设备?
创建卷组而不初始化物理设备可以吗?

相关内容