Setting file system alerts
For a file system to run efficiently, you should always reserve some space for the file system rather than using 100% of the space. You can set file system alerts based on file system or snapshot usage. You can set the alert based on the number of inodes used, file system space used, or snapshot usage.
File system alerts can be displayed by using the Report> showevents command.
To set file system alerts
- To set file system alerts, enter the following:
Storage> fs alert set numinodes | numspace | fullspace | fullinodes value [fs_name,...] [snapshot_name]
numinodes | When setting the alert for numinodes, value is the number of inodes used. The default alert value for numinodes is set at 0. An alert will not be sent until you set it to a different value. |
numspace | When setting the alert for numspace, value is the percentage you want to set to trigger the alert. By default, the alert is sent at 80%. If you do not specify a file system name, the default value is modified. |
fullspace | fullspace is the tunable for setting an alert if the file system becomes full. When file system usage is above the limit set by the fullspace tunable, all the NFS/CIFS shares on the file system are automatically changed to read-only to prevent the file system from becoming full again. When you grow the file system or delete some files to free up space, the NFS/CIFS shares are automatically changed back to read-write (there might be a delay of up to five minutes) for the change to occur. Note: The file system size is checked every five minutes. During this five-minute interval, if the usage of the file system grows to more than 80%, the NFS/CIFS shares are changed to read-only. If the file system is small and write I/O is fast, then the file system can be filled up to 100% before being changed to read-only. This is by design. By default, the fullspace tunable is set to 0, which means that the fullspace tunable is disabled. |
fullinodes | fullinodes is the tunable for setting an alert if the file system becomes full. When inodes on a file system reach the limit of fullinodes, the NFS/CIFS shares on the file system are automatically changed to read-only. After the file system is changed to read-only, you need to delete some files from the file system, and a remount of the file system may be required for the NFS/CIFS shares to be changed to read-write. By default, the fullinodes tunable is set to 0, which indicates that the fullinodes tunable is disabled. |
fs_name | Name of the file system for which you want to set the file system alerts. fs_name is optional. To specify multiple file systems, use commas to separate the file system names. |
snapshot_name | Name of the snapshot for which you want to set the file system alert. Note: The following are reserved words for snapshot_name: flags, ctime, and mtime. |