Skip to contentSkip to conversation

Write barrier support with LVM2/md

DISCUSSION Martin Lucina 2 participants 2 messages Sep 22, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

Having recently upgraded several systems to Linux 2.6.16/2.6.18 I learnt about the issues with modern drives and write caching. Thanks for the excellent FAQ entry on this.

Unfortunately it seems that write barriers do not work when using XFS on top of LVM2 (device-mapper).

Trying an explicit mount with -o barrier gives:

Filesystem "dm-4": Disabling barriers, not supported by the underlying device

Is anyone working on a fix for this? It might be a good idea to add to the FAQ that write barriers are not supported on dm devices.

-mato

#1 lore raw
Quoted 2 lines · Martin Lucina

Is anyone working on a fix for this? It might be a good idea to add to the FAQ that write barriers are not supported on dm devices.

it's not really an XFS issue, it's that the md/dm/lvm layers don't support write barriers (and it would in many cases be hard to support without killing performance).