Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do this?

iSCSI related applications
Post Reply
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do this?

Post by olegd »

I need the iSCSI disk created on the volume to appear not only on a remote Windows machine but also on the NAS server itself, within its file structure.
How can I do this ?

QTS 5.2.4.3079
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

Hi and welcome to the forum. :)

Do you want to access the LUN via multiple clients at the same time?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by olegd »

No. Here's what I'm doing.
I have set up an iSCSI disk for a Windows desktop machine, where I perform backups of an important database. As a result, the database backup is saved on the QNAP NAS disk.
But in addition to this, I have the task of copying the same archive to a corporate Google Drive that has been allocated to me for work.
When I launch the backup creation tool on QNAP, it only allows me to select partitions and folders from the file structure. However, I cannot select the iSCSI disk where the information I need is stored, even though it is physically located here, on the NAS server.
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

Yes, because you need to initiate a connection to the LUN - even when it's on the same device.

This means you're attempting to access the same LUN via multiple clients (your Windows device, and the NAS itself).

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by olegd »

Yes, you are right.
And what do I need to do to achieve this?
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

The NAS LUN can’t be accessed simultaneously by the NAS and an external client.

You must first release the LUN from the Windows client, then initiate a connection to it from within the NAS so the NAS can access it.

Then release it afterward, and reinitiate a connection from the Windows client.

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by olegd »

This scenario probably won't work for me.
I don't know how to write a script that would do this during archive creation. Moreover, the archive is created on the Windows machine, not on the NAS.
It is only copied to the NAS. Currently, the iSCSI disk is always connected to the Windows machine. It would make more sense to simply set up copying of this archive directly to Google Drive.
Maybe there's a more elegant way to do this?
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

Can you achieve the same thing with regular shares?

Maybe setup a NAS share just for the archive, and have your Windows client write the archive to the NAS share, instead of into the LUN?

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by olegd »

I am thinking about this right now. Perhaps this would be the most correct and easiest way.
Although, I read that it’s also possible to configure simultaneous access to the LUN using clustered file access.
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

olegd wrote: Mon Apr 21, 2025 5:18 am Although, I read that it’s also possible to configure simultaneous access to the LUN using clustered file access.
That's true when the NAS hosting the LUN will be accessed by multiple external clients, but doesn't work when the NAS itself is a client. ;)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
olegd
New here
Posts: 7
Joined: Mon Apr 21, 2025 4:18 am

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by olegd »

Alright, my friend, thank you so much for your help. I'll probably go with this approach. Without using iSCSI. I'll just use regular shared folders on the NAS. That will make things easier.
User avatar
OneCD
Guru
Posts: 12790
Joined: Sun Aug 21, 2016 10:48 am
Location: "... there, behind that sofa!"

Re: Mounting the created iSCSI disk into the file structure of the same NAS server. Is it possible? And how can I do thi

Post by OneCD »

No worries mate, good luck. :)

ImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImageImage
Post Reply

Return to “iSCSI – Target & Virtual Disk”