[dm-devel] dmsetup create linear with 4 devices not possible?
Zdenek Kabelac
zkabelac at redhat.com
Mon Aug 20 12:58:33 UTC 2018
Dne 20.8.2018 v 11:06 Sverd Johnsen napsal(a):
> [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.
>
And have you tried:
cat test.table | dmsetup create test
Zdenek
More information about the dm-devel
mailing list