[dm-devel] dmsetup create linear with 4 devices not possible?
Sverd Johnsen
sverd.johnsen at googlemail.com
Mon Aug 20 09:06:08 UTC 2018
[40309.478954] device-mapper: table: 254:15: linear: Invalid argument count
root at bar /tmp # vgchange -ay looptest
Logging initialised at Mon Aug 20 11:00:05 2018
Activating logical volume looptest/testing.
activation/volume_list configuration setting not defined: Checking
only host tags for looptest/testing.
Creating looptest-testing
Loading table for looptest-testing (254:15).
Resuming looptest-testing (254:15).
Activated 1 logical volumes in volume group looptest
1 logical volume(s) in volume group "looptest" now active
root at bar /tmp # dmsetup table /dev/mapper/looptest-testing
0 2088960 linear 7:0 2048
2088960 2088960 linear 7:1 2048
4177920 2088960 linear 7:2 2048
6266880 2088960 linear 7:3 2048
root at bar /tmp # dmsetup table /dev/mapper/looptest-testing > test.table
root at bar /tmp # vgchange -an looptest
Logging initialised at Mon Aug 20 11:00:18 2018
Deactivating logical volume looptest/testing.
Removing looptest-testing (254:15)
Deactivated 1 logical volumes in volume group looptest
0 logical volume(s) in volume group "looptest" now active
root at bar /tmp # dmsetup create test --table test.table
Invalid format on line 1 of table .
Command failed.
root at bar /tmp # dmsetup create test --table "$(cat test.table)"
device-mapper: reload ioctl on test failed: Invalid argument
Command failed.
root at bar /tmp # dmesg | tac | head -n2
[40309.478958] device-mapper: ioctl: error adding target to table
[40309.478954] device-mapper: table: 254:15: linear: Invalid argument count
root at bar /tmp # cat test.table
0 2088960 linear 7:0 2048
2088960 2088960 linear 7:1 2048
4177920 2088960 linear 7:2 2048
6266880 2088960 linear 7:3 2048
More information about the dm-devel
mailing list