Re: FreeBSD Port: sysutils/smartmontools (daily_status_smart_devices with 3ware controller)
On Sat, 6 Feb 2010, Dmitry Morozovsky wrote: DM> PP> > I am trying to obtain a daily smart status report on one of my servers DM> PP> > which uses a 3ware controller. To access these devices from DM> DM> Please try the patch attached. Note that you have to specify your 3ware disks DM> as DM> DM> daily_status_smart_devices="twa0,0 twa0,1 twa0,2" DM> DM> (controller device name instead of "3ware") DM> DM> In no objection case I'll make this patch part of port distribution. Grr, patch was lost. Resent. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: ma...@freebsd.org ] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru *** Index: Makefile === RCS file: /home/ncvs/ports/sysutils/smartmontools/Makefile,v retrieving revision 1.46 diff -u -r1.46 Makefile --- Makefile4 Feb 2010 13:22:00 - 1.46 +++ Makefile6 Feb 2010 12:20:14 - @@ -7,7 +7,7 @@ PORTNAME= smartmontools PORTVERSION= 5.39 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES=sysutils MASTER_SITES= SF Index: files/smart.in === RCS file: /home/ncvs/ports/sysutils/smartmontools/files/smart.in,v retrieving revision 1.6 diff -u -r1.6 smart.in --- files/smart.in 4 Feb 2010 13:22:00 - 1.6 +++ files/smart.in 6 Feb 2010 12:20:14 - @@ -37,11 +37,18 @@ [Yy][Ee][Ss]) cd /dev for device in ${daily_status_smart_devices}; do + case ${device} in + twa*) devflags="-d3ware,${device##twa[0-9]*,}" + device="${device%%,[0-9]*}" + ;; + *) devflags="" + ;; + esac if [ -e ${device} ]; then echo echo "Checking health of ${device}:" echo - ${smartctl} ${daily_status_smartctl_flags} /dev/${device} > "${tmpfile}" + ${smartctl} ${devflags} ${daily_status_smartctl_flags} /dev/${device} > "${tmpfile}" status=$? if [ $((status & 3)) -ne 0 ]; then rc=2 ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD Port: sysutils/smartmontools (daily_status_smart_devices with 3ware controller)
On Wed, 3 Feb 2010, Philip Paeps wrote: PP> On 2010-02-01 16:40:45 (-0500), Mike Jakubik wrote: PP> > I am trying to obtain a daily smart status report on one of my servers PP> > which uses a 3ware controller. To access these devices from PP> > smartmontools you need to refer to each drive as 3ware,0 or 3ware,1. PP> > This doesn't seem to work well with the period script, ie. PP> > daily_status_smart_devices="3ware,0 3ware,1 3ware,2" does not produce PP> > any output. I have tried escaping the comma with \ but still nothing. PP> > Any ideas on how to get these to work with the daily periodic script? PP> PP> Not without modifying the periodic script. I make a copy of the script PP> provided by the port and modify it to specify the -d 3ware,n and get a list of PP> those 'n' from periodic.conf. Please try the patch attached. Note that you have to specify your 3ware disks as daily_status_smart_devices="twa0,0 twa0,1 twa0,2" (controller device name instead of "3ware") In no objection case I'll make this patch part of port distribution. Thanks! -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: ma...@freebsd.org ] *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- ma...@rinet.ru *** ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: FreeBSD Port: sysutils/smartmontools (daily_status_smart_devices with 3ware controller)
On 2010-02-01 16:40:45 (-0500), Mike Jakubik wrote: > I am trying to obtain a daily smart status report on one of my servers > which uses a 3ware controller. To access these devices from > smartmontools you need to refer to each drive as 3ware,0 or 3ware,1. > This doesn't seem to work well with the period script, ie. > daily_status_smart_devices="3ware,0 3ware,1 3ware,2" does not produce > any output. I have tried escaping the comma with \ but still nothing. > Any ideas on how to get these to work with the daily periodic script? Not without modifying the periodic script. I make a copy of the script provided by the port and modify it to specify the -d 3ware,n and get a list of those 'n' from periodic.conf. - Philip -- Philip PaepsPlease don't Cc me, I am phi...@freebsd.org subscribed to the list. "*Veni, vici*...Vetinari." -- (Terry Pratchett, Jingo) ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
FreeBSD Port: sysutils/smartmontools (daily_status_smart_devices with 3ware controller)
Hi, I am trying to obtain a daily smart status report on one of my servers which uses a 3ware controller. To access these devices from smartmontools you need to refer to each drive as 3ware,0 or 3ware,1. This doesn't seem to work well with the period script, ie. daily_status_smart_devices="3ware,0 3ware,1 3ware,2" does not produce any output. I have tried escaping the comma with \ but still nothing. Any ideas on how to get these to work with the daily periodic script? Thanks. ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"