Date: Thu, 31 May 2007 00:37:33 -0700 (PDT) From: Patrick Dung <patrick_dkt@yahoo.com.hk> To: Mark Foster <mark@foster.cc> Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: can we use disk device for iscsi-target port? Message-ID: <786193.7469.qm@web54302.mail.re2.yahoo.com> In-Reply-To: <465DF06F.9090500@foster.cc>
next in thread | previous in thread | raw e-mail | index | archive | help
My testing env is Vmware, the backend disks are new/empty. Here's my testing result: 1. OpenBSD 4.1 with iscsi-target compiled (I can't find it in the ports) It support disk slice directly, I use /dev/sd1c. 2. NetBSD 4.0-current with iscsi-target in base OS It support disk slice directly, I use /dev/sd1d. 3. FreeBSD 6.2 with iscsi-target port: When the new harddisk is added. It is empty and do not have any individual slice (only have /dev/da1). iscsi-target cannot use /dev/da1 directly (tested yesterday) /dev/da1c is gone in FreeBSD (since 5.0).... I have tried to create a disk slice by fdisk (/dev/da1s1 and /dev/da1s1c is created). But iscsi-target cannot use them directly: Reading configuration from `./targets' target0:rw:0.0.0.0/0 extent0:/dev/da1s1:0:629145600 DISK: 1 logical units (1228800 blocks, 512 bytes/block), type iscsi fs DISK: LU 0: pid 1916:disk.c:778: ***ERROR*** error reading "target0"pid 1916:disk.c:895: ***ERROR*** error allocating space for "target0"pid 1916:target.c:1487: ***ERROR*** device_init() failed pid 1916:iscsi-target.c:150: ***ERROR*** target_init() failed Reading configuration from `./targets' target0:rw:0.0.0.0/0 extent0:/dev/da1s1c:0:629145600 DISK: 1 logical units (1228800 blocks, 512 bytes/block), type iscsi fs DISK: LU 0: pid 1919:disk.c:778: ***ERROR*** error reading "target0"pid 1919:disk.c:895: ***ERROR*** error allocating space for "target0"pid 1919:target.c:1487: ***ERROR*** device_init() failed pid 1919:iscsi-target.c:150: ***ERROR*** target_init() failed Patrick --- Mark Foster <mark@foster.cc> wrote: > Patrick Dung wrote: > > 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 > > > Whole disk or slice? I don't think either works at this point but > can't > say I've tried. Can you please test an individual slice and report > your > findings? > > -- > Said one park ranger, 'There is considerable overlap between the > intelligence of the smartest bears and the dumbest tourists.' > Mark D. Foster, CISSP <mark@foster.cc> http://mark.foster.cc/ > > ____________________________________________________________________________________ Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. http://videogames.yahoo.com/platform?platform=120121
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?786193.7469.qm>