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 AIX:

type DiskGroup (
        static keylist SupportedActions = { 
            "license.vfd", "disk.vfd", "udid.vfd", 
            "verifyplex.vfd", checkudid, numdisks, 
            campusplex, volinuse, joindg, splitdg, 
								    getvxvminfo }
        static int NumThreads = 1
        static int OnlineRetryLimit = 1
        static str ArgList[] = { DiskGroup, 
            StartVolumes, StopVolumes, MonitorOnly, 
            MonitorReservation, tempUseFence, PanicSystemOnDGLoss, 
            UmountVolumes, Reservation }
        str DiskGroup
        boolean StartVolumes = 1
        boolean StopVolumes = 1
        boolean MonitorReservation = 0
        temp str tempUseFence = INVALID
        boolean PanicSystemOnDGLoss = 0
        int UmountVolumes
        str Reservation = ClusterDefault
)

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

main.cf for AIX:

IP nfs_ip1 (
        Device = en0
        Address = "192.168.1.201"
        Netmask = "255.255.255.0"
    )

types.cf for AIX:

type IP (
        static keylist RegList = { NetMask }
        static keylist SupportedActions = { "device.vfd", "route.vfd" }
        static str ArgList[] = { Device, Address, NetMask, Options, 
        RouteOptions, PrefixLen }
        static int ContainerOpts{} = { RunInContainer=0, PassCInfo=1 }
				    str Device
        str Address
        str NetMask
        str Options
        str RouteOptions
        int PrefixLen
    )

More Information

About attribute data types

About attribute data types