On Fri, 15 Jan 2010 18:33:10 -0600, Marco Peereboom <[email protected]> wrote: > You need to use the SCSI to to enable it.
I tried but without success, I can not edit any page (tried -P 0 and -P 3): # scsi -f /dev/rsd0c -m 8 <snip> WCE: 1 <snip> # scsi -f /dev/rsd0c -m 8 -P 3 -e SCIOCCOMMAND ioctl: Command accepted. return status 3 (Sense Returned) host adapter status 2 Command out (6 of 6): 15 01 00 00 18 00 Data out (0 of 24): Error code is "current errors" Segment number is 00 Sense key is "Illegal request" The Information field is not valid but contains 0822dc00 (136502272). The Command Specific Information field is 00000200 (512). Additional sense code: 20 Additional sense code qualifier: 00 sense (32 of 48): 70 00 05 08 22 dc 00 00 00 00 02 00 20 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 On Sat, 16 Jan 2010 02:20:58 +0000 (UTC), Stuart Henderson <[email protected]> wrote: > On 2010-01-16, Andrea Parazzini <[email protected]> wrote: >> The controller Dell SAS6IR does not have cache. > > the disks have write cache, though; the controller probably disables > this unless you tell it otherwise, > > http://kerneltrap.org/mailarchive/openbsd-tech/2008/5/5/1725504 I followed the hints and ... # scsi -f /dev/rsd0c -c "12 0 0 0 64 0" -i 0x64 "s8 z8 z16 z4" Dell VIRTUAL DISK 1028 # scsi -f /dev/rsd0c -m 8 <snip> WCE: 1 <snip> # dd if=/dev/zero of=/dev/rsd0d bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 0.842 secs (124424763 bytes/sec) # dd if=/dev/zero of=/dev/rsd0d bs=1m count=1000 1000+0 records in 1000+0 records out 1048576000 bytes transferred in 8.196 secs (127932286 bytes/sec) Thank you all. Bye Andrea

