LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2016, 03:39 PM   #1
TakeAwayDave
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
iSCSI configuration on RHEL 7 with existing extents from old Freenas


Recently stopped using FreeNas where I had set up a zfspool with 3 extents which were shared over iscsi.

I am now using these disks in a RHEL 7.2 server and want to reshare the existing zfspool using iscsi (as I had been doing with FreeNas)

I have installed and setup zfs which picked up the existing pool:

[root@sycamore ~]# zpool status
pool: STORAGE
state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(5) for details.
scan: none requested
config:

NAME STATE READ WRITE CKSUM
STORAGE ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-ST2000DL003-9VT166_5YD2PYT4 ONLINE 0 0 0
ata-WDC_WD20EFRX-68AX9N0_WD-WMC300200707 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
ata-ST2000DL003-9VT166_6YD1FVPV ONLINE 0 0 0
ata-ST32000542AS_6XW1YDN4 ONLINE 0 0 0

errors: No known data errors
[root@sycamore ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel_sycamore-root00 215G 4.0G 211G 2% /
devtmpfs 24G 0 24G 0% /dev
tmpfs 24G 1.3M 24G 1% /dev/shm
tmpfs 24G 9.5M 24G 1% /run
tmpfs 24G 0 24G 0% /sys/fs/cgroup
/dev/sde1 247M 208M 39M 85% /boot
/dev/mapper/rhel_sycamore00-home 699G 193M 699G 1% /home
tmpfs 4.8G 16K 4.8G 1% /run/user/1000
STORAGE 3.6T 1.6T 2.0T 44% /STORAGE
STORAGE/.samba4 2.0T 128K 2.0T 1% /STORAGE/.samba4

I have also set up an iscsi target and portal but am not sure how to associate the existing extents to the target:

[root@sycamore STORAGE]# ls -l
total 1636815334
-rw-r--r--. 1 root root 1650878054400 Oct 18 17:56 extent
-rw-r--r--. 1 root root 1100585369600 Oct 18 19:31 extent2
-rw-r--r--. 1 root root 1100585369600 Oct 18 17:56 extent3
[root@sycamore STORAGE]# pwd
/STORAGE

[root@sycamore ~]# targetcli
targetcli shell version 2.1.fb41
Copyright 2011-2013 by Datera, Inc and others.
For help on commands, type 'help'.

/> ls
o- / .................................................................................................... ....... [...]
o- backstores ................................................................................................. [...]
| o- block .................................................................................... [Storage Objects: 0]
| o- fileio ................................................................................... [Storage Objects: 0]
| o- pscsi .................................................................................... [Storage Objects: 0]
| o- ramdisk .................................................................................. [Storage Objects: 0]
o- iscsi .............................................................................................. [Targets: 1]
| o- iqn.2003-01.org.linux-iscsi.sycamore.x8664:sn.253bc772ce44 .......................................... [TPGs: 1]
| o- tpg1 ................................................................................. [no-gen-acls, no-auth]
| o- acls ............................................................................................ [ACLs: 0]
| o- luns ............................................................................................ [LUNs: 0]
| o- portals ...................................................................................... [Portals: 1]
| o- 192.168.2.10:3260 .................................................................................. [OK]
o- loopback ........................................................................................... [Targets: 0]
/>


How can I complete what I need to do ?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iSCSI target configuration help usao CentOS 9 08-31-2014 05:53 PM
RHEL 5 Iscsi configuration awilisch Linux - Networking 1 06-16-2013 06:23 AM
RHEL 6, infiniband,iSCSI and other stuff Dr_Viper Linux - Networking 0 07-22-2011 10:10 AM
[SOLVED] Iscsi target on Freenas 7 or 8 jefro *BSD 5 01-03-2011 04:39 PM
How to reset th iscsi configuration? Cisco López Linux - General 0 07-31-2008 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 PM.

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