Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.5
FUJITSU Software

B.3.2 cldelrsc(8)-Delete resource

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

-r rid

Specify rid for the resource ID of the resource to be deleted. Check the resource ID executing the clgettree(1) command.


EXIT STATUS

0:

Normal termination.

Other than 0:

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.

  1. 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.

  2. 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
    Cluster 1 cluster Domain 2 PRIME Shared 7 SHD_PRIME SHD_DISK 14 SHD_Disk14 UNKNOWN DISK 15 sdb UNKNOWN node1 DISK 16 sdb UNKNOWN node2 SHD_DISK 17 SHD_Disk17 UNKNOWN DISK 18 sdc UNKNOWN node1 DISK 19 sdc UNKNOWN node2 Node 3 node1 ON DISK 15 sdb UNKNOWN DISK 18 sdc UNKNOWN Node 5 node2 ON DISK 16 sdb UNKNOWN DISK 19 sdc UNKNOWN
  3. 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