After solving the above error, by correcting a typo in /etc/drbd.d/global_common.conf:
--- snip ----
root@web02:/etc/drbd.d# mkfs -t ext4 /dev/drbd0
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Wrong medium type while trying to determine filesystem size
--- snap ----
After solving the above error, by correcting a typo in /etc/drbd. d/global_ common. conf: /etc/drbd. d# mkfs -t ext4 /dev/drbd0
--- snip ----
root@web02:
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Wrong medium type while trying to determine filesystem size
--- snap ----