How to display the Eventlist flags for a given vxfs filesystem that is utilizing the Dynamic Storage Teiring (DST) feature.

Problem

How to display the Eventlist flags for a given vxfs filesystem that is utilizing the Dynamic Storage Teiring (DST) feature.

Solution

Dynamic Storage Tiering (DST) uses EventList flags to set what the File ChangeLog (FCL) collects.

The command "fcladm print 0 <mount>" only listed the eventmask as an indication of what Events are set for a given vxfs filesystem.
This eventmask is a Hexidecimal value that when translated to a binary number represents an array of bitflags that are used to store the Event flags for a given filesystem.
eg.

# fcladm print 0 /vxfs_mount/prodB
magic a506fcf5  version 4
time 1244064865 25117  (Thu Jun 04 07:34:25 2009 EST)
state ON  sync 1
foff 1024  loff 2144
eventmask 0x357effc event change time Thu Jun 04 08:04:28 2009 EST (nsecs 2821119456)


The ability to print these event flags is not possible in the VRTSvxfs 5.0 release. It was determined that the 'fsppadm assign' and 'fsppadm unassign' commands would set and clear these values as required, so it was assumed there would be no need for people to query these values directly.

The attached perl script is designed to print out the eventlist flags, so that a these flags can be checked where required.

The script expects that the fcladm command is installed to gather the required FCL eventmask value for a given filesystem. These script requirements are checked within the perl script logic.

The usage of the script is quite simple:
Usage:
# fclevtprint.pl <mount>


# ./fclevtprint.pl /vxfs_mount/prodB
Mount: /vxfs_mount/prodB
EventMask 0x357effc for filesystem /vxfs_mount/prodB
Events configured:
filestats accessinfo
--------------

This utility has been tested on 5.0 and 5.0mp1 and 5.0mp3 on the Solaris platform. It is supplied 'as-is', and the functionality may be replaced by new features in a future release.



Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)