Re: Q: enable iscsi read/write cache

2008-05-05 Thread Mike Christie

info-dtnet wrote:
> 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  1PQ: 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:
> 
> [EMAIL PROTECTED] /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
> 

If you can change this parameter you normally have to do it in some sort 
of target setup screen or config file instead of hdparm.

Why do you want this btw? Is it for that bug? If it is you can use the 
kernel modules and tools from
http://www.open-iscsi.org/bits/open-iscsi-2.0-869.tar.gz
where the bug is fixed.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: Q: enable iscsi read/write cache

2008-05-05 Thread Konrad Rzeszutek

On Mon, May 05, 2008 at 12:14:22PM -0700, info-dtnet wrote:
> 
> 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  1PQ: 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:

You can't. The disk firmware doesn't support it. Thought I wouldn't worry much 
about it as
the iSCSI target (EqualLogic, NetApp, IBM, etc) will have a write/read cache - 
so
the data is being cached and isn't synchronous I/O (unless you define it as so).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Q: enable iscsi read/write cache

2008-05-05 Thread info-dtnet

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  1PQ: 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:

[EMAIL PROTECTED] /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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---