Bug #10096
closedceph-disk prepare fails to unmount temp file successfully
0%
Description
I have been testing on a virtual machine for ease of testing, and 'ceph-disk prepare' kept forwarding an error from 'umount' that the device was busy. The device in question is the temp file created as part of the 'prepare_dev' function in 'ceph-disk'. Checking usage with 'lsof' before issuing 'umount' never reported any holders and also (mysteriously) fixed the error.
It was determined that the likely culprit might be a flushing issue; however, umount flushes buffers if required as part of its process. Underlying cause is still unknown at this time.
Updated by Blaine Gardner over 9 years ago
Notes:
- Issuing a short delay before 'umount' fixes the issue - this is a terrible workaround
- Issuing 'sync' before 'umount' fixes the issue - sync is unnecessary before umount
- Calling 'umount' from 'strace' fixes the issue - I am having trouble getting good debug data out