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

LCDI-resource_type(1M)

NAME

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

SYNOPSIS

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

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

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

DESCRIPTION

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.

SYNTAX

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:

scsi:device

scsi:disk

comm:ip

database:informix

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.

EXIT CODES

The following exit codes could be returned by these commands:

0

The operation has succeeded.

1

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

2

A user-specified syntax error occurred.

3

LifeKeeper internal error.

4

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

5

An argument specified is illegal.

6

Index out-of-range.

7

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

8

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

9

An attempt to communicate with another system failed.

NOTES

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

FILES

/etc/default/LifeKeeper

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