Hi, does anyone know the answer to my question below? Haven't heard back since I posted it... Thanks! -Jiho --- Jiho Hahm <jhahm@xxxxxxxxx> wrote: > Date: Tue, 15 Feb 2005 16:22:44 -0800 (PST) > From: Jiho Hahm <jhahm@xxxxxxxxx> > To: linux-cluster@xxxxxxxxxx > Subject: [Linux-cluster] Specifying start/stop order of > resources in a > <resourcegroup> > > Hi, > > I'm having some trouble with configuring start/stop order > of resources in a resource group. When I specify start > and > stop level values in resource elements, they are ignored. > > Resources are always started and stopped according to the > type-specific level specified in > cluster/rgmanager/src/resources/resourcegroup.sh (or > /usr/share/cluster/resourcegroup.sh). > > What I basically want to do during startup of an RG is > mount a couple of ext3 filesystems in a certain order, > run > a custom application, and finally bring up an IP address. > > During shutdown I want to do exactly the opposite: bring > down IP address, stop application, and unmount volumes in > reverse order. > > Here's what I have in cluster.conf: > > <cluster ...> > <...> > <rm> > <failoverdomains>...</failoverdomains> > <resources/> > <resourcegroup name="rg1" domain="fd1"> > <fs name="foo" fstype="ext3" > device="/dev/sdb1" mountpoint="/foo" > start="1" stop="4"/> > <fs name="foobar" fstype="ext3" > device="/dev/sdb2" mountpoint="/foo/bar" > start="2" stop="3"/> > <script name="myapp" file="..." > start="3" stop="2"/> > <ip address="..." monitor_link="yes" > start="4" stop="1"/> > </resourcegroup> > </rm> > </cluster> > > The intention is to start the resource top-down, and stop > them bottom-up. Notice the foobar volume mounts as > subdirectory of foo volume. foo must be mounted first, > and > unmounted last. > > But the actual start order with the above configuration > turns out to be fs-foo, fs-foobar, ip and script. The > order was determined by type-specific default start level > in resourcegroups.sh (fs=2, ip=3, script=5), and then top > to bottom. > > The stop sequence was apparently the same as start > sequence. When I ran "clusvcadm -s rg1" to stop the > resource group, the first thing tried was unmounting foo, > which failed because foobar wasn't unmounted first. ip > or > script was not tried before fs, which leads me to guess > stop sequence is determined by default _start_ level > rather > than stop level. > > Judging by the stop behavior I think there is a bug > somewhere. But did I specify start/stop levels in my > cluster.conf incorrectly? > > Regards, > > -Jiho > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 250MB free storage. Do more. Manage less. > http://info.mail.yahoo.com/mail_250 > > -- > > Linux-cluster@xxxxxxxxxx > http://www.redhat.com/mailman/listinfo/linux-cluster > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com