Using Fedora 36 Live USB on legacy machine with BIOS I have setup partition layout by gdisk, same on three separate 500GB drives:
Code:
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02 BIOS boot partition
2 4096 618495 300.0 MiB FD00 Linux RAID
3 618496 34172927 16.0 GiB FD00 Linux RAID
4 34172928 976773134 449.5 GiB FD00 Linux RAID
then I did setup soft raid with use of mdadm as follows:
mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sd[abc]4
mdadm --create /dev/md1 --level=1 --raid-devices=3 /dev/sd[abc]3
mdadm --create /dev/md2 --level=1 --raid-devices=3 /dev/sd[abc]2
next I created logical volumes on /dev/md0 (RAID5):
pvcreate /dev/md0
pvcreate /dev/md1
pvcreate /dev/md2
what gives me:
pvdisplay
— Physical volume —
PV Name /dev/md0
VG Name VGarray
PV Size 898.68 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 230062
Free PE 0
Allocated PE 230062
PV UUID 9sGOj2-CeLj-EOhY-Rgv4-baVJ-W2Mo-eR2Ice
“/dev/md1” is a new physical volume of “15.98 GiB”
— NEW Physical volume —
PV Name /dev/md1
VG Name
PV Size 15.98 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 7LO45Z-sNrU-AXTK-nv4I-7BCy-wQnU-UtGMCC
“/dev/md2” is a new physical volume of “199.00 MiB”
— NEW Physical volume —
PV Name /dev/md2
VG Name
PV Size 199.00 MiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID DVnpdm-C9rg-Wu0V-HE7Q-GRnN-B7aG-kZOZ77
then I followed to create volume group:
Code:
vgcreate VGarray /dev/md0
vgdisplay
— Volume group —
VG Name VGarray
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size <898.68 GiB
PE Size 4.00 MiB
Total PE 230062
Alloc PE / Size 230062 / <898.68 GiB
Free PE / Size 0 / 0
VG UUID Ie0G3S-HvEq-2Zia-rpyC-PIww-czUy-Px03TQ
and logical volumes:
Code:
lvcreate -L 50G vgarray -n lvroot
lvcreate -L 20G VGarray -n lvvar
lvcreate -L +100%FREE VGarray -n lvhome
that results in:
Code:
lvdisplay
— Logical volume —
LV Path /dev/VGarray/lvroot
LV Name lvroot
VG Name VGarray
LV UUID 5cuQDv-fuVg-7dVa-EtQ2-jDFS-QTAH-i79qtS
LV Write Access read/write
LV Creation host, time localhost-live, 2022-07-10 09:26:31 -0400
LV Status available
open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 253:2
— Logical volume —
LV Path /dev/VGarray/lvvar
LV Name lvvar
VG Name VGarray
LV UUID U3OoH8-vQ4I-eM5P-HBZ8-LP7z-Mo1Q-g189Xr
LV Write Access read/write
LV Creation host, time localhost-live, 2022-07-10 09:27:27 -0400
LV Status available
open 0
LV Size 20.00 GiB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 253:3
— Logical volume —
LV Path /dev/VGarray/lvhome
LV Name lvhome
VG Name VGarray
LV UUID vEW9Jp-C5xZ-ce23-iF1L-e2sb-ckHL-g0e6ji
LV Write Access read/write
LV Creation host, time localhost-live, 2022-07-10 09:30:48 -0400
LV Status available
open 0
LV Size <828.68 GiB
Current LE 212142
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 4096
Block device 253:4
lastly exported raid config to config file:
Code:
mdadm --examine --scan >> /etc/mdadm.conf
When I run Fedora Installer it can only see RAID devices with 0 bytes of free space but none of logical volumes, why?