I have a simple mirror pool with 2 disks. I pulled out one disk to simulate a failed drive. zpool status shows that the pool is in DEGRADED state. I want syslog to log these type of ZFS errors. I have syslog running and logging all sorts of error to a log server. But this failed disk in ZFS pool did not generate any syslog messages. ZFS diagnosists engine are online as seen bleow. hrs1zgpprd1# fmadm config | grep zfs zfs-diagnosis 1.0 active ZFS Diagnosis Engine zfs-retire 1.0 active ZFS Retire Agent So, why is it not generating any syslog messages? -- This message posted from opensolaris.org
On 04/12/10 09:05 AM, J James wrote:> I have a simple mirror pool with 2 disks. I pulled out one disk to simulate a failed drive. zpool status shows that the pool is in DEGRADED state. > > I want syslog to log these type of ZFS errors. I have syslog running and logging all sorts of error to a log server. But this failed disk in ZFS pool did not generate any syslog messages. > > ZFS diagnosists engine are online as seen bleow. > > hrs1zgpprd1# fmadm config | grep zfs > zfs-diagnosis 1.0 active ZFS Diagnosis Engine > zfs-retire 1.0 active ZFS Retire Agent > > So, why is it not generating any syslog messages?Try explicitly enabling fmd to send to syslog in /usr/lib/fm/fmd/plugins/syslog-msgs.conf -tim
On Mon, Apr 12, 2010 at 09:32:50AM -0600, Tim Haley wrote:> Try explicitly enabling fmd to send to syslog in > /usr/lib/fm/fmd/plugins/syslog-msgs.confWow, so useful, yet so well hidden I never even knew to look for it. Please can this be on by default? Please? -- Dan. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100413/b12098e1/attachment.bin>
On Tue, 13 Apr 2010, Daniel Carosone wrote:> On Mon, Apr 12, 2010 at 09:32:50AM -0600, Tim Haley wrote: >> Try explicitly enabling fmd to send to syslog in >> /usr/lib/fm/fmd/plugins/syslog-msgs.conf > > Wow, so useful, yet so well hidden I never even knew to look for it. > > Please can this be on by default? Please?There are some situations where many reports may be sent per second so it is not necessarily a wise idea for this to be enabled by default. Bob -- Bob Friesenhahn bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Thanks for the clue. Still not successful, but some hope is there. -- This message posted from opensolaris.org
I was finally able to generate syslog messages, thanks to the clue given by timh cat /usr/lib/fm/fmd/plugins/syslog-msgs.conf setprop console true setprop facility LOG_LOCAL0 -log as facility local0 setprop syslogd true svcadm restart fmd - restart FMD Note that some of the error messages are generated only once. Joji James -- This message posted from opensolaris.org