Bug#403299: root on LVM on RAID

martin f krafft madduck at debian.org
Sat Jan 6 23:01:32 CET 2007


also sprach Daniel Dent <ddent at ddent.net> [2006.12.16.1217 +0100]:
> On Sat, 16 Dec 2006, Frans Pop wrote:
> >I have some doubts about that. / on LVM on RAID is known to work
> >correctly. Are you sure that the RAID had been fully synced before you
> >shut down? It seems to me the most likely cause of it being dirty was
> >that the drives had not yet had a chance to complete their initial sync.
> 
> I'm quite certain it had time to fully sync.  Furthermore,
> by putting a sleep into the script that remounts root RO I
> was able to see it say that it hadn't shutdown the volume
> group because the volume group was in use.  I also added
> some mdadm commands to have it shutdown the raid and those
> would refuse to do it because it was still in use.

Has this question been answered by the FAQ?

8. (One of) my RAID arrays is busy and cannot be stopped. What gives?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  It is perfectly normal for mdadm to report the array with the root
  filesystem to be busy on shutdown. The reason for this is that the root
  filesystem must be mounted to be able to stop the array (or otherwise
  /sbin/mdadm does not exist), but to stop the array, the root filesystem
  cannot be mounted. Catch 22. The kernel actually stops the array just before
  halting, so it's all well.

  If mdadm cannot stop other arrays on your system, check that these arrays
  aren't used anymore. Common causes for busy/locked arrays are:

    * The array contains a mounted filesystem (check the `mount' output)
    * The array is used as a swap backend (check /proc/swaps)
    * The array is used by the device-mapper (check with `dmsetup')
      * LVM
      * dm-crypt
      * EVMS
    * The array is used by a process (check with `lsof')
  
If yes, please close the bug, or retitle it appropriately and
restate the exact problem if it has not.

-- 
 .''`.   martin f. krafft <madduck at debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url : http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20070106/d571a22c/attachment.pgp


More information about the pkg-mdadm-devel mailing list