#801315 device-mapper: reload ioctl on (251:3) failed: Invalid argument

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Michal Suchanek
Date:
2015-10-08 14:57:06 UTC
Severity:
normal
#801315#5
Date:
2015-10-08 14:55:28 UTC
From:
To:
Hello,

after trying to mirror my lvm volume it becomes inaccessible with the
error device-mapper: reload ioctl on (251:3) failed: Invalid argument

Examining the stored configurations I restored the most reasonably
looking one but the error persists.

IMHO lvm2 should either report an intelligible error or supply valid arguments
to IOCTLs. As in this ShouldNotHappen(tm).

Thanks

Michal

# lvchange -v -v -ay scratchg/build
      Setting activation/monitoring to 1
      Setting global/locking_type to 1
      Setting global/wait_for_locks to 1
      File-based locking selected.
      Setting global/prioritise_write_locks to 1
      Setting global/locking_dir to /run/lock/lvm
      Setting global/use_lvmlockd to 0
    Using logical volume(s) on command line.
      Locking /run/lock/lvm/V_scratchg RB
      Setting response to OK
      Setting response to OK
      Setting name to scratchg
      Setting metadata/format to lvm2
      Setting id to NCqDJK-LdD1-WFg0-ygJt-fQn6-L5sS-dekEX3
      Setting format to lvm2
      Setting device to 2144
      Setting dev_size to 1953525168
      Setting label_sector to 1
      Setting size to 1044480
      Setting start to 4096
      Setting ignore to 0
      Setting response to OK
      Setting response to OK
      Adding scratchg/build to the list of LVs to be processed.
      Processing LV build in VG scratchg.
    Activating logical volume "build".
      Locking /run/lock/lvm/A_JsXCdjvRu0FIy6Za11Gv8qiCNUAmdZ1cjwibtF1hPITaoVaidRizBVVAkgp18OC WB
      Locking LV 7JsXCdjvRu0FIy6Za11Gv8qiCNUAmdZ1cjwibtF1hPITaoVaidRizBVVAkgp18OC (R)
    activation/volume_list configuration setting not defined: Checking only host tags for scratchg/build
      /dev/sdg: read_ahead is 256 sectors
      Locking memory
      Setting activation/use_mlockall to 0
      Setting activation/verify_udev_operations to 0
      Getting driver version
      Getting target version for linear
      Found linear target v1.2.1.
      Getting target version for striped
      Found striped target v1.5.1.
    Creating scratchg-build
    Loading scratchg-build table (251:3)
  device-mapper: reload ioctl on (251:3) failed: Invalid argument
    Removing scratchg-build (251:3)
      Unlocking /run/lock/lvm/A_JsXCdjvRu0FIy6Za11Gv8qiCNUAmdZ1cjwibtF1hPITaoVaidRizBVVAkgp18OC
      Unlocking memory
      Unlocking /run/lock/lvm/V_scratchg