Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next
Chapter 8

Reliable NFS Statistics

This chapter describes the Reliable NFS statistics that can be accessed from the NMA.

This chapter contains the following sections:

Introducing Reliable NFS Statistics

The Reliable NFS statistics collected by the NMA provide a view on the current state of replication in the cluster, node by node, reliable link by reliable link. Reliable NFS statistics are available only on the master node and the vice master node.

See "File Sharing and Data Replication" in the Netra High Availability Suite Foundation Services 2.1 6/03 Overview for more information.

Reliable NFS Master Statistics

This section describes the Reliable NFS statistics collected by the NMA running on the master node.

RnfsMasterReplicatedSliceMBean

The RnfsMasterReplicatedSliceMBean MBean models a Reliable NFS replicated slice. Each slice is composed of a primary partition and a secondary partition. One instance of this MBean is instantiated for each replicated slice mounted on either the master or the vice master node.

Getting the Completed Recovery Percentage

To get the percentage of segments of the slice that has been resynchronized, invoke the getCompletedRecoveryPercentage method. The getCompletedRecoveryPercentage method takes no parameters, and returns a float. This information is meaningful if the primary slice of this MBean is mounted on the host running the agent. No statistics are provided for distant primary MBean.

Getting the Percentage of Segments Requiring Recovery

To get the percentage of segments of the slice that require recovery, invoke the getNeededRecoveryPercentage method. The getNeededRecoveryPercentage method takes no parameters, and returns a float which indicates the percentage of segments that require recovery. This information is meaningful if the primary slice of this MBean is mounted on the host running the agent. No statistics are provided for distant primary MBean.

Reliable NFS Node Statistics

This section describes the Reliable NFS statistics collected by the NMA running on each peer node.

RnfsStatisticsMBean

The RnfsStatisticsMBean MBean provides global Reliable NFS statistics. One instance of this MBean is instantiated on each master eligible node in the cluster. This MBean only provides statistics about Reliable NFS on the node on which it is running.

Getting the Primary Slice

To return the primary dual copy slice file name and slice name, invoke the getPrimarySlice method. The getPrimarySlice method takes no parameters, and returns a Slice.

Getting the Secondary Slice

To return the secondary dual copy slice file name and slice name, invoke the getSecondarySlice method. The getSecondarySlice method takes no parameters, and returns a Slice.

RnfsMasterStatisticsMBean

The RnfsMasterStatisticsMBean MBean provides Reliable NFS statistics on the master node.

Getting the Names of All Primary Files on the Local Host

To get an array of the names of the primary slices mounted on the local host, invoke the getPrimaryFiles method. The getPrimaryFiles method takes no parameters, and returns a String[].

Getting the Names of All Secondary Files on the Local Host

To return an array of the names of the secondary slices mounted on the local host, invoke the getSecondaryFiles method. The getSecondaryFiles method takes no parameters, and returns a String[].

RnfsReplicatedSliceMBean

The RnfsReplicatedSliceMBean MBean models a Reliable NFS slice. One instance of this MBean is instantiated for each replicated slice mounted on each master-eligible node.

Getting the Completed Recovery Percentage

To get the percentage of segments of the partition that has been resynchronized, invoke the getCompletedRecoveryPercentage method. The getCompletedRecoveryPercentage method takes no parameters, and returns a float. This information is meaningful if the primary slice of this MBean is mounted on the host running the agent. No statistics are provided for a distant primary MBean.

Getting the Dual Copy Status

To get the current status of the dual copy as a DualCopyStatusEnum value, invoke the getDualCopyStatus method. The getDualCopyStatus method takes no parameters, and returns a DualCopyStatusEnum. This information is meaningful if the primary slice of this MBean is mounted on the host running the agent. No statistics are provided for a distant primary MBean.

Getting the Link Status

To find out if replication is enabled, disabled, or in progress, invoke the getLinkStatus method. The getLinkStatus method takes no parameters, and returns a LinkStatusEnum.

The LinkStatusEnum can have one of the following values:
ENABLED

Replication is enabled.

RESYNC

A synchronization is in progress.

Getting the Percentage of Segments Requiring Recovery

To indicates the percentage of segments of the partition that require recovery, invoke the getNeededRecoveryPercentage method. The getNeededRecoveryPercentage method takes no parameters, and returns a float. This information is meaningful if the primary slice of this MBean is mounted on the host running the agent. No statistics are provided for a distant primary MBean.

Getting the Primary Slice

To returns the primary dual copy slice file name and slice name, invoke the getPrimarySlice method. The getPrimarySlice method takes no parameters, and returns a Slice.

Getting the Secondary Slice

To return the secondary dual copy slice file name and slice name, invoke the getSecondarySlice method. The getSecondarySlice method takes no parameters, and returns a Slice.

Getting the Names of All Primary Files on the Local Host

To get an array of the names of the primary slices mounted on the local host, invoke the getPrimaryFiles method. The getPrimaryFiles method takes no parameters, and returns a String[].

Getting the Names of All Secondary Files on the Local Host

To return an array of the names of the secondary slices mounted on the local host, invoke the getSecondaryFiles method. The getSecondaryFiles method takes no parameters, and returns a String[].

Previous Previous     Contents     Index     Next Next