linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
@ 2009-12-15 23:58 Ben DJ
  2009-12-16  1:05 ` [SOLVED] " Ben DJ
  0 siblings, 1 reply; 8+ messages in thread
From: Ben DJ @ 2009-12-15 23:58 UTC (permalink / raw)
  To: Linux RAID Mailing List

Hi

I've had my OpenSuse 11.2 box booting from /boot-on-RAID1 +
everything+else-on-RAID10 for awhile now with no issues.

I recently started experimenting with virtualized servers using Xen.

Piecing together a bunch of disjointed advice/instructions, I've set
up a Guest as a server that I want to use as a RAID-ed NAS.  In the
Guest/NAS the NAS's "/", swap & boot are all raw devices passed from
the Xen Host.

For the NAS storage, I have a Passed-through SATA/JBD pci-card that
I've connected external drives to.

I can boot the Guest, see the PCI card, create a RAID-10 array across
those external drives, create & mount LVMs with FSs on them, and
reqd/write ok.  In other words, everything works just as expected.

Except, after rebooting the Guest, the raid array is not started.  I
can re-assemble it, and rescan/mount the vols on it etc, but can't get
the setup to 'stick' across reboot.  :-/

This is what I've stored for auto-assembly,

cat /etc/mdadm
	DEVICE /dev/sd[abcd]1
	ARRAY /dev/md0 metadata=1.01 name=TESTNAS:0 UUID=b23...


and, from the NAS Guest's logs,

cat boot.msg | grep -i raid
<6>[   20.614724] md: raid0 personality registered for level 0
<6>[   20.618933] md: raid1 personality registered for level 1
<4>[   20.711986] raid6: int64x1   2386 MB/s
<4>[   20.779991] raid6: int64x2   3375 MB/s
<4>[   20.847994] raid6: int64x4   2456 MB/s
<4>[   20.915984] raid6: int64x8   2201 MB/s
<4>[   20.983976] raid6: sse2x1    3581 MB/s
<4>[   21.051979] raid6: sse2x2    5624 MB/s
<4>[   21.119978] raid6: sse2x4    6276 MB/s
<4>[   21.120691] raid6: using algorithm sse2x4 (6276 MB/s)
<6>[   21.123798] md: raid6 personality registered for level 6
<6>[   21.124550] md: raid5 personality registered for level 5
<6>[   21.125245] md: raid4 personality registered for level 4
<6>[   21.129319] md: raid10 personality registered for level 10
<notice -- Dec 16 07:34:54.215943000> service boot.device-mapper
done<notice -- Dec 16 07:34:54.216238000> service boot.dmraid
startWaiting for udev to settle...
Activating dmraid...
no raid disks
<notice -- Dec 16 07:34:54.523702000> service boot.dmraid done<notice
-- Dec 16 07:34:54.524007000> service boot.lvm startSetting up
hostname 'TESTNAS'done

I have no idea what I've missed, or even what to look for here.  I
basically followed the same procedures that work flawlessly for me for
my non-virtualized box. :-/  Any suggestions as to what I need to do
to get the RAID-10 recognized/built @ boot of the Xen Guest?  I have a
nagging suspicion that since this RAID array does not contain "/" or
"root" it's not being 'looked for' ... but nothing to back that up,
yet.

Thanks,

BenDJ

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-15 23:58 RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas? Ben DJ
@ 2009-12-16  1:05 ` Ben DJ
  2009-12-16  2:25   ` Guy Watkins
  2009-12-16  9:16   ` Robin Hill
  0 siblings, 2 replies; 8+ messages in thread
From: Ben DJ @ 2009-12-16  1:05 UTC (permalink / raw)
  To: Linux RAID Mailing List

Apparently, when NOT a "/" or "/boot" drive, the RAID arrays need

  chkconfig boot.md on

which, strangely, doesn't show up at all in,

  chkconfig -- list | grep -i boot
    list: unknown service

or,

  man mdadm
  man md

Anyway, array's started on boot now.  Hth someone.

BenDJ

^ permalink raw reply	[flat|nested] 8+ messages in thread

* RE: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16  1:05 ` [SOLVED] " Ben DJ
@ 2009-12-16  2:25   ` Guy Watkins
  2009-12-16  3:36     ` Ben DJ
  2009-12-16  9:16   ` Robin Hill
  1 sibling, 1 reply; 8+ messages in thread
From: Guy Watkins @ 2009-12-16  2:25 UTC (permalink / raw)
  To: 'Ben DJ', 'Linux RAID Mailing List'

My guess is that is specific to your distribution.

