linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Ellison <raennnn@adelphia.net>
To: linux-raid@vger.kernel.org
Subject: Re: Debian Sarge mdadm raid 10 assembling at boot problem
Date: Wed, 05 Jan 2005 14:15:49 -0500	[thread overview]
Message-ID: <1104952549.929.68.camel@rae.home> (raw)
In-Reply-To: <41DBEE70.3080505@tls.msk.ru>

On Wed, 2005-01-05 at 08:41, Michael Tokarev wrote:
> [Please don't start new thread by replying to another message.]
> 
> Roger Ellison wrote:
> > I've been having an enjoyable time tinkering with software raid with
> > Sarge and the RC2 installer.  The system boots fine with Raid 1 for
> > /boot and Raid 5 for /.  I decided to experiment with Raid 10 for /opt
> > since there's nothing there to destroy :).  Using mdadm to create a Raid
> > 0 array from two Raid 1 arrays was simple enough, but getting the Raid
> 
> Note there's special raid10 module in recent kernels (and supported by
> recent mdadm).  I don't think it's very stable yet, but.. JFYI ;)

I didn't see Raid 10 mentioned in the mdadm man page.  Do you have the
command line syntax handy?  I don't have access to the machine now, but
I believe it's mdadm version 1.7 (from August '04).
> 
> > 10 array activated at boot isn't working well.  I used update-rc.d to
> > add the symlinks to mdadm-raid using the defaults, but the Raid 10 array
> 
> Shouldn't the links be made automatically when installing mdadm?
> Also, make sure you're using recent debian package of mdadm --
> earlier versions was.. with issues concerning assembling the
> arrays (a problem specific to debian mdadm-raid scripts).
> Make sure AUTOSTART is set to true in /etc/default/mdadm
> (I'm not sure if that's really `AUTOSTART' and `true',
> you can look at the file and/or use dpkg-reconfigure mdadm
> to set that).
> 
The symlinks on Sarge installation were:
	rc0.d -->  S50mdadm-raid
	rc6.d -->  S50mdadm-raid	
	rcS.d -->  S25mdadm-raid
