From owner-freebsd-scsi@FreeBSD.ORG Wed May 12 09:13:37 2004 Return-Path: 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 7BEF616A4CE for ; Wed, 12 May 2004 09:13:37 -0700 (PDT) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id B772543D5F for ; Wed, 12 May 2004 09:13:31 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id i4CGDICd007044; Wed, 12 May 2004 10:13:18 -0600 (MDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id i4CGDIVs007043; Wed, 12 May 2004 10:13:18 -0600 (MDT) (envelope-from ken) Date: Wed, 12 May 2004 10:13:18 -0600 From: "Kenneth D. Merry" To: Joan Picanyol i Puig Message-ID: <20040512161318.GA7014@panzer.kdm.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: freebsd-scsi@freebsd.org Subject: Re: setting WCE on SCSI disks across reboots X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2004 16:13:37 -0000 On Wed, May 12, 2004 at 17:55:04 +0200, Joan Picanyol i Puig wrote: > Hi, > > I'm trying to disable the write-cache on these two disks: > > at scbus0 target 0 lun 0 (pass0,da0) > at scbus0 target 6 lun 0 (pass2,da1) > > both sitting on an Adaptec 2940 U2W controller > > ahc0: port 0x1000-0x10ff mem > 0xd0020000-0xd0020fff irq 11 at device 14.0 on pci0 > > I can set WCE to 0 using camcontrol modepage -e -m 0x08, but upon reboot > WCE is set to 1 again. AFAIK this can't be set interactively, so I am at a > loss as to how to disable the wc forever. > > Any ideas? By default, you're only editing the current parameters. If you specify the saved parameters, hopefully it'll last across reboots. (Add -P 3 to the command you're using above.) Ken -- Kenneth Merry ken@kdm.org