setting WCE on SCSI disks across reboots

Kenneth D. Merry ken at kdm.org
Wed May 12 09:13:37 PDT 2004


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 at kdm.org


More information about the freebsd-scsi mailing list