I removed them before running 'update-rc.d'.
> > isn't assembled at boot time.  After getting kicked to a root shell, if
> > I check /proc/mdstat only md1 (/) is started.  After running mdadm-raid
> > start, md0 (/boot), md2, and md3 start.  If I run mdadm-raid start again
> > md4 (/opt) starts.  Fsck'ing the newly assembled arrays before
> > successfully issuing 'mount -a' shows no filesystem errors.  I'm at a
> > loss and haven't found any similar issue mentions on this list or the
> > debian-users list.  Here's mdadm.conf:
> 
> You have two problems.
> First of all, mdadm-raid should be started at very early in the
> boot process, and mdadm package post-install scripts ensures this
> (you added mdadm-raid links at default order which is 20; but
> it should run before filesystem mounts etc, nearly 01 or something).
> Ditto for stop scripts -- at the very end, after umounting the
> filesystems.  Take a look at /var/lib/dpkg/info/mdadm.postinst --
> it sets up the links properly.  When you correct this, your system
> will go further in boot process... ;)
> 
> And second problem is the order of lines in mdadm.conf.
> 
> [edited a bit]
> > DEVICE partitions
> > DEVICE /dev/md*
> > ARRAY /dev/md4 level=raid0 num-devices=2  devices=/dev/md2,/dev/md3
> > ARRAY /dev/md3 level=raid1 num-devices=2  devices=/dev/sdb5,/dev/sde5
> > ARRAY /dev/md2 level=raid1 num-devices=2  devices=/dev/sda5,/dev/sdc5
> 
> Re-order the lines so that md4 will be listed AFTER all it's
> components.  Mdadm tries to assemble them in turn as they're
> listed in mdadm.conf. But at the time when it tries to start
> md4, it's components aren't here yet so it fails.
> 
Reordering the ARRAY entries has no effect.  'mdadm-raid start' has to
be run twice, same as before.  Changing the start symlinks from '20' to
'13' (just after syslogd) doesn't help. (sigh).  
> HTH.
> 
> /mjt
> -
Roger


  parent reply	other threads:[~2005-01-05 19:15 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-30  0:31 PROBLEM: Kernel 2.6.10 crashing repeatedly and hard Georg C. F. Greve
2004-12-30 16:23 ` Georg C. F. Greve
2004-12-30 17:39   ` Peter T. Breuer
2004-12-30 17:53     ` Sandro Dentella
2004-12-30 18:31       ` Peter T. Breuer
2004-12-30 19:50     ` Michael Tokarev
     [not found]       ` <41D45C1F.5030307-XAri/EZa3C4vJsYlp49lxw@public.gmane.org>
2004-12-30 20:54         ` berk walker
2005-01-01 13:39         ` Helge Hafting
2004-12-30 21:39       ` Peter T. Breuer
2005-01-02 19:42         ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Andy Smith
2005-01-02 20:18           ` Peter T. Breuer
2005-01-03  0:30             ` Andy Smith
2005-01-03  6:41               ` Neil Brown
2005-01-03  8:37                 ` Peter T. Breuer
2005-01-03  8:03               ` Peter T. Breuer
2005-01-03  8:58                 ` Guy
2005-01-03 10:18                 ` Partiy error detection - was " Brad Campbell
2005-01-03 12:11                 ` Michael Tokarev
2005-01-03 14:23                   ` Peter T. Breuer
2005-01-03 18:30                     ` maarten
2005-01-03 21:36                     ` Michael Tokarev
2005-01-05  5:50                     ` Debian Sarge mdadm raid 10 assembling at boot problem Roger Ellison
2005-01-05 13:41                       ` Michael Tokarev
2005-01-05 13:57                         ` [help] [I2O] Adaptec 2400A on FC3 Angelo Piraino
2005-01-05 19:15                         ` Roger Ellison [this message]
2005-01-05  9:56           ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Andy Smith
2005-01-05 10:44             ` Alvin Oga
2005-01-05 10:56               ` Brad Campbell
2005-01-05 11:39                 ` Alvin Oga
2005-01-05 12:02                   ` Brad Campbell
2005-01-05 13:23                     ` Alvin Oga
2005-01-05 13:33                       ` Brad Campbell
2005-01-05 14:44                         ` parts -- " Alvin Oga
2005-01-19  4:46                           ` Clemens Schwaighofer
2005-01-19  5:05                             ` Alvin Oga
2005-01-19  5:49                               ` Clemens Schwaighofer
2005-01-19  7:08                                 ` Alvin Oga
2005-01-05 13:36                       ` Swap should be mirrored or not? (was Re: ext3 journal on software raid) Andy Smith
2005-01-05 14:12                 ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Erik Mouw
2005-01-05 14:37                   ` Michael Tokarev
2005-01-05 14:55                     ` errors " Alvin Oga
2005-01-05 17:11                     ` Erik Mouw
2005-01-06  5:41                       ` Brad Campbell
2005-01-05 15:17                 ` Guy
2005-01-05 15:33                   ` Alvin Oga
2005-01-05 16:22                     ` Michael Tokarev
2005-01-05 17:23                       ` Peter T. Breuer
2005-01-05 16:23                     ` Andy Smith
2005-01-05 16:30                       ` Andy Smith
2005-01-05 17:04                       ` swp - " Alvin Oga
2005-01-05 17:26                         ` Andy Smith
2005-01-05 18:32                           ` Alvin Oga
2005-01-05 22:35                             ` Andy Smith
2005-01-06  0:57                               ` Guy
2005-01-06  1:28                                 ` Mike Hardy
2005-01-06  3:32                                   ` Guy
2005-01-06  4:49                                     ` Mike Hardy
2005-01-09 21:07                                       ` Mark Hahn
2005-01-06  5:04                                   ` Alvin Oga
2005-01-06  6:18                                     ` Guy
2005-01-06  6:31                                       ` Alvin Oga
2005-01-06  9:38                                     ` swap on RAID (was Re: swp - Re: ext3 journal on software raid) Andy Smith
2005-01-06 17:46                                       ` Mike Hardy
2005-01-06 22:08                                         ` No swap can be dangerous (was Re: swap on RAID (was Re: swp - Re: ext3 journal on software raid)) Andrew Walrond
2005-01-06 22:34                                           ` Jesper Juhl
2005-01-06 22:57                                             ` Mike Hardy
2005-01-06 23:15                                               ` Guy
2005-01-07  9:28                                                 ` Andrew Walrond
2005-02-28 20:07                                                   ` Guy
2005-01-07  1:31                                       ` confused Re: swap on RAID (was Re: swp - Re: ext3 journal on software raid) Alvin Oga
2005-01-07  2:28                                         ` Andy Smith
2005-01-07 13:04                                           ` Alvin Oga
2005-01-09 21:21                                     ` swp - Re: ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) Mark Hahn
2005-01-09 22:20                                       ` Alvin Oga
2005-01-06  5:01                                 ` Alvin Oga
2005-01-05 17:07                     ` Guy
2005-01-05 17:21                       ` Alvin Oga
2005-01-05 17:32                         ` Guy
2005-01-05 18:37                           ` Alvin Oga
2005-01-05 17:34                         ` ECC: RE: ext3 blah blah blah Gordon Henderson
2005-01-05 18:33                           ` Alvin Oga
2005-01-05 17:26                       ` ext3 journal on software raid (was Re: PROBLEM: Kernel 2.6.10 crashing repeatedly and hard) David Greaves
2005-01-05 18:16                         ` Peter T. Breuer
2005-01-05 18:28                           ` Guy
2005-01-05 18:26                         ` Guy
2005-01-05 15:48                   ` Peter T. Breuer
2005-01-07  6:21     ` PROBLEM: Kernel 2.6.10 crashing repeatedly and hard Clemens Schwaighofer
2005-01-07  9:39       ` Andy Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1104952549.929.68.camel@rae.home \
    --to=raennnn@adelphia.net \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).