Re: Can't get md array to shut down cleanly

2006-07-10 Thread Christian Pernegger
Nope, EVMS is not the culprit. I installed the test system from scratch, EVMS nowhere in sight -- it now boots successfully from a partitionable md array, courtesty of a yaird-generated initrd I adapted for the purpose. Yay! Or not. I get the md: md_d0 still in use. error again :( This is with

Re: Can't get md array to shut down cleanly

2006-07-07 Thread Neil Brown
On Friday July 7, [EMAIL PROTECTED] wrote: How are you shutting down the machine? If something sending SIGKILL to all processes? First SIGTERM, then SIGKILL, yes. That really should cause the array to be clean. Once the md thread gets SIGKILL (it ignores SIGTERM) it will mark the array

Re: Can't get md array to shut down cleanly

2006-07-07 Thread Christian Pernegger
Good morning! That patch was against latest -mm For earlier kernels you want to test 'ro'. Ok. Was using stock 2.6.17. Done unmounting local file systems. *md: md0 stopped *md: unbind sdf *md: export_rdevsdf *[last two lines for each disk.] *Stopping RAID arrays ... done (1

Re: Can't get md array to shut down cleanly

2006-07-07 Thread Christian Pernegger
It seems like it really isn't an md issue -- when I remove everything to do with evms (userspace tools + initrd hooks) everything works fine. I took your patch back out and put a few printks in there ... Without evms the active counter is 1 in an idle state, i. e. after the box has finished

Can't get md array to shut down cleanly

2006-07-06 Thread Christian Pernegger
Still more problems ... :( My md raid5 still does not always shut down cleanly. The last few lines of the shutdown sequence are always as follows: [...] Will now halt. md: stopping all md devices. md: md0 still in use. Synchronizing SCSI cache for disk /dev/sdd: Synchronizing SCSI cache for

Re: Can't get md array to shut down cleanly

2006-07-06 Thread Niccolo Rigacci
My md raid5 still does not always shut down cleanly. The last few lines of the shutdown sequence are always as follows: [...] Will now halt. md: stopping all md devices. md: md0 still in use. Synchronizing SCSI cache for disk /dev/sdd: Synchronizing SCSI cache for disk /dev/sdc:

Re: Can't get md array to shut down cleanly

2006-07-06 Thread Christian Pernegger
May be your shutdown script is doing halt -h? Halting the disk immediately without letting the RAID to settle to a clean state can be the cause? I'm using Debian as well and my halt script has the fragment you posted. Besides, shouldn't the array be marked clean at this point: md: stopping

Re: Can't get md array to shut down cleanly

2006-07-06 Thread thunder7
From: Christian Pernegger [EMAIL PROTECTED] Date: Thu, Jul 06, 2006 at 07:18:06PM +0200 May be your shutdown script is doing halt -h? Halting the disk immediately without letting the RAID to settle to a clean state can be the cause? I'm using Debian as well and my halt script has the

Re: Can't get md array to shut down cleanly

2006-07-06 Thread Christian Pernegger
I get these messages too on Debian Unstable, but since enabling the bitmaps on my devices, resyncing is so fast that I don't even notice it on booting. Bitmaps are great, but the speed of the rebuild is not the problem. The box doesn't have hotswap bays, so I have to shut it down to replace a

Re: Can't get md array to shut down cleanly

2006-07-06 Thread Neil Brown
On Thursday July 6, [EMAIL PROTECTED] wrote: Still more problems ... :( My md raid5 still does not always shut down cleanly. The last few lines of the shutdown sequence are always as follows: [...] Will now halt. md: stopping all md devices. md: md0 still in use. Synchronizing SCSI

Re: Can't get md array to shut down cleanly

2006-07-06 Thread Christian Pernegger
How are you shutting down the machine? If something sending SIGKILL to all processes? First SIGTERM, then SIGKILL, yes. You could try the following patch. I think it should be safe. Hmm, it said chunk failed, so I replaced the line by hand. That didn't want to compile because mode