Latest News:
2019-02-21: XigmaNAS 11.2.0.4.6536 - released!

Latest BETA Release:
2019-02-21: XigmaNAS 12.0.0.4.6536 - BETA released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

Migrate from istgt to ctl

iSCSI over TCP/IP.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
biggsy
Starter
Starter
Posts: 58
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Migrate from istgt to ctl

#1

Post by biggsy » 24 Dec 2018 07:34

Hello all,

I have a XigmaNAS install on a standalone machine that I use for Windows backups. There is an iSCSI target on that machine that I connect to (with the Windows ISCSI initiator) but only when needed.

I've tried multiple times to change the existing target from istgt to ctl without having to re-copy all the files. So far, no luck. Windows doesn't see the existing files.

Is this even possible? If so, any help/hints about what to do would be very much appreciated.

User avatar
ms49434
Developer
Developer
Posts: 534
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Online

Re: Migrate from istgt to ctl

#2

Post by ms49434 » 24 Dec 2018 13:21

it is not recommended to migrate settings only and trying to keep the data. It is possible but you have to ensure that ctld reports the same information as istgt would do.
Creating a new ctld-based iSCSI target and moving the data is the safer option IMHO.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

biggsy
Starter
Starter
Posts: 58
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: Migrate from istgt to ctl

#3

Post by biggsy » 25 Dec 2018 07:14

Thanks, ms49434. I was afraid that might be the answer.

biggsy
Starter
Starter
Posts: 58
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: Migrate from istgt to ctl

#4

Post by biggsy » 26 Dec 2018 10:22

No matter what I try, I cannot get Windows to connect to iSCSI using CAM. It must be me but the terminology for (i)SCSI is completely foreign to me.

There used to be a good, simple HowTo for configuring an iSCSI target. I used it to set up my current target but I haven't been able to locate that.

I think there was someone here recently who said they would produce something similar for CAM/ctld. I can't find it if it does exist.

Anyone likely to do that in the near future? I really want to make the switch to CAM/ctld.

Ah, I found the original HowTo. Forgot it was in the Wiki. Something similar for ctld would be great.

User avatar
ms49434
Developer
Developer
Posts: 534
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Online

Re: Migrate from istgt to ctl

#5

Post by ms49434 » 26 Dec 2018 14:06

biggsy wrote:
26 Dec 2018 10:22
No matter what I try, I cannot get Windows to connect to iSCSI using CAM. It must be me but the terminology for (i)SCSI is completely foreign to me.

There used to be a good, simple HowTo for configuring an iSCSI target. I used it to set up my current target but I haven't been able to locate that.

I think there was someone here recently who said they would produce something similar for CAM/ctld. I can't find it if it does exist.

Anyone likely to do that in the near future? I really want to make the switch to CAM/ctld.

Ah, I found the original HowTo. Forgot it was in the Wiki. Something similar for ctld would be great.
here's an example of a working configuration of the timeshift target for my satellite receiver:

192.168.2.35 iSCSI target (XigmaNAS, ZFS volume, vol mode: dev, block size: 4K)
192.168.2.211 Satellite Receiver (Windows 8.1, 'thor')

Code: Select all

# global settings
# auth-group configuration
# ag-thor
auth-group ag-thor {
	auth-type none
	initiator-name "iqn.1991-05.com.microsoft:thor.maxs8.local"
	initiator-portal "192.168.2.211"
}
# portal-group configuration
# pg-thor
portal-group pg-thor {
	discovery-auth-group ag-thor
	discovery-filter portal-name
	listen "192.168.2.35"
}
# lun configuration
# timeshift
lun timeshift {
	backend block
	blocksize 4096
	device-type disk
	serial "TIMESHIFT01"
	option vendor "FreeBSD"
	option product "iSCSI Disk"
	option revision "0123"
	option insecure_tpc on
	option reordering unrestricted
	option rpm 1
	option formfactor 3
	path "/dev/zvol/recorder/timeshift01"
}
# target configuration
target iqn.2014-12.timeshift {
	alias "timeshift"
	auth-group ag-thor
	portal-group pg-thor
	lun 0 "timeshift"
}
000.services_ctl.png
Authentication Group Configuration
001.services_ctl_auth_group.png
002.services_ctl_sub_initiator_name.png
003.services_ctl_sub_initiator_portal.png
Portal Group Configuration
100.services_ctl_portal_group.png
101.services_ctl_sub_listen.png
LUN Configuration
200.services_ctl_lun.png
Target Configuration
300.services_ctl_target.png
301.services_ctl_sub_lun.png
You do not have the required permissions to view the files attached to this post.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

User avatar
ms49434
Developer
Developer
Posts: 534
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Online

Re: Migrate from istgt to ctl

#6

Post by ms49434 » 26 Dec 2018 23:12

and the configuration of the ZFS volume:
400.disks_zfs_volume.png
You do not have the required permissions to view the files attached to this post.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

biggsy
Starter
Starter
Posts: 58
Joined: 02 Jul 2012 10:24
Location: Sydney, Australia
Status: Offline

Re: Migrate from istgt to ctl

#7

Post by biggsy » 31 Dec 2018 04:53

Thank you for all this information, ms49434. Unfortunately, I seem to have got myself into a lot of trouble.

While trying to adapt your configuration settings to my own system, I still couldn't get Windows to connect and thought it would be better to start over - rebuilding the ZFS mirror I had and then following your screen shots.
2018-12-31_14-47-05.jpg
Now I have Windows connecting but when I go to initialize the disk (via Disk Management) I get this error:
2018-12-31_14-50-04.jpg
It looks (to me) as though there are left-over partitions on the two disks and they are hogging all the disk space - I did have quite a bit of trouble blowing away the old ZFS config.
2018-12-31_14-31-43.jpg
If that is the case, how to clean the disk?
You do not have the required permissions to view the files attached to this post.

User avatar
ms49434
Developer
Developer
Posts: 534
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen, Germany - GMT+1
Status: Online

Re: Migrate from istgt to ctl

#8

Post by ms49434 » 31 Dec 2018 15:50

To wipe ZFS related information from a device run

Code: Select all

zpool labelclear [-f] device

	Removes ZFS label information from the specified device. The device must not be part of an active pool configuration.
	-f		Treat exported or foreign devices as inactive.
Wipe partition information from a device with

Code: Select all

gpart destroy [-F] [-f flags] geom

	Destroy the partitioning scheme as implemented by geom geom.
	The destroy command accepts these options:
	-F		Forced destroying of the partition table even if it is not empty.
	-f flags	Additional operational flags. See the section entitled OPERATIONAL FLAGS below for a discussion about its use.
1) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 11.2.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 1x HGST 10TB , services: rsync.

Post Reply

Return to “iSCSI (Internet Small Computer Systems Interface)”