PRIMECLUSTER Global Disk Services Configuration and Administration Guide 4.1 (Linux)
Contents PreviousNext

Appendix H Register shared disk units> H.4 Command Reference

H.4.2 cldelrsc(8)-Delete resource created by automatic resource registration

SYNOPSIS

/etc/opt/FJSVcluster/bin/cldelrsc -r rid

 

DESCRIPTION

The "/etc/opt/FJSVcluster/bin/cldelrsc -r rid" command deletes the resource of the resource database created by automatic resource registration. With the automatic resource registration feature, the following information are registered:

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

Check the resource to be deleted executing the clgettree(1) command.

If only the shared resource remains after deleting the resource of the shared disk unit, you need to delete the shared resource as well. You can execute this command on any single node in the cluster system with the Administrator's authority.

 

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

Delete the resource of the shared disk unit after removing GDS setups when the resource is used for GDS.

 

EXAMPLES

Example

When deleting the "/dev/sdc" device resource of the disk unit shared between node1 and node2

1. Check the resource ID of the "/dev/sdc" resource executing the clgettree(1) command. In the following example, the resource ID is 18 for node1, and 19 for node2.

# /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

2. Delete the "/dev/sdc" device resource of the shared disk unit executing the cldelrsc(8) command.

# /etc/opt/FJSVcluster/bin/cldelrsc -r 18
# /etc/opt/FJSVcluster/bin/cldelrsc -r 19


Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005