Cleanly rebooting/halting an ENBD machine (RAID, LVM, cryptoloop, etcetera)

Bas van Schaik <[email protected]> Mon, 03 Jul 2006 21:06:32 +0200
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
Hi,

I'm just wondering if you guys have consistency problems when rebooting
or halting an ENBD client. Currently, my configuration is as following:

enbd devices > RAID5 > LVM > cryptoloop > reiserfs

When halting or rebooting, services are stopped in default (Debian?) order:
1) enbd
2) LVM
3) RAID

So, enbd is stopped before RAID has had a chance to stop the array
cleanly. Correct me if I'm wrong, but I think this can cause consistency
problems when the device is under high load, resulting in an out-of-sync
RAID-array. Do you guys have any ideas on this?

-- Bas