One of my systems does not even have chkconfig (Debian).  The other does not
have boot.md (FC10).

} -----Original Message-----
} From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
} owner@vger.kernel.org] On Behalf Of Ben DJ
} Sent: Tuesday, December 15, 2009 8:05 PM
} To: Linux RAID Mailing List
} Subject: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest;
} Works just fine 'manually' ... Any ideas?
} 
} Apparently, when NOT a "/" or "/boot" drive, the RAID arrays need
} 
}   chkconfig boot.md on
} 
} which, strangely, doesn't show up at all in,
} 
}   chkconfig -- list | grep -i boot
}     list: unknown service
} 
} or,
} 
}   man mdadm
}   man md
} 
} Anyway, array's started on boot now.  Hth someone.
} 
} BenDJ
} --
} To unsubscribe from this list: send the line "unsubscribe linux-raid" in
} the body of a message to majordomo@vger.kernel.org
} More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16  2:25   ` Guy Watkins
@ 2009-12-16  3:36     ` Ben DJ
  0 siblings, 0 replies; 8+ messages in thread
From: Ben DJ @ 2009-12-16  3:36 UTC (permalink / raw)
  To: Guy Watkins; +Cc: Linux RAID Mailing List

On Tue, Dec 15, 2009 at 6:25 PM, Guy Watkins
<linux-raid@watkins-home.com> wrote:
> My guess is that is specific to your distribution.
>
> One of my systems does not even have chkconfig (Debian).  The other does not
> have boot.md (FC10).

Good to know.  Not really surprising ... these sort things rarely seem
to be 'standardized', or even well-documented.

Thanks,

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16  1:05 ` [SOLVED] " Ben DJ
  2009-12-16  2:25   ` Guy Watkins
@ 2009-12-16  9:16   ` Robin Hill
  2009-12-16 16:10     ` Ben DJ
  1 sibling, 1 reply; 8+ messages in thread
From: Robin Hill @ 2009-12-16  9:16 UTC (permalink / raw)
  To: Linux RAID Mailing List

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

On Tue Dec 15, 2009 at 05:05:18PM -0800, Ben DJ wrote:

> Apparently, when NOT a "/" or "/boot" drive, the RAID arrays need
> 
>   chkconfig boot.md on
> 
> which, strangely, doesn't show up at all in,
> 
>   chkconfig -- list | grep -i boot
>     list: unknown service
> 
What about if you leave out the space between the dashes and the list
option?

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16  9:16   ` Robin Hill
@ 2009-12-16 16:10     ` Ben DJ
  2009-12-16 16:20       ` Robin Hill
  0 siblings, 1 reply; 8+ messages in thread
From: Ben DJ @ 2009-12-16 16:10 UTC (permalink / raw)
  To: Linux RAID Mailing List; +Cc: robin

>>   chkconfig -- list | grep -i boot
>>     list: unknown service
>>
> What about if you leave out the space between the dashes and the list
> option?

Still not there.

> chkconfig --list | grep -i boot
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16 16:10     ` Ben DJ
@ 2009-12-16 16:20       ` Robin Hill
  2009-12-16 17:30         ` Ben DJ
  0 siblings, 1 reply; 8+ messages in thread
From: Robin Hill @ 2009-12-16 16:20 UTC (permalink / raw)
  To: Linux RAID Mailing List

[-- Attachment #1: Type: text/plain, Size: 770 bytes --]

On Wed Dec 16, 2009 at 08:10:01AM -0800, Ben DJ wrote:

> >>   chkconfig -- list | grep -i boot
> >>     list: unknown service
> >>
> > What about if you leave out the space between the dashes and the list
> > option?
> 
> Still not there.
> 
> > chkconfig --list | grep -i boot
> >
> 
A check of the manual page shows that on openSUSE, the command would be:
    chkconfig --list --allservices | grep -i boot

Boot services are hidden by default, so you need the --allservices (or
-A) switch to show them.

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [SOLVED] RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas?
  2009-12-16 16:20       ` Robin Hill
@ 2009-12-16 17:30         ` Ben DJ
  0 siblings, 0 replies; 8+ messages in thread
From: Ben DJ @ 2009-12-16 17:30 UTC (permalink / raw)
  To: Linux RAID Mailing List

> A check of the manual page shows that on openSUSE, the command would be:
>    chkconfig --list --allservices | grep -i boot
>
> Boot services are hidden by default, so you need the --allservices (or
> -A) switch to show them.

Learned something new, thanks.

"Something" auto-enabled those services -- particularly boot.md -- on
the box on which "/" & "/boot" were installed to RAID.  I'm gonna
guess the installation process itself took care of that.

I've yet to find/notice an opensuse doc that says I need to manually
enable that -- with 20-20 hindsight, makes sense.

All working now, and procedure noted.

Thanks.

BenDJ

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-16 17:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 23:58 RAID-10 array won't auto-assemble @ boot of a Xen Guest; Works just fine 'manually' ... Any ideas? Ben DJ
2009-12-16  1:05 ` [SOLVED] " Ben DJ
2009-12-16  2:25   ` Guy Watkins
2009-12-16  3:36     ` Ben DJ
2009-12-16  9:16   ` Robin Hill
2009-12-16 16:10     ` Ben DJ
2009-12-16 16:20       ` Robin Hill
2009-12-16 17:30         ` Ben DJ

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).