From owner-freebsd-stable@FreeBSD.ORG Fri Jan 7 07:37:41 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C38D316A4CF for ; Fri, 7 Jan 2005 07:37:41 +0000 (GMT) Received: from mail.transactionware.com (mail.transactionware.com [203.14.245.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 0153543D49 for ; Fri, 7 Jan 2005 07:37:40 +0000 (GMT) (envelope-from janm@transactionware.com) Received: (qmail 27769 invoked from network); 7 Jan 2005 07:37:59 -0000 Received: from new.transactionware.com (192.168.1.55) by dm.transactionware.com with SMTP; 7 Jan 2005 07:37:59 -0000 Received: (qmail 27092 invoked by uid 1026); 7 Jan 2005 07:37:59 -0000 Received: from 192.168.1.32 by new.transactionware.com (envelope-from , uid 1003) with qmail-scanner-1.23 ( Clear:RC:1(192.168.1.32):. Processed in 1.887183 secs); 07 Jan 2005 07:37:59 -0000 Received: from janm.transactionware.com (HELO ?192.168.1.32?) (192.168.1.32) by new.transactionware.com with SMTP; 7 Jan 2005 07:37:57 -0000 Message-ID: <41DE3CC6.7010803@transactionware.com> Date: Fri, 07 Jan 2005 18:39:50 +1100 From: Jan Mikkelsen User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Scott Long References: <000001c4f370$b3cb7a40$0202a8c0@mosm1> <41DE373E.8090805@freebsd.org> In-Reply-To: <41DE373E.8090805@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: 'Jeroen Molinger' cc: 'Rong-En Fan' cc: stable@freebsd.org cc: scsi@freebsd.org Subject: Re: IBM ServeRAID 7k & 5.3 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 07:37:42 -0000 Hi, Scott Long wrote: > There is no documentation on anything related to this that I know of. > Sorry. These are decent cards, but there seems to be little chance that > Adaptec or IBM will support online management under FreeBSD. Thanks for the reply. I looked through the driver code and wrote an "ipsstat" utility that uses the user command ioctl to query what is going on. The output isn't pretty; my main purpose is to have someone be notified if a logical drive goes into degraded mode. Example output below. The implementation is pretty straightforward; I'm happy to hand out the source. Regards, Jan. janm@serv: src $ sudo ./ipsstat /dev/ips0 ips adaptor info for /dev/ips0 drivecount: 1 miscflags: 6 SLTflags: 0 BSTflags: 0 pwr_chg_count: 0 wrong_addr_count: 0 unident_count: 0 nvram_dev_chg_count: 0 codeblock_version: 7.00.17 bootblock_version: 7.00.17 max_concurrent_cmds: 64 max_phys_devices: 30 flash_prog_count: 0 defunct_disks: 0 rebuildflags: 15 offline_drivecount: 0 critical_drivecount: 0 config_update_count: 41 blockedflags: 0 psdn_error: 0 drivecount: 1 host_id: Null Config rebuild_rate: 15 board_desc: TMB 4 Ch processor: PPC-750 Info for logical drive 0: user_field: 5132 state: OK raid_cache_param: 1 chunk_unit_count: 2 stripe_size: 4 params: 0 logical_drive_size: 286746624 Details of chunk 0 for logical drive 0: channel: 1 target: 0 starting sector: 0 sector count: 286746624 Details of chunk 1 for logical drive 0: channel: 1 target: 1 starting sector: 0 sector count: 286746624 Device at channel 1, target 0: initiator: 0 params: 0 misc_flag: 0 state: 137 block_count: 286747728 device_id: IBM-ESXSDTN146C3S29CECWGBXTC Device at channel 1, target 1: initiator: 0 params: 0 misc_flag: 0 state: 137 block_count: 286747728 device_id: IBM-ESXSDTN146C3S29CECWDSDGE Device at channel 1, target 8: initiator: 0 params: 3 misc_flag: 0 state: 1 block_count: 0 device_id: IBM 02R0980a1 000