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

Werner Fischer werner.fischer at fh-hagenberg.at
Fri Sep 29 09:29:59 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.


On Thu, 2006-09-28 at 18:47 +0200, Lars Ellenberg wrote:
> you came from the heartbeat Filesystem resource script.
> I'll cite it:
> 
> #
> #	Make sure the kernel does the right thing with the FS buffers
> #	This function should be called after unmounting and before mounting
> #	It may not be necessary in 2.4 and later kernels, but it shouldn't hurt
> #	anything either...
> #
> #	It's really a bug that you have to do this at all...
> #
> flushbufs() {
> ...
Thanks for pointing this out. I read all the comments at the top of the
Filesystem script, but unfortunately overlooked this important note just
above the flushbufs() function.

> so, since in kernels more recent than stone-age mount/umount does the
> vfs-sync, it is ok to not do this explicitly in that resource script.
Thanks very much for your help!

have a nice weekend,
greetings,
Werner




More information about the drbd-user mailing list