iscsi and Linux Mint 19.3

iSCSI related applications
Post Reply
trebor7_1
New here
Posts: 3
Joined: Tue Jul 19, 2016 9:43 pm

iscsi and Linux Mint 19.3

Post by trebor7_1 » Fri Feb 07, 2020 2:08 am

Hi All,

I am having trouble getting an iscsi drive stay on my Linux Mint PC(s). I have followed tutorials such as
https://community.linuxmint.com/tutorial/view/1446
and also https://www.tecmint.com/setup-iscsi-tar ... itiator-on

The above tutorials go well and I end up with a disk on my PC that I can read and write to.
The problem is after some days the disk no longer appear on the PC. I can login to the iscsi device via the command line, which is successful, also shows as a connection on QNAP but no drive is available on the PC.

Login to [iface: default, target: iqn.2004-04.com.qnap:tvs-871:iscsi.hpz2002020.f92067, portal: 192.168.0.41,3260] successful.

So far the only solution is to make a new share on the QNAP and connect again with the PC but all data stored previously is lost. Any suggestion about what I'm doing wrong?

NAS is TVS-871 4.4..1.1146
Linux Mint 19.3
Open-iscsi

User avatar
storageman
Ask me anything
Posts: 5488
Joined: Thu Sep 22, 2011 10:57 pm

Re: iscsi and Linux Mint 19.3

Post by storageman » Fri Feb 07, 2020 4:55 pm

Have you tried connecting to anything else such as Windows?
Why do you need LUN?
Suspect Open-ISCSI is problem not Qnap.
Try recreating the target and reassigning LUN.

trebor7_1
New here
Posts: 3
Joined: Tue Jul 19, 2016 9:43 pm

Re: iscsi and Linux Mint 19.3

Post by trebor7_1 » Fri Feb 07, 2020 8:00 pm

Hi Storageman,

Yes I have done this before and that works fine again however anything stored previously is lost.
Don't really need the LUN just trying it out. But handy to backup as the drive appears to be local on the PC which is great.
I will try an a windows virtual box and see how that goes.

Thanks

User avatar
storageman
Ask me anything
Posts: 5488
Joined: Thu Sep 22, 2011 10:57 pm

Re: iscsi and Linux Mint 19.3

Post by storageman » Fri Feb 07, 2020 9:01 pm

That doesn't make sense, recreating target doesn't delete any data.
The target ID is completely independent of the LUN.

trebor7_1
New here
Posts: 3
Joined: Tue Jul 19, 2016 9:43 pm

Re: iscsi and Linux Mint 19.3

Post by trebor7_1 » Mon Feb 10, 2020 9:14 pm

Well when I loose the drive from Linux all I have been able to do is recreate a new target (delete the old target) and that works for a while.
I have created a new Thick LUN and formatted this from a Windows 7 running on VirtualBox. I can now see it on Windows and on Linux. If it "disappears" again I will try and recreate the target name and see how that goes.

Post Reply

Return to “iSCSI – Target & Virtual Disk”