Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • C cryptsetup
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • cryptsetupcryptsetup
  • cryptsetup
  • Issues
  • #315
Closed
Open
Issue created Jan 18, 2017 by Celmor@Celmor

Cannot close after partprobe (Device or resource busy)

**Error: **

# cryptsetup luksClose test
device-mapper: remove ioctl on test failed: Device or resource busy
...
Device test is still in use.

(... -> first line of output repeated 25 times)

Steps to re-produce: reproduce-cryptsetup-partprobe-busy.sh or https://pastebin.com/raw/hCL5FGjm

Attempted solution (for above example):

# delpart /dev/mapper/test 1
delpart /dev/mapper/test 1 delpart: failed to remove partition: No such device or address

**Working solution (for above example): **

# dmsetup remove test1
# cryptsetup luksClose test

Version information:

# uname -a
Linux Celmor-PC 4.8.14-1-MANJARO #1 SMP PREEMPT Sat Dec 10 23:58:26 UTC 2016 x86_64 GNU/Linux
# cryptsetup --version
cryptsetup 1.7.3
# dmsetup --version
Library version:   1.02.137 (2016-11-30)
Driver version:    4.35.0
# pacman -Q cryptsetup device-mapper libgcrypt
cryptsetup 1.7.3-1
device-mapper 2.02.168-1
libgcrypt 1.7.3-1
Assignee
Assign to
Time tracking