Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 May 2004 10:13:18 -0600
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Joan Picanyol i Puig <lists-gmane@biaix.org>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: setting WCE on SCSI disks across reboots
Message-ID:  <20040512161318.GA7014@panzer.kdm.org>
In-Reply-To: <pan.2004.05.12.15.55.04.52923@biaix.org>
References:  <pan.2004.05.12.15.55.04.52923@biaix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
> 
> <SEAGATE ST318438LW 0003>          at scbus0 target 0 lun 0 (pass0,da0)
> <IBM DNES-309170W SA30>            at scbus0 target 6 lun 0 (pass2,da1)
> 
> both sitting on an Adaptec 2940 U2W controller
> 
> ahc0: <Adaptec 2940 Ultra2 SCSI adapter> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040512161318.GA7014>