content_image/981056.jpg
....StopCommandTimeout=10 ....UserName="root" ....ResourceType=0 

Make inotify  a resource on the master node by running the following command in the directory 5. where inotify.def  is created (root authority needed): 

[root@dsm-master init.d]# mkrsrc -f inotify.def IBM.Application 

Make inotify2  a resource on the backup node by running the following command in the directory where inotify.def  is created (root authority needed): 

[root@dsm-master init.d]# mkrsrc -f inotify2.def IBM.Application 

Make a resource group on the master node: 

[root@dsm-master init.d]# mkrg inotifyrg [root@dsm-master init.d]# addrgmbr -g inotifyrg IBM.Application:inotify:dsm-master [root@dsm-master init.d]# chrg -o online inotifyrg [root@dsm-master init.d]# mkrg inotifyrg2 [root@dsm-master init.d]# addrgmbr -g inotifyrg2 IBM.Application:inotify2:dsm-backup [root@dsm-master init.d]# chrg -o online inotifyrg2 

## Checking resource status 

Use the lssam  command to display the status of the cluster; this command shows which node is online: 

[root@dsm-master init.]# lssam -V 

Figure 19 shows the output of lssam -V  command . 

<img src='content_image/981056.jpg'>

