NOOB...Setting up an iSCSI NAS on a FOG server?
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
NOOB...Setting up an iSCSI NAS on a FOG server?
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. 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!
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!
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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
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
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
Is the portal I create the IP of the NAS I want to send the images to?
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
What? Please provide context - I read many question on this forum and it's unreasonable for me to remember the context(s) involved.
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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.
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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.
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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.
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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.
[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.
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
Probably, what is the actual address - is it really link-local?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.
-
- Posts: 9
- Joined: 2016/04/15 20:46:41
Re: NOOB...Setting up an iSCSI NAS on a FOG server?
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?
did you see my question 2 posts above this one? Do I need to do anything?