You are here: Administration > Man Pages > LCDI-resource_type(1M)



LCDI-resource_type(1M) — access information on resource types


typ_create [-d dest] -a app -r restyp

typ_remove [-d dest] -a app -r restyp

typ_list [-d dest] [-fC] [-a app]


Resources are used by LifeKeeper to represent peripherals, applications, or other objects known by the system. Resource types are classifications of resources and are distinguished by a common set of recovery procedures that can be applied to all instances. Resource instances are specific instantiations. Resource type examples would include SCSI disk partitions, TCP/IP endpoints, and database instances. Resource instances would include SCSI disk partition /dev/sda1, TCP/IP endpoint abcd, and ora_inst.


These commands provide an interface for generating new types in the configuration database. The command typ_list provides an interface to the configuration database for listing all resource types existing on a specific system. All commands exit 0 if successful. On failure, they return a nonzero code (see EXIT CODES section) and print to stderr.

typ_create [-d dest] -a app -r restyp

Creates a new resource type in the configuration database on system dest (local, if not specified). The resource type is named restyp and is installed under the already-existing application, app. Failure will occur if the system or application is not known or because the resource type already exists.

typ_remove [-d dest] -a app -r restyp

Removes the given resource type from the configuration database set of known resource types of system dest (local, if not specified). All resource instances, dependencies, and equivalencies associated with this type are also removed. Failure will occur if the resource type is not known to the configuration database.

typ_list [-d dest] [-fC] [-a app]

This command prints to stdout a list of resource types that have been defined on the application, app, installed on system dest (local, if notspecified). If app is not specified, all resource types for all application are printed:





The application name is to the left of the delimiter and the resource type name is to the right. Each line contains fields separated by a delimiter character. The default delimiter character is ^A ( 01). If the -f option is specified, the delimiter is changed to C. The above example shows a colon (:) as the delimiter.


The following exit codes could be returned by these commands:


The operation has succeeded.


A Unix system call or library call has internally returned failure.


A user-specified syntax error occurred.


LifeKeeper internal error.


A request to perform an operation on an object that already exists.


An argument specified is illegal.


Index out-of-range.


A request has been made on an object that does not exist.


A request was made to delete a resource instance on which another non-deleted resource instance depends.


An attempt to communicate with another system failed.


The location of this utility, LKROOT, is defined in the default file /etc/default/LifeKeeper.



© 2012 SIOS Technology Corp., the industry's leading provider of business continuity solutions, data replication for continuous data protection.