Hi,
while looking around in google, if found a logfile
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467390, where the
iscsi LUN cache is enabled, read+write:
Feb 21 22:19:15 localhost kernel: sd 1:0:0:0: [sdc] Write cache:
enabled, read
cache: enabled, supports DPO and FUA
My dmsg tells me a not enabled write-cache:
May 5 20:48:00 xen04 kernel: scsi190 : iSCSI Initiator over TCP/IP
May 5 20:48:01 xen04 iscsid: connection189:0 is operational now
May 5 20:48:02 xen04 kernel: scsi 190:0:0:0: Direct-Access
SUN SOLARIS 1 PQ: 0 ANSI: 5
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] 10485726 512-byte
hardware sectors (5369 MB)
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] Write Protect is off
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] Write cache:
disabled, read cache: enabled, doesn't support DPO or FUA
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] 10485726 512-byte
hardware sectors (5369 MB)
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] Write Protect is off
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] Write cache:
disabled, read cache: enabled, doesn't support DPO or FUA
May 5 20:48:02 xen04 kernel: sdh: sdh1
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: [sdh] Attached SCSI disk
May 5 20:48:02 xen04 kernel: sd 190:0:0:0: Attached scsi generic sg11
type 0
M
Question: Who can i enable the cache ? hdparms does not work:
[root@xen04 /var/log]$ hdparm -W 1 /dev/sdh
/dev/sdh:
setting drive write-caching to 1 (on)
SG_IO: bad/missing ATA_16 sense data:: 70 00 05 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
HDIO_DRIVE_CMD(setcache) failed: Input/output error
HDIO_DRIVE_CMD(identify) failed: Invalid argument
regards
Danny