can we use disk device for iscsi-target port?

Patrick Dung patrick_dkt at yahoo.com.hk
Wed May 30 18:25:07 UTC 2007


Hi

This port is from netbsd. I have test it, It is great.
I found it seems iscsi-target has to take a file instead of disk
devicek (eg. /dev/da1) as the target.
Below is my test result:

Starting iscsi_target.
Reading configuration from `/usr/local/etc/iscsi/targets'
target0:rw:0.0.0.0/0
        extent0:/dev/da1:0:10733223936
DISK: 1 logical units (20963328 blocks, 512 bytes/block), type iscsi fs
DISK: LU 0: pid 896:disk.c:778: ***ERROR*** error reading "target0"pid
896:disk.c:895: ***ERROR*** error allocating space for "target0"pid
896:target.c:1487: ***ERROR*** device_init() failed
pid 896:iscsi-target.c:150: ***ERROR*** target_init() failed

It would be great if disk device can be used directly.

BTW, I have not yet test netbsd with raw disk.
seems someone test on openbsd and it seems working:
http://www.freebsdforums.org/forums/showthread.php?t=43960

Thanks
Patrick


       
____________________________________________________________________________________Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC


More information about the freebsd-hackers mailing list