How could i monitor zfs ? or the zpool activity ? I want to know if anything wrong is going on. If i could receive those warning by email, it would be great :) Martin This message posted from opensolaris.org
martin wrote:>How could i monitor zfs ? >or the zpool activity ? > >I want to know if anything wrong is going on. >If i could receive those warning by email, it would be great :) > > >For pool health: # zpool status -x all pools are healthy # To monitor activity, use ''zpool iostat 1'' to monitor just zfs datasets, or iostat(1M) to include non-zfs devices. eric>Martin > > >This message posted from opensolaris.org >_______________________________________________ >zfs-discuss mailing list >zfs-discuss at opensolaris.org >http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >
eric kustarz wrote:> martin wrote: > >> How could i monitor zfs ? >> or the zpool activity ? >> >> I want to know if anything wrong is going on. >> If i could receive those warning by email, it would be great :) >> >> >> > > For pool health: > # zpool status -x > all pools are healthy > # > > To monitor activity, use ''zpool iostat 1'' to monitor just zfs > datasets, or iostat(1M) to include non-zfs devices.Perhaps Martin was asking for something a little more robust. Something like SNMP traps, alert messages out via email, etc.
On 15/07/06, Torrey McMahon <Torrey.McMahon at sun.com> wrote:> eric kustarz wrote: > > martin wrote:> > To monitor activity, use ''zpool iostat 1'' to monitor just zfs > > datasets, or iostat(1M) to include non-zfs devices. > > Perhaps Martin was asking for something a little more robust. Something > like SNMP traps, alert messages out via email, etc.Doesn''t ZFS report via the usual SMF / fmd mechanisms? -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/
ZFS will generate error events through FMA and they will be visible via syslog or fmdump. The hot spares facility will also listen for vdev failures to determine when to automatically kick in a hot spare. - George Dick Davies wrote:> On 15/07/06, Torrey McMahon <Torrey.McMahon at sun.com> wrote: >> eric kustarz wrote: >> > martin wrote: > >> > To monitor activity, use ''zpool iostat 1'' to monitor just zfs >> > datasets, or iostat(1M) to include non-zfs devices. >> >> Perhaps Martin was asking for something a little more robust. Something >> like SNMP traps, alert messages out via email, etc. > > Doesn''t ZFS report via the usual SMF / fmd mechanisms? >
Dick Davies wrote:> On 15/07/06, Torrey McMahon <Torrey.McMahon at sun.com> wrote: >> eric kustarz wrote: >> > martin wrote: > >> > To monitor activity, use ''zpool iostat 1'' to monitor just zfs >> > datasets, or iostat(1M) to include non-zfs devices. >> >> Perhaps Martin was asking for something a little more robust. Something >> like SNMP traps, alert messages out via email, etc. > > Doesn''t ZFS report via the usual SMF / fmd mechanisms? >As someone else mentioned, yes. However, when compared to Veritas or <insert data management product> does that match up? This could easily rathole into a "when will ZFS read email" discussion but it is something that should probably be thought about in the context of ZFS as a standalone entity and also in a larger system level perspective.
On 7/16/06, Torrey McMahon <Torrey.McMahon at sun.com> wrote:> Dick Davies wrote: > > On 15/07/06, Torrey McMahon <Torrey.McMahon at sun.com> wrote: > >> eric kustarz wrote: > >> > martin wrote: > > > >> > To monitor activity, use ''zpool iostat 1'' to monitor just zfs > >> > datasets, or iostat(1M) to include non-zfs devices. > >> > >> Perhaps Martin was asking for something a little more robust. Something > >> like SNMP traps, alert messages out via email, etc. > > > > Doesn''t ZFS report via the usual SMF / fmd mechanisms? > > > > > As someone else mentioned, yes. However, when compared to Veritas or > <insert data management product> does that match up? This could easily > rathole into a "when will ZFS read email" discussion but it is something > that should probably be thought about in the context of ZFS as a > standalone entity and also in a larger system level perspective. > ____Since ZFS now interacts with FMA and SMF, the goal should be to intergrate page/email actions into SMF, I heard it was being worked on. When its done we can get emails not just when ZFS has problems but when ever any hardware or software in the system has problems. This is the primary goal monitoring zpool is just a stop gap measure till when SMF has the needed functionality. James Dickens uadmin.blogspot.com ___________________________________________> zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >