Closed sharkcz closed 2 years ago
This should be fixed with commit ad024c06e16ec4bba31d19fb848b42c67113143d.
@sharkcz can you please verify that the commit mentioned by @oberpar fixes this issue? Thanks!
It doesn't seem to be sufficient to fix it ...
[root@openshift-8 ~]# lsdasd
Bus-ID Status Name Device Type BlkSz Size Blocks
================================================================================
0.0.5522 active dasda 94:0 ECKD 4096 7043MB 1803060
0.0.5622 active dasdb 94:4 ECKD 4096 7043MB 1803060
0.0.5422 active dasdc 94:8 ECKD 4096 7043MB 1803060
0.0.5722 active dasdd 94:12 ECKD 4096 7043MB 1803060
[root@openshift-8 ~]# lsblk -P -o NAME,MAJ:MIN,FSTYPE,UUID,MOUNTPOINT,PKNAME 2>/dev/null
NAME="dasda" MAJ_MIN="94:0" FSTYPE="" UUID="" MOUNTPOINT="" PKNAME=""
NAME="dasda1" MAJ_MIN="94:1" FSTYPE="ext4" UUID="a9284e9f-16e2-439a-8959-b88ba9e976ed" MOUNTPOINT="/boot" PKNAME="dasda"
NAME="dasda2" MAJ_MIN="94:2" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="/home" PKNAME="dasda"
NAME="dasdb" MAJ_MIN="94:4" FSTYPE="" UUID="" MOUNTPOINT="" PKNAME=""
NAME="dasdb1" MAJ_MIN="94:5" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" PKNAME="dasdb"
NAME="dasdc" MAJ_MIN="94:8" FSTYPE="" UUID="" MOUNTPOINT="" PKNAME=""
NAME="dasdc1" MAJ_MIN="94:9" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" PKNAME="dasdc"
NAME="dasdd" MAJ_MIN="94:12" FSTYPE="" UUID="" MOUNTPOINT="" PKNAME=""
NAME="dasdd1" MAJ_MIN="94:13" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" PKNAME="dasdd"
NAME="zram0" MAJ_MIN="252:0" FSTYPE="" UUID="" MOUNTPOINT="[SWAP]" PKNAME=""
but
[root@openshift-8 ~]# chzdev -f -e 5422,5522,5622,5722
ECKD DASD 0.0.5422 configured
ECKD DASD 0.0.5522 configured
ECKD DASD 0.0.5622 configured
ECKD DASD 0.0.5722 configured
Note: The initial RAM-disk must be updated for these changes to take effect:
- ECKD DASD 0.0.5522
Update initial RAM-disk now? (yes/no) no
Operation canceled on user request
Hm, seems this could be related to the fact that a single block device provides multiple mount points. Could you provide the output of the following command?
lsblk -P -o NAME,MAJ:MIN,FSTYPE,UUID,MOUNTPOINT,MOUNTPOINTS,PKNAME
[root@openshift-8 ~]# lsblk -P -o NAME,MAJ:MIN,FSTYPE,UUID,MOUNTPOINT,MOUNTPOINTS,PKNAME
NAME="dasda" MAJ_MIN="94:0" FSTYPE="" UUID="" MOUNTPOINT="" MOUNTPOINTS="" PKNAME=""
NAME="dasda1" MAJ_MIN="94:1" FSTYPE="ext4" UUID="a9284e9f-16e2-439a-8959-b88ba9e976ed" MOUNTPOINT="/boot" MOUNTPOINTS="/boot" PKNAME="dasda"
NAME="dasda2" MAJ_MIN="94:2" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="/home" MOUNTPOINTS="/home\x0a/" PKNAME="dasda"
NAME="dasdb" MAJ_MIN="94:4" FSTYPE="" UUID="" MOUNTPOINT="" MOUNTPOINTS="" PKNAME=""
NAME="dasdb1" MAJ_MIN="94:5" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" MOUNTPOINTS="" PKNAME="dasdb"
NAME="dasdc" MAJ_MIN="94:8" FSTYPE="" UUID="" MOUNTPOINT="" MOUNTPOINTS="" PKNAME=""
NAME="dasdc1" MAJ_MIN="94:9" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" MOUNTPOINTS="" PKNAME="dasdc"
NAME="dasdd" MAJ_MIN="94:12" FSTYPE="" UUID="" MOUNTPOINT="" MOUNTPOINTS="" PKNAME=""
NAME="dasdd1" MAJ_MIN="94:13" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="" MOUNTPOINTS="" PKNAME="dasdd"
NAME="zram0" MAJ_MIN="252:0" FSTYPE="" UUID="" MOUNTPOINT="[SWAP]" MOUNTPOINTS="[SWAP]" PKNAME=""
Yes, that confirms my assumption:
NAME="dasda2" MAJ_MIN="94:2" FSTYPE="btrfs" UUID="30efdb5e-51ef-4188-87fa-60665d3eb096" MOUNTPOINT="/home" MOUNTPOINTS="/home\x0a/" PKNAME="dasda"
Current zdev code isn't compatible with devices that provide multiple mount-points. Fixing this shouldn't be too difficult, but I'm not sure when this can be provided. Is there any deadline associated with the occurrence of the problem in your case?
I believe we can keep it open for some time, ideally with some documentation note. There is no deadline and one can do custom storage setup when installing Fedora, so there is a workaround.
@sharkcz despite automatically closing this issue when I've pushed the corresponding commit, could you please still confirm the fix? Thanks a lot!
yes, I will give it a try
yup, it looks good
[root@openshift-8 ~]# chzdev -f -e 5422,5522,5622,5722
ECKD DASD 0.0.5422 configured
ECKD DASD 0.0.5522 configured
ECKD DASD 0.0.5622 configured
ECKD DASD 0.0.5722 configured
Note: The initial RAM-disk must be updated for these changes to take effect:
- ECKD DASD 0.0.5522
- ECKD DASD 0.0.5622
- ECKD DASD 0.0.5422
- ECKD DASD 0.0.5722
Update initial RAM-disk now? (yes/no) yes
Building initial RAM-disk
...
yup, it looks good
[root@openshift-8 ~]# chzdev -f -e 5422,5522,5622,5722 ECKD DASD 0.0.5422 configured ECKD DASD 0.0.5522 configured ECKD DASD 0.0.5622 configured ECKD DASD 0.0.5722 configured Note: The initial RAM-disk must be updated for these changes to take effect: - ECKD DASD 0.0.5522 - ECKD DASD 0.0.5622 - ECKD DASD 0.0.5422 - ECKD DASD 0.0.5722 Update initial RAM-disk now? (yes/no) yes Building initial RAM-disk ...
Thanks a lot for the verification!
I believe this is an oddity of btrfs, but when btrfs is used for the root filesystem and the fs is spread across multiple devices, then zdev adds only one rule into the initrd rendering the system unbootable :-(
As you can see
chzdev
adds5422
into the initrd, but rather all 4 DASDs are required.