SYNOPSIS
/etc/opt/FJSVcluster/bin/cldelrsc -r rid
DESCRIPTION
The "/etc/opt/FJSVcluster/bin/cldelrsc -r rid" command deletes resources from the resource database.
Resources of the following resource classes can be deleted.
Resource class name | Meaning |
---|---|
DISK | Resource of the shared disk unit |
SHD_DISK | Shared resource of the shared disk unit |
Ethernet | Resource of the network device |
Use the clgettree(1) command to check the resources to be deleted.
Among shared disk unit resources, if resources in the DISK class are deleted and shared resources in the SHD_DISK class remain, it is also necessary to delete the shared resources.
Execute this command on any single node in the cluster system using system administrator access privileges.
OPTIONS
Specify rid for the resource ID of the resource to be deleted. Check the resource ID executing the clgettree(1) command.
EXIT STATUS
Normal termination.
Abnormal termination.
NOTES
If a shared disk of which resources are to be deleted is registered with a GDS class, delete the shared disk from the GDS class, and then delete the resources.
EXAMPLES
The following example shows the procedure for deleting resources of a shared disk unit "/dev/sdc" shared between node1 and node2.
Perform the following procedure on any node.
Before deleting the resource, change the device name set in the resource to the current device name. Execute the following command.
For filepath, specify an empty file with an absolute path.
# /etc/opt/FJSVcluster/bin/clautoconfig -f filepath |
Note
If SDX_UDEV_USE=off is described in the GDS configuration file /etc/opt/FJSVsdx/sdx.cf, you must not execute the above command.
Check the resource IDs of /dev/sdc resources using the clgettree(1) command. In the following example, the resource ID of shared disks is 17, the /dev/sdc resource ID on node1 is 18, and the /dev/sdc resource ID on node2 is 19.
# /etc/opt/FJSVcluster/bin/clgettree |
Delete the resources of the shared disk unit "/dev/sdc" using the cldelrsc(8) command.
# /etc/opt/FJSVcluster/bin/cldelrsc -r 17 # /etc/opt/FJSVcluster/bin/cldelrsc -r 18 # /etc/opt/FJSVcluster/bin/cldelrsc -r 19 |