-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-10.0
-
None
-
No
-
None
-
rhel-sst-storage-management
-
ssg_filesystems_storage_and_HA
-
None
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
What is the impact of this issue to you?
Please provide the package NVR for which the bug is seen:
How reproducible is this bug?:
Steps to reproduce
Expected results
Actual results
[2024-10-28 22:30:55] INFO: setup the storage raid1 [2024-10-28 22:30:55] INFO: free disk is ['/dev/loop0', '/dev/loop1'] [2024-10-28 22:30:55] INFO: raid parameter raid_level raid1, raid_mem ['/dev/loop0', '/dev/loop1'], version None, bitmap internal, chunk_size 0 extra, [BlockDev.ExtraArg (BDExtraArg) instance (0x7fc5e76969f0) opt: --write-mostly val: , BlockDev.ExtraArg (BDExtraArg) instance (0x7fc5e7696930) opt: --bitmap-chunk val: 128M ], kwrags, {'size': '3G'} Sleeping, wait MD resync Sleeping, wait MD resync Sleeping, wait MD resync Sleeping, wait MD resync >>> d1 = "/dev/%s" % o.add_loop() /home/bd.gc_hfuw5-loop_test >>> d2 = "/dev/%s" % o.add_loop() /home/bd.2col18w5-loop_test >>> o.bd.md_add("TESTRAID", d1, 0, None) True >>> o.bd.md_add("TESTRAID", d1, 3, [o.bd.ExtraArg.new("--level", "5")]) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python3.12/site-packages/gi/overrides/BlockDev.py", line 1031, in md_add return _md_add(raid_spec, device, raid_devs, extra) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ gi.repository.GLib.GError: g-bd-utils-exec-error-quark: Process reported exit code 1: mdadm: Can only convert a 2-device array to RAID5 (0) >>> raid=o.bd.md_detail("TESTRAID") >>> print(raid.active_devices) 3 >>> print(raid.device) /dev/md/TESTRAID >>> print(raid.failed_devices) 0 >>> print(raid.level) raid1 >>> print(raid.raid_devices) 3 >>> >>> print(raid.total_devices) 4 >>>
[root@storageqe-65]# mdadm -D /dev/md/TESTRAID
/dev/md/TESTRAID:
Version : 1.2
Creation Time : Mon Oct 28 22:30:55 2024
Raid Level : raid1
Array Size : 3145728 (3.00 GiB 3.22 GB)
Used Dev Size : 3145728 (3.00 GiB 3.22 GB)
Raid Devices : 3
Total Devices : 4
Persistence : Superblock is persistent Intent Bitmap : Internal Update Time : Mon Oct 28 22:58:19 2024
State : clean
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1Consistency Policy : bitmap Name : TESTRAID
UUID : cdf991ff:2bda37da:6cf16808:e09298b0
Events : 68 Number Major Minor RaidDevice State
2 7 2 0 active sync /dev/loop2
1 7 1 1 active sync /dev/loop1
3 7 3 2 active sync /dev/loop3 4 259 5 - spare /dev/nvme0n1p1
[root@storageqe-65]#
the raid1 include 3 legs and a spare disk, when takeover to raid5 hit a error
please have a look if something was wrong here
6.11.0-25.el10.x86_64
mdadm-4.3-3.el10.x86_64
libblockdev-3.1.0-8.el10.x86_64