how to build a iscsi target server?

hi there,

i have downloaded the iet from sf.net

then i try to compile it with 'make'

but it give me a error like this:

make[1]: Leaving directory `/home/bear/downloads/iscsitarget-0.4.17/usr'
make -C /lib/modules/2.6.26-linode13/build SUBDIRS=/home/bear/downloads/iscsitarget-0.4.17/kernel modules
make: *** /lib/modules/2.6.26-linode13/build: No such file or directory. Stop.
make: *** [kernel] Error 2
li73-78:/home/bear/downloads/iscsitarget-0.4.17# ls /lib/modules/2.6.26-linode13/
COPYING MAINTAINERS REPORTING-BUGS drivers ipc net sound
CREDITS Makefile arch fs kernel samples usr
Documentation Module.symvers block include lib scripts virt
Kbuild README crypto init mm security
li73-78:/home/bear/downloads/iscsitarget-0.4.17#

P.S.:i have already downloaded and unzipped the 2.6.26-linode13 source code and put them into /lib/modules

thx

4 Replies

@jilingshu:

P.S.:i have already downloaded and unzipped the 2.6.26-linode13 source code and put them into /lib/modules

thx

Not completely, check your error message again and the ls of /lib/modules/2.6.26-linode13/ (notice there is no /build directory)

make: *** /lib/modules/2.6.26-linode13/build: No such file or directory. Stop. 

Please don't. There are much better solutions for what you're trying to do. Take a look at NFS, for example.

Also note that iscsi data is unencrypted.

iSCSI can be pretty aggressive on a network and demanding on a host. Since this is a shared environment please don't use iSCSI on a Linode unless you are certain it won't kill your neighbors.

Besides, in this environment it will perform worse than many of the other network storage solutions. Even NFS will perform better with less pain for the rest of us.

ok

i hav solved this problem.

and i wont use it :D

thx all

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct