From owner-freebsd-stable@FreeBSD.ORG Tue Aug 28 14:53:36 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 695F816A41A for ; Tue, 28 Aug 2007 14:53:36 +0000 (UTC) (envelope-from i.simon@xifra.es) Received: from correo1.acens.net (correo1.acens.net [217.116.0.33]) by mx1.freebsd.org (Postfix) with ESMTP id 4890013C469 for ; Tue, 28 Aug 2007 14:53:35 +0000 (UTC) (envelope-from i.simon@xifra.es) Received: (qmail 2173 invoked from network); 28 Aug 2007 14:26:54 -0000 Received: from unknown (HELO pcismael) ([80.34.155.192]) (envelope-sender ) by correo1.acens.net (qmail-ldap-1.03) with SMTP for ; 28 Aug 2007 14:26:52 -0000 From: "Ismael" To: Date: Tue, 28 Aug 2007 16:26:43 +0200 Message-ID: <000001c7e97f$758f1c20$6501a8c0@pcismael> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acfpf3UHsvjDcQn7Rlq9INxBUz+uAQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Mpt raid event notification X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2007 14:53:36 -0000 Hi, We have a Sun X4100 with Freebsd 6-Stable i386 with a LSI 1064 disk controller,that uses the mpt driver. The machine uses two HD SAS 73GB in RAID 1. The RAID 1 works fine, but the event notification is incomplete and there is no way to know the status of the RAID, if the status is optimal, degraded or is Re-Syncing. We have added in the MPT_CAM.C at the funtion mpt_cam_event(struct mpt_softc *mpt, request_t *req,MSG_EVENT_NOTIFY_REPLY *msg) this code : case MPI_EVENT_INTEGRATED_RAID: { switch ((msg->Data[0] >> 16) & 0xff) { case MPI_EVENT_RAID_RC_VOLUME_CREATED : mpt_prt(mpt, "Integrated Raid: Volume Created\n"); break; case MPI_EVENT_RAID_RC_VOLUME_DELETED : mpt_prt(mpt, "Integrated Raid: Volume Deleted\n"); break; case MPI_EVENT_RAID_RC_VOLUME_SETTINGS_CHANGED : mpt_prt(mpt, "Integrated Raid: Volume Settings Changed\n"); break; case MPI_EVENT_RAID_RC_VOLUME_STATUS_CHANGED : mpt_prt(mpt, "Integrated Raid: Volume Status Changed\n"); break; case MPI_EVENT_RAID_RC_VOLUME_PHYSDISK_CHANGED : mpt_prt(mpt, "Integrated Raid: Volume Physdisk Changed\n"); break; case MPI_EVENT_RAID_RC_PHYSDISK_CREATED : mpt_prt(mpt, "Integrated Raid: Physdisk Created\n"); break; case MPI_EVENT_RAID_RC_PHYSDISK_DELETED : mpt_prt(mpt, "Integrated Raid: Physdisk Deleted\n"); break; case MPI_EVENT_RAID_RC_PHYSDISK_SETTINGS_CHANGED : mpt_prt(mpt, "Integrated Raid: Physdisk Settings Changed\n"); break; case MPI_EVENT_RAID_RC_PHYSDISK_STATUS_CHANGED : mpt_prt(mpt, "Integrated Raid: Physdisk Status Changed\n"); break; case MPI_EVENT_RAID_RC_DOMAIN_VAL_NEEDED : mpt_prt(mpt, "Integrated Raid: Domain Validation Needed\n"); break; case MPI_EVENT_RAID_RC_SMART_DATA : mpt_prt(mpt, "Integrated Raid; Smart Data\n"); break; case MPI_EVENT_RAID_RC_REPLACE_ACTION_STARTED : mpt_prt(mpt, "Integrated Raid: Replace Action Started\n"); break; default: mpt_prt(mpt, "Integrated Raid\n"); break; } break; } This code tell us that the volume status of the raid has changed,but no the actual state of the volume (optimal,degraded),and we have no idea how to add this funcionality in the driver. Anybody know how to modify the driver to know the actual state of the RAID volume. Thanks, Ismael