From owner-freebsd-scsi@FreeBSD.ORG Mon Feb 27 17:23:53 2006 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1D8316A420 for ; Mon, 27 Feb 2006 17:23:53 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C8AC43D7D for ; Mon, 27 Feb 2006 17:23:42 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id k1RHNcIp067294; Mon, 27 Feb 2006 12:23:38 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-scsi@FreeBSD.org Date: Mon, 27 Feb 2006 12:23:17 -0500 User-Agent: KMail/1.6.2 References: <200602241645.36042.jkim@FreeBSD.org> <44009A66.1040804@samsco.org> In-Reply-To: <44009A66.1040804@samsco.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200602271223.20959.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV devel-20050919/1304/Sun Feb 26 06:47:28 2006 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: Subject: Re: A tiny amr(4) monitoring tool X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2006 17:23:54 -0000 On Saturday 25 February 2006 12:56 pm, Scott Long wrote: > This is pretty cool. You should check it into /usr/src/usr.sbin. I thought about it but I have to find the original writer and get clearance. BTW, the source is not so clean and it needs some cleanup to be committable. When I find some copious free time, I'll do that. ;-) > I'm working on a similar tool for IPS. Awesome. BTW, OpenBSD has bioctl(8) to manage RAID controllers: http://www.openbsd.org/cgi-bin/man.cgi?query=bioctl&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html It would be nice to have such an API for us too. :-) Jung-uk Kim > Scott > > Jung-uk Kim wrote: > > This is a small amr(4) tool that I've been using for a while. It > > was originally posted here: > > > > http://docs.freebsd.org/cgi/mid.cgi?42345F33.8030101 > > > > I added few more features, e. g., battery status, physical drive > > status, etc. Sorry but the source is not very clean (i. e., > > ENOTIME). > > > > http://people.freebsd.org/~jkim/amrstat2.tar.gz > > > > usage: amrstat [-a num] [-b] [-c ctlr|-f dev] [-g] [-l vol] > > [-p drive|-s bus[:target]] [-t usec] [-v] > > > > -a num number of retries > > -b battery status > > -c ctrl controller ID > > -f dev device path > > -g print global parameters > > -l vol logical volume ID > > -p drive physical drive ID > > -s bus[:target] SCSI bus (and optinal target) > > -t usec sleep time between retries > > -v verbose output > > > > Example 1: > > # amrstat > > Logical volume 0 optimal (547.67 GB, RAID5) > > Logical volume 1 optimal (547.67 GB, RAID5) > > Physical drive 0:10 online > > Physical drive 0:11 online > > Physical drive 0:12 online > > Physical drive 0:13 online > > Physical drive 1:0 online > > Physical drive 1:1 online > > Physical drive 1:2 online > > Physical drive 1:3 hotspare > > Physical drive 1:4 online > > Physical drive 1:5 online > > > > Example 2: > > # amrstat -b -l0 -s0 > > Battery status not present, charge unknown > > Logical volume 0 degraded (341.83 GB, RAID5) > > Physical drive 0:0 online > > Physical drive 0:1 online > > Physical drive 0:2 rebuild > > Physical drive 0:3 online > > Physical drive 0:4 online > > Physical drive 0:5 online > > > > If other tools are too heavy for you, this may be a good > > alternative. > > > > Cheers, > > > > Jung-uk Kim > > _______________________________________________ > > freebsd-scsi@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > > To unsubscribe, send any mail to > > "freebsd-scsi-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to > "freebsd-scsi-unsubscribe@freebsd.org"