Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

aoe block device remains after torusblk process finished #389

Open
nak3 opened this issue Nov 9, 2016 · 0 comments · May be fixed by #412
Open

aoe block device remains after torusblk process finished #389

nak3 opened this issue Nov 9, 2016 · 0 comments · May be fixed by #412

Comments

@nak3
Copy link
Contributor

nak3 commented Nov 9, 2016

version

a9c6bc1 (+ aoe readystatus issue fix)

issue

  • torusblk aoe <VOL_NAME> lo 1 1 creates block device under /dev/etherd/e.1.1. The torusblk process finished, the device still remains and fdisk -l hang.
  • And also, shutdown process would be hung.

steps to reproduce

1. Run torusblk aoe and finished the process.

$ torusblk aoe <VOL_NAME> lo 1 1

.. Ctrl+C ..

2 Confirm under blcok device e1.1 under /dev/etherd

# cd /dev/etherd
# ls
discover  e1.1  err  flush  interfaces  revalidate

3. Run fdisk

# fdisk -l
Disk /dev/vda: 41 GiB, 44023414784 bytes, 85983232 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x38df41da

...

Disk /dev/mapper/docker-252:1-1572957-pool: 100 GiB, 107374182400 bytes, 209715200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes

  -- It hang here --

additional info

aoe-flush from aoe-tools can solve the hunging.

# cd /dev/etherd/
# aoe-flush e1.1

Torus should clean up the block device when the torusblk process finished. Or provide the tool like aoe-flush.

@nak3 nak3 linked a pull request Nov 30, 2016 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant