LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2015, 06:31 AM   #1
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Rep: Reputation: Disabled
problem with iSCSI


hi dears,
I use centos 6.5,
I install iscsi target packages ,
I create a zpool volume ,
now , can you help me for :
how i use zpool for iscsi target?


thanks,

Last edited by hamsaeed; 01-11-2015 at 07:16 AM.
 
Old 01-13-2015, 02:39 AM   #2
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
Hi friends,
I can install shareiscsi for zfs on linux,
I create a zfs volume with :

#zpool create -f pool23-10 raidz2 sdb sdc sdd sde sdf sdg sdh sdi
#/sbin/zfs create -s -b 128k -V 512M pool23-10/lun1

when i set shareiscsi=on for vol of zfs show:

[root@localhost Saeed]# zfs set shareiscsi=on pool/vol1
ERROR: Can't open /etc/domainname: No such file or directory
ERROR: Can't open /etc/domainname: No such file or directory
ERROR: Can't open /etc/domainname: No such file or directory
Segmentation fault (core dumped)
[root@localhost Saeed]#

thanks,

Last edited by hamsaeed; 01-20-2015 at 06:04 AM.
 
Old 01-20-2015, 06:04 AM   #3
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
do you know what is problem?
 
Old 01-21-2015, 01:48 PM   #4
hamsaeed
Member
 
Registered: Dec 2014
Posts: 47

Original Poster
Rep: Reputation: Disabled
Hi dears,
I found solution,
I write for anyone that needs it,
this solution not need any patch for iscsi on zfs on linux,
first install ZoL and install tgtd for iscsi, then :
zpool create -f pool mirror sdb sdc
zfs create -ps pool/vol0
tgtadm --lld iscsi --op new --mode target --tid 2 -T iqn.2015-01.localdomani.localhost:zd16
tgtadm --lld iscsi --op new --mode logicalunit --tid 2 --lun 1 -b /dev/zd16
tgt-admin --dump
nano /etc/tgt/targets.conf
<target iqn.2015-01.localdomain.localhostool.vol0>
backing-store /dev/zvol/pool/vol0
</target>
cat /etc/domainname
localdomain
cat /etc/iscsi_target_id
iqn.2015-01.localdomain.localhost
service tgtd restart
service iptables stop
tgt-admin -s

in end, disable seLinux,

The Best Regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] pacemaker - iscsi: how to set up iscsi targets/logical units? eantoranz Linux - Server 9 01-02-2013 09:38 AM
ISCSI initiate problem babukamesh Linux - Server 8 12-16-2011 03:39 AM
iscsi problem in rhel5 jindalarpan Linux - Enterprise 1 10-17-2009 05:35 AM
Problem while creating PV on iSCSI disk. itsakc Linux - Enterprise 3 09-17-2009 11:13 AM
changes on other iscsi nodes attached to an ext3 iscsi target not being seen sldahlin Linux - Server 1 06-07-2008 03:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration