To write Ansible script to setup DRBD device and file systems, I face the following issue:
# blockdev --report /dev/drbd0
RO RA SSZ BSZ StartSec Size Device
blockdev: cannot open /dev/drbd0: Wrong medium type
I would have expected DRBD device to implement block device operations like any md device.
I run a Debian Linux Jessie/stable with package
drbd-utils 8.9.2~rc1-2+deb8 amd64 RAID 1 over TCP/IP for Linux (user utilities)
Is there any way to get usable device size ?