About the types.cf file

The types.cf file describes standard resource types to the VCS engine; specifically, the data required to control a specific resource.

The types definition performs the following two important functions:

The following example illustrates a DiskGroup resource type definition for Solaris:

   type DiskGroup (
        static keylist SupportedActions = { "license.vfd", 
            "disk.vfd", numdisks }
        static int OnlineRetryLimit = 1
        static str ArgList[] = { DiskGroup, StartVolumes, 
            StopVolumes, MonitorOnly, MonitorReservation, 
            tempUseFence, PanicSystemOnDGLoss, DiskGroupType }
        str DiskGroup
        str StartVolumes = 1
        str StopVolumes = 1
        static int NumThreads = 1
        boolean MonitorReservation = 0
        temp str tempUseFence = INVALID
        boolean PanicSystemOnDGLoss = 1
        str DiskGroupType = private
    )

For another example, review the following main.cf and types.cf files that represent an IP resource:

main.cf for Solaris:

    IP nfs_ip1 (
        Device = hme0
        Address = "192.168.1.201"
    )

types.cf for Solaris:

    type IP (
        static keylist SupportedActions = { "device.vfd", 
    "route.vfd" }
        static str ArgList[] = { Device, Address, NetMask, Options,
        ArpDelay, IfconfigTwice, ContainerName }
        str Device
        str Address
        str NetMask
        str Options
        int ArpDelay = 1
        int IfconfigTwice
        str ContainerName
    )

More Information

About attribute data types

About attribute data types