Page 1 of 1

iscsi and Linux Mint 19.3

Posted: Fri Feb 07, 2020 2:08 am
by trebor7_1
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

Re: iscsi and Linux Mint 19.3

Posted: Fri Feb 07, 2020 4:55 pm
by storageman
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.

Re: iscsi and Linux Mint 19.3

Posted: Fri Feb 07, 2020 8:00 pm
by trebor7_1
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

Re: iscsi and Linux Mint 19.3

Posted: Fri Feb 07, 2020 9:01 pm
by storageman
That doesn't make sense, recreating target doesn't delete any data.
The target ID is completely independent of the LUN.

Re: iscsi and Linux Mint 19.3

Posted: Mon Feb 10, 2020 9:14 pm
by trebor7_1
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.