NOOB...Setting up an iSCSI NAS on a FOG server?

General support questions
ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/04/15 21:18:31

Hey everybody, I am very new to Linux, NAS/iSCSI, etc. I'm trying to figure out how to set up our Buffalo Terastation TS-RIXL RAID5, iSCSI only NAS device, to be our primary storage for images made by our FOG server. So basically, when I image a machine I need it to save to the NAS. I don't know anything about this process. I've watched videos, read a lot of stuff, and I understand some of it but not getting the whole picture. Could somebody please help walk me through this, and I don't mind if you dumb it down for me.:oops: This is a project my boss put me on to learn so there's not really a time limit.

I'm running CentOS 7 - 64bit
FOG version 6867
NAS device - Buffalo Terastation TS-RIXL RAID5 iSCSI only

Any other info you need? Thank you in advance for your help! :geek:

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by aks » 2016/04/16 18:12:43

FOG uses PXE to boot machines (that's basically DHCP with TFTP to download the image).
The iSCSI side is where the images live. That means the FOG server will have to have access to the iSCSI storage.
In iSCSI terminology and in this scenario, the iSCSI server is the target and the FOG server is the initiator.
Now you should have what you need to know, so that you can read the docs on how to setup an iSCSI connection: https://access.redhat.com/documentation ... csi-target

ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/04/28 19:30:48

Is the portal I create the IP of the NAS I want to send the images to?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by aks » 2016/04/30 17:49:15

What? Please provide context - I read many question on this forum and it's unreasonable for me to remember the context(s) involved.

ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/05/16 20:36:03

In the link you gave me, in section 25.1.4 Configure an iSCSI Portal, what is the IP address for? It says "This portal is set to listen on all IP addresses with the default port number (that is, 0.0.0.0:3260). If I set a specified IP, what would that be? I hope I'm making sense.

markkuk
Posts: 739
Joined: 2007/09/07 10:56:28
Location: Finland

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by markkuk » 2016/05/16 21:46:53

Your NAS device is the iSCSI target. You won't be setting up the CentOS machine as an iSCSI target, so section 25.1 does not apply to you. You set up the CentOS machine as an iSCSI initiator as explained in section 25.2.

ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/05/17 20:06:40

Oh, now I see. Well since I followed section 25.1.3-4, how do I remove what I did? I can't find any info on that anywhere.
Last edited by ManofValor on 2016/05/23 21:20:34, edited 1 time in total.

ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/05/17 20:35:23

Ok, my NAS shows I'm connected but I get an error on the FOG side. I ran:

[root@localhost fogadmin]# sudo iscsiadm -m discovery -t st -p 10.x.x.x
10.x.x.x:3260,1 "target iqn name"
169.x.x.x:3260,1 "target iqn name"

Then:

[root@localhost fogadmin]# sudo iscsiadm -m node -T "target iqn name" -l
Logging in to [iface: default, target: "target iqn name", portal: 10.x.x.x,3260] (multiple)
Logging in to [iface: default, target: "target iqn name", portal: 169.x.x.x,3260] (multiple)
Login to [iface: default, target: "target iqn name", portal: 10.x.x.x,3260] successful.
iscsiadm: Could not login to [iface: default, target: "target iqn name", portal: 169.x.x.x,3260].
iscsiadm: initiator reported error (8 - connection timed out)
iscsiadm: Could not log into all portals

The 10.x.x.x is the IP 1 for my NAS. The other one is IP 2. Why the error? I'm guessing it's because it's not on the 10.x.x.x network.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by aks » 2016/05/18 16:19:44

The 10.x.x.x is the IP 1 for my NAS. The other one is IP 2. Why the error? I'm guessing it's because it's not on the 10.x.x.x network.
Probably, what is the actual address - is it really link-local?

ManofValor
Posts: 9
Joined: 2016/04/15 20:46:41

Re: NOOB...Setting up an iSCSI NAS on a FOG server?

Post by ManofValor » 2016/05/18 20:54:19

NVM, I figured out that the secondary IP port was not plugged in. After plugging it in I got a different IP, a right IP.

did you see my question 2 posts above this one? Do I need to do anything?

Post Reply