RE: Need Help

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

 



Hi,


Is this the script you are talking about?

[root@x rc3.d]# more S13multipathd
#!/bin/bash
#
#       /etc/rc.d/init.d/multipathd
#
# Starts the multipath daemon
#
# chkconfig: - 13 87
# description: Manage device-mapper multipath devices
# processname: multipathd

DAEMON=/sbin/multipathd
prog=`basename $DAEMON`
initdir=/etc/rc.d/init.d
lockdir=/var/lock/subsys
sysconfig=/etc/sysconfig


system=redhat

if [ $system = redhat ]; then
        # Source function library.
        . $initdir/functions
fi

test -r $sysconfig/$prog && . $sysconfig/$prog

RETVAL=0

#
# See how we were called.
#

start() {
        test -x $DAEMON || exit 5
        echo -n $"Starting $prog daemon: "
        daemon $DAEMON
        RETVAL=$?
        [ $RETVAL -eq 0 ] && touch $lockdir/$prog
        echo
}

stop() {
        echo -n $"Stopping $prog daemon: "
        killproc $DAEMON
        RETVAL=$?
        [ $RETVAL -eq 0 ] && rm -f $lockdir/$prog
        echo
}

restart() {
        stop
        start
}

reload() {
        echo -n "Reloading $prog: "
        trap "" SIGHUP
        killproc $DAEMON -HUP
        RETVAL=$?
        echo
}

case "$1" in
start)
        start
        ;;
stop)
        stop
        ;;
reload)
        reload
        ;;
restart)
        restart
        ;;
condrestart)
        if [ -f $lockdir/$prog ]; then
            restart
        fi
        ;;
status)
        status $prog
        RETVAL=$?
        ;;
*)
        echo $"Usage: $0 {start|stop|status|restart|condrestart|reload}"
        RETVAL=3
esac

exit $RETVAL

-----Original Message-----
From: dm-devel-bounces@xxxxxxxxxx [mailto:dm-devel-bounces@xxxxxxxxxx]
On Behalf Of malahal@xxxxxxxxxx
Sent: Thursday, January 17, 2008 2:14 PM
To: dm-devel@xxxxxxxxxx
Subject: Re:  Need Help

Chandra Seetharaman [sekharan@xxxxxxxxxx] wrote:
> On Thu, 2008-01-17 at 12:40 -0600, Nath, Varun wrote:
> > I used the /dev/mapper/mpath# also in the fstab but that did not
help.
> 
> That is odd.
> 
> When the system boots up completely, do you see the multipath devices,
> or you explicitly run the multipath command to make the multipath
> devices show up ?

RHEL doesn't require anything other than the mere presence of
/etc/mulipath.conf to configure multipath devices. BUT there was a bug
where it was not able to properly use the /etc/multipath.conf file at
boot time when the file system (/var) is mounted read-only. So you get
device names based SCSI WWN. There is an init script that essentially
runs multipathd that renames the 'SCSI WWN' names to user friendly
names (apart from doing the job of path health check).

Make sure you start the multipath[d] rc script.

-Malahal.

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel





--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux