Installation guide

options. For example, if you had not previously defined web_fs as a global service, you
could add it as a service-specific resource with the following command:
ccs -h node01.example.com --addsubservice example_apache fs
name=web_fs device=/dev/sdd2 mountpoint=/var/www fstype=ext3
3. To add a child service to the service, you also use the --ad d subservi ce option of the ccs
command, specifying the service options.
If you need to add services within a tree structure of dependencies, use a colon (":") to
separate elements and brackets to identify subservices of the same type. The following
example adds a third nfscli ent service as a subservice of an nfscl i ent service which is
in itself a subservice of an nfscli ent service which is a subservice of a service named
service_a:
ccs -h node01.example.com --addsubservice service_a
nfsclient[1]:nfsclient[2]:nfsclient
Note
If you are adding a Samba-service resource, add it directly to the service, not as a child
of another resource.
Note
When configuring a dependency tree for a cluster service that includes a floating IP
address resource, you must configure the IP resource as the first entry.
Note
To verify the existence of the IP service resource used in a cluster service, you can use the
/sbin/i p ad d r sho w command on a cluster node (rather than the obsoleted i fco nfi g
command). The following output shows the /sbi n/i p add r show command executed on a
node running a cluster service:
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1356 qdisc pfifo_fast qlen
1000
link/ether 00:05:5d:9a:d8:91 brd ff:ff:ff:ff:ff:ff
inet 10.11.4.31/22 brd 10.11.7.255 scope global eth0
inet6 fe80::205:5dff:fe9a:d891/64 scope link
inet 10.11.4.240/22 scope global secondary eth0
valid_lft forever preferred_lft forever
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
92