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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" supposedly wasn't defined ... was that
supposed to be "mddev->safemode"? Closest thing to a mode I could find
...

Anyway, this is much better: (lines with * are new)

Done unmounting local file systems.
*md: md0 stopped
*md: unbind <sdf>
*md: export_rdev<sdf>
*[last two lines for each disk.]
*Stopping RAID arrays ... done (1 array(s) stopped).
Mounting root filesystem read-only ... done
Will now halt.
md: stopping all md devices
* md: md0 switched to read-only mode
Synchronizing SCSI cache for disk /dev/sdf:
[...]

As you can see the error message is gone now. Much more interesting
are the lines before the "Will now halt." line. Those were not there
before -- apparently this first attempt by whatever to shutdown the
array failed silently.

Not sure if this actually fixes the resync problem (I sure hope so,
after the last of these no fs could be found anymore on the device)
but it's 5 past 3 already, will try tomorrow.

Thanks,

C.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux