[DRBD-user] BLKFLSBUF: Inappropriate ioctl for device (when executing blockdev --flushbufs)

Lars Ellenberg Lars.Ellenberg at linbit.com
Wed Sep 27 17:19:08 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

/ 2006-09-27 16:56:33 +0200
\ Werner Fischer:
> Hi,
> I tried to execute the the commands contained in /etc/ha.d/haresources
> manually one by one, an discovered that executing
> "/etc/ha.d/resource.d/Filesystem /dev/drbd0 /vz ext3 start" for example
> gives the following output: "BLKFLSBUF: Inappropriate ioctl for device"
> The Filesystem script comes with Heartbeat, the command within the
> Filesystem script which actually leads to this output is
> "/sbin/blockdev --flushbufs /dev/drbd0"
> Do I get this output because DRBD itself has no buffers like a normal
> hard disk has?
> Would it make sense that DRBD itself forwards such a command to flush
> the buffers to DRBD's lower devices (on node1 and node2) - so that the
> lower devices flushes the buffer?

I just did 
# blockdev --flushbufs /dev/drbd0
# echo $?

on our file server here.
so it _does_ "just work".

what is your kernel?
which drbd version?

: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :
please use the "List-Reply" function of your email client.

More information about the drbd-user mailing list