<tt><font size=2>rhelv6-list-bounces@redhat.com schrieb am 27.09.2012
09:55:35:<br>
<br>
> "Roth, Sandro" <Sandro.Roth@zurich-airport.com> </font></tt>
<br><tt><font size=2>> Gesendet von: rhelv6-list-bounces@redhat.com<br>
> </font></tt>
<br><tt><font size=2>> 27.09.2012 09:57</font></tt>
<br><tt><font size=2>> <br>
> Bitte antworten an<br>
> "Red Hat Enterprise Linux 6 \(Santiago\) discussion mailing-list"
<br>
> <rhelv6-list@redhat.com></font></tt>
<br><tt><font size=2>> <br>
> An</font></tt>
<br><tt><font size=2>> <br>
> "Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list"
<br>
> <rhelv6-list@redhat.com></font></tt>
<br><tt><font size=2>> <br>
> Kopie</font></tt>
<br><tt><font size=2>> <br>
> Thema</font></tt>
<br><tt><font size=2>> <br>
> Re: [rhelv6-list] Antwort:  MD devices lost after boot</font></tt>
<br><tt><font size=2>> <br>
> Hi Andreas</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> Thank you for your input.</font></tt>
<br><tt><font size=2>> I’ve thought about this before, creating a simple
init script would <br>
> definitely solve this problem.</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> My opinion is that this should be taken care
of ‘out of the box’, <br>
> especially for paying customers.</font></tt>
<br><tt><font size=2>> Or at least it should be mentioned in the documentation!</font></tt>
<br><tt><font size=2>> I have a support case open for this and will
be waiting for an <br>
> official answer.</font></tt>
<br><tt><font size=2>> Just thought I’d ask the lists maybe someone
has already gone through this..</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> Anyway, I’ll use your script in the meantime,
so thanks!</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> Cheers</font></tt>
<br><tt><font size=2>> Sandro</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> From: rhelv6-list-bounces@redhat.com [</font></tt><a href="mailto:rhelv6-list-bounces@redhat.com"><tt><font size=2>mailto:rhelv6-list-bounces@redhat.com</font></tt></a><tt><font size=2>]
<br>
> On Behalf Of Andreas Reschke<br>
> Sent: Donnerstag, 27. September 2012 09:21<br>
> To: Red Hat Enterprise Linux 6 (Santiago) discussion mailing-list<br>
> Subject: [rhelv6-list] Antwort: MD devices lost after boot</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> rhelv6-list-bounces@redhat.com schrieb am 27.09.2012
09:05:35:<br>
> <br>
> > "Roth, Sandro" <Sandro.Roth@zurich-airport.com>
<br>
> > Gesendet von: rhelv6-list-bounces@redhat.com<br>
> > <br>
> > 27.09.2012 09:09 <br>
> > <br>
> > Bitte antworten an<br>
> > "Red Hat Enterprise Linux 6 \(Santiago\) discussion mailing-list"
<br>
> > <rhelv6-list@redhat.com> <br>
> > <br>
> > An <br>
> > <br>
> > "rhelv6-list@redhat.com" <rhelv6-list@redhat.com>
<br>
> > <br>
> > Kopie <br>
> > <br>
> > Thema <br>
> > <br>
> > [rhelv6-list] MD devices lost after boot <br>
> > <br>
> > Hi experts <br>
> >   <br>
> > I wasn’t sure where to post this so I’m sending it to this
list. <br>
> >   <br>
> > We have a setup which uses lvm over md over multipath devices.
(at <br>
> > least that’s the plan) <br>
> > According to this article it is supported in RHEL6 (it wasn’t
in RHEL5) <br>
> > </font></tt><a href=https://access.redhat.com/knowledge/solutions/48634><tt><font size=2>https://access.redhat.com/knowledge/solutions/48634</font></tt></a><tt><font size=2>
<br>
> >   <br>
> > I created my md device as follows <br>
> > # mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2
/dev/<br>
> > mapper/mpatha /dev/mapper/mpathb <br>
> >   <br>
> > /etc/mdadm.conf has the following content <br>
> > DEVICE /dev/mapper/mpath* <br>
> > ARRAY /dev/md/0 metadata=1.2 UUID=52bd4011:f61badd6:0e63e7bb:<br>
> > 2448596b name=spch9003.zrh.local:0 <br>
> >   <br>
> > Then some lvm stuff on /dev/md0. Everything works fine. <br>
> > But after a reboot the md device won’t get assembled automatically.
<br>
> >   <br>
> > /proc/mdstat shows <br>
> > Personalities : <br>
> > unused devices: <none> <br>
> >   <br>
> > And therefore nothing gets mounted either, obviously. <br>
> > I have to <br>
> >   <br>
> > # mdadm -As <br>
> > mdadm: /dev/md/0 has been started with 2 drives. <br>
> > # vgchange -ay datavg1 <br>
> >   1 logical volume(s) in volume group "datavg1"
now active <br>
> > # mount /data <br>
> >   <br>
> > I’ve done my part of googleing and a lot of people suggest creating
<br>
> > a new initrd when everything is running. <br>
> > So I went… <br>
> >   <br>
> > # dracut –f <br>
> > # init 6 <br>
> >   <br>
> > No change, still won’t get assembled. <br>
> > Any ideas? I’m sure I’m just missing a configuration step..
<br>
> >   <br>
> > # uname -r; rpm -q mdadm <br>
> > 2.6.32-279.5.1.el6.x86_64 <br>
> > mdadm-3.2.3-9.el6.x86_64 <br>
> >   <br>
> >   <br>
> > Any help would be appreciated. <br>
> >   <br>
> >   <br>
> > Regards <br>
> >   <br>
> > <br>
> > Sandro Roth <br>
> > <br>
> > Systems Engineer <br>
> > <br>
> > IT-Operations <br>
> > <br>
> > Flughafen Zürich AG <br>
> > Postfach <br>
> > CH-8058 Zürich-Flughafen <br>
> > <br>
> > </font></tt><a href="www.flughafen-zuerich.ch"><tt><font size=2>www.flughafen-zuerich.ch</font></tt></a><tt><font size=2>
<br>
> > <br>
> >   <br>
> > <br>
> > Tel. <br>
> > <br>
> > +41 (0)43 816 10 58 <br>
> > <br>
> > Mobile <br>
> > <br>
> > +41 (0)76 356 71 19 <br>
> > <br>
> > Fax <br>
> > <br>
> > +41 (0)43 816 76 90 <br>
> > <br>
> >   <br>
> >   <br>
> > <br>
> > This email message and any attachments are confidential and may
be <br>
> > privileged. If you are not the intended recipient, please notify
us <br>
> > immediately and destroy the original transmittal. You are hereby
<br>
> > notified that any review, copying or distribution of it is strictly
<br>
> > prohibited. Thank you for your cooperation.<br>
> > <br>
> > Header information contained in E-mails to and from the company
are <br>
> > monitored for operational reasons in accordance with swiss data
<br>
> > protection act. <br>
> > <br>
> > _______________________________________________<br>
> > rhelv6-list mailing list<br>
> > rhelv6-list@redhat.com<br>
> > </font></tt><a href="https://www.redhat.com/mailman/listinfo/rhelv6-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/rhelv6-list</font></tt></a><tt><font size=2>
<br>
> <br>
> Hi Sandro, <br>
> I was in the same situation, so I create this script: <br>
> <br>
> [root@bgstorals01 ~]# cat /etc/init.d/raid-setup <br>
> #!/bin/bash                
                     
                     
     <br>
