[Linuxtrent] journaling filesystems over RAID

  • From: "Roberto Resoli" <roberto.resoli@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Fri, 15 Dec 2006 09:23:40 +0100

Ciao a tutti.
Sto cercando di approfondire la questione sui problemi derivanti
dall'installazione di un filesystem journaled su un RAID device (sw o
hw, anche se, mi facevano notare ieri, il RAID è SEMPRE sw).
Sono reduce da una settimana di lavoro per recuperare un disastroso
fallimento di ext3 su RAID5 (e chi ha cercato di usare la rete
wireless della biblioteca la scorsa settimana se ne è accorto) e
vorrei evitare di incorrere in simili disastri in futuro, se
possibile.
Il suggerimento universale (ne accennava anche Marco qualche giorno
fa) è interporre  LVM tra il fs con journal e il RAID, cosa che
osserverò religiosamente d'ora in poi, ma vorrei comunque cercare di
capire meglio i motivi di fondo.

Da quello che ho trovato in rete i problemi derivano dal fatto che i
device RAID possono non soddisfare un prerequisito per l'uso dei
filesystem con giornale, cioè la preservazione del cosiddetto "write
ordering".

Ho trovato un paio di link sulla rete, il primo abbastanza
tranquillizzante (anche se parla di RAID implementato a livello di
kernel, che non è il mio caso):
"Software RAID
In the 2.2 kernels, the software RAID code could write pinned buffers
to disk, which breaks the write ordering constraints used to keep
things consistent. Only drive striping and concatenation were
completely safe, and mirroring was safe as long as you did not use the
on-line rebuild code. In the 2.4 kernels, all software RAID levels
should work properly with the journaled file systems."


http://permalink.gmane.org/gmane.linux.kernel/266461
molto più recente e meno tranquillizzante:
"> >Yes, well, don't put the journal on the raid partition. Put it
>elsewhere (anyway, journalling and raid do not mix, as write ordering
>is not - deliberately - preserved in raid, as far as I can tell).

This is a sort of a nonsense, really.  Both claims, it seems.
I can't say for sure whenever write ordering is preserved by
raid -- it should, and if it isn't, it's a bug and should be
fixed.  Nothing else is wrong with placing journal into raid
(the same as the filesystem in question).  Suggesting to remove
journal just isn't fair: the journal is here for a reason."

Chi ha ragione? Qualcuno può indirizzarmi verso qualche sito di approfondimento?

Grazie,
Roberto.
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: