On Thu, Feb 12, 2009 at 15:18, Vit Pelcak <vpel...@suse.cz> wrote: > Hi people. > > I'd like to ask you for help with some problem. > > I have to test scsi_reservation in pacemaker. > > Currently, I have two operating systems in vmware + 2 shared disks set > with scsi_reservation. On each shared disk there is lvm with ext3. Those > are /dev/datab/datab and /dev/datac/datac. > > For configuration I got this xml from colleague: > <resources> > <primitive class="ocf" id="primitive-scsires" provider="heartbeat" > type="scsi2reservation"> > <meta_attributes > id="primitive-scsires-meta_attributes">
> <nvpair id="nvpair-e6001b42-2803-42b8-98ef-ab00d71a9495" > name="target-role" value="Stopped"/> well thats not a good idea, this prevents the resource from being started > > </meta_attributes> > > <operations > id="primitive-scsires-operations"> > > <op id="primitive-scsires-op-monitor-20" interval="20" > name="monitor" timeout="20"/> > > </operations> > > <instance_attributes > id="primitive-scsires-instance_attributes"> > <nvpair id="nvpair-f67b325b-9114-40cc-8a12-b3eaeed9291e" > name="scsi_reserve" value="/usr/sbin/scsi_reserve"/> > <nvpair id="nvpair-9aa6969b-e28a-4b51-a827-6831344f2fe3" > name="sharedisk" value="/dev/datab/datab"/> > <nvpair id="nvpair-e88e742a-7099-4eab-a03c-e18b6f4d14b5" > name="start_loop" value="10"/> > > </instance_attributes> > > > </primitive> > > </resources> > > If I understand it well, this should set one resource /dev/datab. But > how can I add datac resource as depending? You need to define another resource (presumably with sharedisk=/dev/datab/datac) and depending on what type of dependancy you're talking about, create an ordering or colocation constraint between the two. > I simply need to test scsi reservation, and I got advised that this is > the way. > > If you find (most probably) this description insufficient, feel free to > ask for further info. You might actually be better off asking on the heartbeat list since the resource you're asking about comes from that project. > > Thank you for help. > > Regards > Vit Pelcak > > > _______________________________________________ > Pacemaker mailing list > Pacemaker@oss.clusterlabs.org > http://oss.clusterlabs.org/mailman/listinfo/pacemaker > _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker