Posts Tagged ‘drbd’

Fixing DRBD “Lower device is already claimed”

Friday, July 29th, 2011

In my adventures with DRBD I recently ran across this error that took me a couple days to resolve:

d(data) 1: Failure: (114) Lower device is already claimed. This usually means it is mounted.

[data] cmd /sbin/drbdsetup 1 disk /dev/sdb /dev/sdb internal –set-defaults –create-device –on-io-error=detach –no-disk-barrier –no-disk-flushes  failed – continuing!

I was a bit confused since the filesystem wasn’t mounted anywhere (mount showed only the system volumes) and there weren’t any other programs using the raw disk.

Creating a filesystem also ran into a similar error:

/dev/sdb is apparently in use by the system; will not make a filesystem here

Obviously this is not just a problem with drbd.

(more…)