📜 ⬆️ ⬇️

Forwarding an iSCSI disk from NAS via the Internet on MAC OS X

Good time of day! On duty, I do the storage systems and administration of OS X, in this regard, I want a strange one.

Let's define what it was for? First, it was interesting to try this design. Secondly, with such a scheme does not need to use a VPN. Thirdly, for specific things, when it is necessary that the system sees a hard disk, and not a network one. Of the small advantages, you can always see the size of the occupied \ free space, which is not the case with a network drive without climbing into the NAS administration panel.

For this operation we need iSCSI Initiator and iSCSI Target. We will build this on what was at hand the GlobalSan iSCSI Initiator and Synology 1812+ (iSCSI Target) example.
')
First, let's prepare the storage system. I will try to tell step by step for those who want to repeat on similar storage systems.

image


First we cut the necessary number of LUNs.

1. Select "Storage Manager".



2. Select the “iSCSI LUN” tab.

3. Click “Create”.



4. For example, select the first item, iSCSI LUN (Regular Files).



5. Fields.

5.1 Name - LUN'a Name.

5.2 Location - That place on the storage system, from where a piece of the required volume will be bitten off.

5.3 Thin Provision - Select “Yes” so that the volume occupied by data grows as it is filled, and does not immediately occupy the entire volume. Of the minuses, slightly reduced performance with the growth of the disk to the maximum size.

5.4 Advanced LUN Features - Needed for VMware support, cloning and snapshots. Cannot be changed later.

5.5 Capacity (GB) - The required amount of new disk in gigabytes.

5.6 iSCSI Target Mapping - ISCSI Target binding to a specific LUN (creating a new one, or linking with an existing one).



6. Select a name and copy the IQN (iSCSI Qualified Name).

6.1. Optionally, you can enable authentication.



7. Confirm the creation of the LUN.



8. Go to setting up GlobalSan iSCSI Initiator.



9. Click the plus sign and select "Portal / Group".



10. Enter the local storage address of Synology or the white IP, leave the standard port, any of the Group Name (I chose 123).



11. After adding, you should get something like this. We will understand in more detail.

11.1 I recommend entering the iSCSI Name and iSCSI Alias ​​from clause 6.1 here, if this did not happen automatically.

11.2 Should be determined automatically.

11.3 Alias ​​— Enter the iSCSI Target Mapping name from clause 6.1.

11.4 The local address will be added automatically, and a white IP will appear alongside (when configured via the Internet).

11.5 Check the box next to the address if you need a permanent connection to the disk (Persistent).



12. Click the “Connect” button, the color of the status icon will change to green and you will see the following window.



13. Click the "Initialize ..." button, you will see the disk utility window.

13.1 Select the desired disk.

13.2 Select the desired file system.

13.3 Select a name for the disk.



14. After some time (depending on the speed of the disks, volume, etc.) on the OS X desktop you should see such an icon.



15. Done! Time to open the champagne.

Used software versions:
OS X - 10.8.5
GlobalSan iSCSI Initiator - 5.1.1.423
Synology OS - 4.3

PS Criticism, advice, interesting finds and stuff, please leave in the comments.

Source: https://habr.com/ru/post/205508/


All Articles