Notifying the administrator when a physical volume is missing
Although AIX® logs an error when a physical volume becomes inaccessible, there are circumstances in which an error can go undetected.
For example, when the physical volume is part of a mirrored volume group, users do not notice a problem because a good copy of the data remains accessible. In such cases, automatic notification can alert the administrator to the problem before the users notice any disruption to their work.
The following procedure describes how to set up automatic notification when a physical volume is declared missing. By modifying the following procedure, you can track other errors that are significant to you.
The information in this how-to scenario was tested using specific versions of AIX. The results you obtain might vary significantly depending on your version and level of AIX.
Now, the system runs the /usr/lib/ras/pvmiss.notify script whenever an LVM_SA_PVMISS error occurs. This script sends a message to the console and also sends mail to the root user.