> #                    
                     
                     
           <br>
> # chkconfig: 2345 07 86            
                     
                   <br>
> # description: Start the raid0 with mdadm <br>
> # processname: - <br>
> # pidfile: - <br>
> # config: /etc/mdadm.conf <br>
> <br>
> # source function library <br>
> . /etc/init.d/functions <br>
> <br>
> RETVAL=0 <br>
> <br>
> start() { <br>
>         action $"Starting raid arrays via
mdadm: " /sbin/<br>
> mdadm.static --assemble --scan <br>
>         action $"Setting up Logical Volume
Management:" /sbin/<br>
> lvm.static vgchange -a y --ignorelockingfailure <br>
>         for fs in `grep noauto /etc/fstab | awk
'{ print $2; }'` <br>
>         #for fs in `grep noauto /etc/fstab | cut
-d\  -f1` <br>
>         do <br>
>                 action $"Mount
filesystem $fs:" /bin/mount $fs <br>
>         done <br>
>         touch /var/lock/subsys/raid-start <br>
> } <br>
> <br>
> stop() { <br>
>         rm -f /var/lock/subsys/raid-start <br>
> } <br>
> <br>
> case "$1" in <br>
>   start) <br>
>         start <br>
>         ;; <br>
>   stop) <br>
>         stop <br>
>         ;; <br>
>   restart|reload) <br>
>         stop <br>
>         start <br>
>         ;; <br>
>   condrestart) <br>
>         if [ -f /var/lock/subsys/raid-start ];
then <br>
>             stop <br>
>             start <br>
>         fi <br>
>         ;; <br>
>   status) <br>
>         status raid-start <br>
>         RETVAL=$? <br>
>         ;; <br>
>   *) <br>
>         echo $"Usage: $0 {start|stop|restart|condrestart|status}"
<br>
>         exit 1 <br>
> esac <br>
> <br>
> exit $RETVAL <br>
> <br>
> [root@bgstorals01 ~]# <br>
> <br>
> and take this script in the adequate runlevel BEFORE S15mdmonitor
<br>
> and S15mdmpd is starting. <br>
> <br>
> [root@bgstorals01 ~]# ls -l /etc/rc3.d/ | grep raid <br>
> lrwxrwxrwx 1 root root 20 May 30 07:39 S07raid-setup -> ../init.d/raid-setup
<br>
> [root@bgstorals01 ~]# ls -l /etc/rc5.d/ | grep raid <br>
> lrwxrwxrwx 1 root root 20 May 30 07:39 S07raid-setup -> ../init.d/raid-setup
<br>
> [root@bgstorals01 ~]# <br>
>   <br>
> <br>
> Mit freundlichen Grüßen<br>
> Andreas Reschke<br>
> ________________________________________________________________<br>
> <br>
> Unix/Linux-Administration<br>
> Andreas.Reschke@behrgroup.com </font></tt>
<br><tt><font size=2>> <br>
> This email message and any attachments are confidential and may be
<br>
> privileged. If you are not the intended recipient, please notify us
<br>
> immediately and destroy the original transmittal. You are hereby <br>
> notified that any review, copying or distribution of it is strictly
<br>
> prohibited. Thank you for your cooperation.<br>
> <br>
> Header information contained in E-mails to and from the company are
<br>
> monitored for operational reasons in accordance with swiss data <br>
> protection act.</font></tt>
<br><tt><font size=2>> <br>
> _______________________________________________<br>
> rhelv6-list mailing list<br>
> rhelv6-list@redhat.com<br>
> </font></tt><a href="https://www.redhat.com/mailman/listinfo/rhelv6-list"><tt><font size=2>https://www.redhat.com/mailman/listinfo/rhelv6-list</font></tt></a>
<br>
<br>
<br><font size=2 face="sans-serif">Hi Sandro,</font>
<br><font size=2 face="sans-serif">  </font>
<br><font size=2 face="sans-serif">I wish there were a </font><tt><font size=2>‘out
of the box’</font></tt><font size=2 face="sans-serif"> resolution. I don't
have this problem on my SuSE-system.</font>
<br><font size=2 face="sans-serif">Please send me a notice when you have
a answer from your support case.<br>
 <br>
Mit freundlichen Grüßen<br>
Andreas Reschke<br>
________________________________________________________________<br>
<br>
Unix/Linux-Administration<br>
Andreas.Reschke@behrgroup.com</font>