Tuesday, June 10, 2014

To resolved fmd errors

After any hardware replacement or just reboot of server we need to check and cleared the fmd errors on the system.

To check the fmd errors :

# fmdump -v
# fmadm faulty
# fmadm faulty -r
# fmadm faulty -a

To rotate the fmd errors use below script ( run at least two times) .

#GZ:
fmdump

#Clean up old entries:
for i in `/usr/sbin/fmdump|awk '{print $4}'`
do
 /usr/sbin/fmadm repair $i
done
sleep 2
/usr/sbin/fmadm rotate fltlog
/usr/sbin/fmadm rotate errlog

If the errors are still exist in # fmadm faulty –a then we need to clear the cache of fmd using the below steps.

[Clear ereports and resource cache:
# cd /var/fm/fmd
# rm e* f* c*/eft/* r*/*

[Clearing out FMA files with no reboot needed:
svcadm disable -s svc:/system/fmd:default
cd /var/fm/fmd
find /var/fm/fmd -type f -exec ls {} \;
find /var/fm/fmd -type f -exec rm {} \;
svcadm enable svc:/system/fmd:default

And monitor the system for few hrs (or one day) if the errors are came again then we need raise the oracle SR to get it fix.

No comments:

Post a Comment