Last active
March 2, 2026 05:41
-
-
Save robbat2/dcf6d7fbe848f913d8c9937ebf96d19d to your computer and use it in GitHub Desktop.
lvconvert fail to raid1 - region size error; suspect bad expectations re sector size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| killdeer /usr/src # lvconvert --type raid1 vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data | |
| Are you sure you want to convert linear LV vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data to raid1 type? [y/n]: y | |
| device-mapper: reload ioctl on (252:395) failed: Invalid argument | |
| Failed to suspend logical volume vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data. | |
| killdeer /usr/src # dmesg | tail | |
| [ 274.423029] drbd resource7/0 drbd7: helper command: /bin/true after-resync-target minor-7 exit code 0 (0x0) | |
| [ 934.753262] device-mapper: raid: Supplied region_size (1024 sectors) below minimum (4096) | |
| [ 934.753276] device-mapper: table: 252:395: raid: Supplied region size is too small (-EINVAL) | |
| [ 934.753280] device-mapper: ioctl: error adding target to table | |
| # lvs -o +devices -a |grep -v -e aor |grep -i -e c47b2165caec | |
| c6a145db-b517-4907-a66a-c47b2165caec.disk2_data vg -wi-ao---- 4.00t /dev/nvme5n1p5(1053889) | |
| c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rimage_1 vg -wi------- 4.00t /dev/nvme2n1p5(837526) | |
| c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_0 vg -wi------- 4.00m /dev/nvme5n1p5(6) | |
| c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_1 vg -wi------- 4.00m /dev/nvme2n1p5(837525) | |
| c6a145db-b517-4907-a66a-c47b2165caec.disk2_meta vg -wi-ao---- 256.00m /dev/nvme1n1p5(1061601) | |
| # lsscsi | |
| [N:0:0:1] disk INTEL SSDPE2KX080T8__1 /dev/nvme0n1 | |
| [N:1:0:1] disk INTEL SSDPF2NV153TZ__1 /dev/nvme1n1 | |
| [N:2:0:1] disk INTEL SSDPE2KX080T8__1 /dev/nvme2n1 | |
| [N:3:0:1] disk INTEL SSDPE2KX080T8__1 /dev/nvme3n1 | |
| [N:4:0:1] disk KXG60ZNV512G TOSHIBA__1 /dev/nvme4n1 | |
| [N:5:0:1] disk INTEL SSDPF2NV153TZ__1 /dev/nvme5n1 | |
| # pvs | |
| PV VG Fmt Attr PSize PFree | |
| /dev/nvme0n1p5 vg lvm2 a-- 7.24t 2.42t | |
| /dev/nvme1n1p5 vg lvm2 a-- 13.97t 13.90t | |
| /dev/nvme2n1p5 vg lvm2 a-- 7.24t 4.11t | |
| /dev/nvme3n1p5 vg lvm2 a-- 7.24t 4.23t | |
| /dev/nvme4n1p5 lvm2 --- 436.31g 436.31g | |
| /dev/nvme5n1p5 vg lvm2 a-- 13.97t 9.95t | |
| killdeer /usr/src # lvremove vg/{c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_1,c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_0,c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rimage_1} | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_0" successfully removed. | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_1" successfully removed. | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rimage_1" successfully removed. | |
| killdeer /usr/src # pvs | |
| PV VG Fmt Attr PSize PFree | |
| /dev/nvme0n1p5 vg lvm2 a-- 7.24t 2.42t | |
| /dev/nvme1n1p5 vg lvm2 a-- 13.97t 13.90t | |
| /dev/nvme2n1p5 vg lvm2 a-- 7.24t 4.11t | |
| /dev/nvme3n1p5 vg lvm2 a-- 7.24t 4.23t | |
| /dev/nvme4n1p5 lvm2 --- 436.31g 436.31g | |
| /dev/nvme5n1p5 vg lvm2 a-- 13.97t 9.95t | |
| killdeer /usr/src # lvconvert --type raid1 vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data /dev/nvme1n1p5 | |
| Are you sure you want to convert linear LV vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data to raid1 type? [y/n]: y | |
| device-mapper: reload ioctl on (252:395) failed: Invalid argument | |
| Failed to suspend logical volume vg/c6a145db-b517-4907-a66a-c47b2165caec.disk2_data. | |
| killdeer /usr/src # lvremove vg/{c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_1,c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_0,c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rimage_1} | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_0" successfully removed. | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rmeta_1" successfully removed. | |
| Logical volume "c6a145db-b517-4907-a66a-c47b2165caec.disk2_data_rimage_1" successfully removed. | |
| killdeer /usr/src # dmesg | tail | |
| [ 934.753280] device-mapper: ioctl: error adding target to table | |
| [ 1161.967584] device-mapper: raid: Supplied region_size (1024 sectors) below minimum (4096) | |
| [ 1161.967612] device-mapper: table: 252:395: raid: Supplied region size is too small (-EINVAL) | |
| [ 1161.967618] device-mapper: ioctl: error adding target to table | |
| [ 1238.817810] device-mapper: raid: Supplied region_size (1024 sectors) below minimum (4096) | |
| [ 1238.817831] device-mapper: table: 252:395: raid: Supplied region size is too small (-EINVAL) | |
| [ 1238.817837] device-mapper: ioctl: error adding target to table | |
| [ 1368.745151] device-mapper: raid: Supplied region_size (1024 sectors) below minimum (4096) | |
| [ 1368.745169] device-mapper: table: 252:395: raid: Supplied region size is too small (-EINVAL) | |
| [ 1368.745175] device-mapper: ioctl: error adding target to table | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| killdeer /usr/src # uname -r | |
| 6.18.12-gentoo-dist | |
| killdeer /usr/src # emerge -pv lvm2 | |
| [0d48b750cba6ed2c77260eb0a88fc50a] Local copy of remote index is up-to-date and will be used (local: 2026-03-02T05:34:35+00:00, remote: 2026-03-02T05:34:35+00:00). | |
| [binary R ] sys-fs/lvm2-2.03.22-r7-4 USE="lvm readline thin udev -sanlock (-selinux) -static -static-libs -systemd -valgrind" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment