How to configure FreeNAS 11.2 to provision iSCSI storage for ESXi host

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello and welcome back this is a brand brush here and today we are going to have a quick demo of how to configure I scuzzy storage for your ESX environment for your env environment for your lab using freeness so I have used three nails eleven point two I think this is eleven point three four just to bear something in mind this is based on FreeBSD so when you are creating when when you download it first of all you need to log in to the website free now Scott or download the ISO from here you need to remember freeness eleven point three minimum requirement is you need to create a virtual machine which is a 64-bit CPU or even if you are installing it on a physical server which has storage attached mean you need to make it has a minimum of 8 gb of memory on that server now let's get started so I have already installed three nails here this relation is fairly simple you just been able to see well basically if you are doing it on over the machine make sure you create a virtual machine which is FreeBSD virtual machine you need to select other to do that I will quickly show that option as well once I open my lab so when you are creating a virtual machine for FreeNAS make sure you right-click when you create over the machine you need to have a freebsd virtual machine so let's click Next FreeBSD well scene as in this instance that's fine leave that on whatever it is over here you can see other I make sure you dropped on and go to 3b SB 1160 for bit o if you can see here 3 P as the 3:11 virgins so the one which we need is 11 because we are going to install FreeBSD 11 it's going to be a 64-bit edition not at 32 so make sure you select that click Next and then basically to ask you for how much memory make sure you give 4 CPUs and 88 memory so this test basically this quick setup on the shrine aside although I want to remind you that the hard drive you need to add a 20 gig for the OS and make sure it's in provision again so that you save the space in your lab any devices you want to prevent the data store which we want to present from this storage we are going to have it added as individual disk so add a new disk say for example I will add a brand new disk of hundred thick which I'm going to be presenting over here to my lab make you again its thin provisioned if you want to add two lands minimum that is recommended because for having a cluster with H a running you need to have two lands minimum so whoops not existing on I need to have a new one and then just make sure you add another 100 clicking learn ok and then make sure it is thin provision as well so I'm going to skip the part of the installation it's as simple as just taking the CD in and following the steps so this is the configuration you need to have so remember that we selected FreeBSD as the operation operating system 3vs3 11 64-bit we have selected four CPUs and eight key memory I have one network card which is more than enough on the storage side we need to remember that the OS is going to be installed on the 20 kick drive and leave the hundred gig drive and the other hundred grit drive which is going to be to the two data stores on this environment make sure you always always use thin provision so that you maximize the over-provisioning you can do 1 Y environment so that's about it for the hardware side let's click finish the VM will be created however I have my VM running already in the environment to save some time for today's session so here's my FreeBSD running active I have already proved it in some storage and I have been playing around with this in month no CLI interface similar to this and then it will ask you to configure the IP press this like so there you go so this is going to be similar to this so make sure you select the first option and configure the network interface and you set this to be on a static IP address not your DHCP because this is going to be your Storage Server you don't want it to reboot and catch another IP then all your VMs will be disappeared because your storage is gone and booted with a different IP when you put it it picked up a different IP so make sure you that's another tip basically make sure you select static IP addresses and then one figure the DNS and everything like root password when you created make sure you remember that because only then you will be able to enter this interface ok once we are in the interface what I would suggest is because we are going to use I sky the first thing we need to do is to go to services and over here you'll find FreeNAS has a lot of services it can be used for NFS for ice Kathy but we are going to use it for I Kazi so we basically will enable the ice kadhi server service to start off so first enable this service which is just flipping this here start automatically so when you reboot your machine you need to make sure it starts automatically if not obviously or if you reboot this your you need to manually come back here and then enable it every time so make sure you select that and then the next thing you need to do is first we create a brand new disk so for this machine I'm going to add a brand new mesh disk which you can witness so that you can follow so this let's do a thin provision disk which is going to be 40 gig disk ok as you can see in in the disk which I have created I have in the demo which I have created for you I created 200 kick disk over here we are going to add 40 gig disk I have already got quite a lot of disk here 20 gig this is the where is the one where the OS is running about 200 GB disk have a 30 GB disk and I have a 10 GB disk so we are going to add a brand new disk which is for 40 GB click on ok so what we do first is we go to storage and then we click on pools so there are three different things which we need to remember so the first thing we need to do is to create a pool so as you can see I have different pools here ignore what I have here let's start from beginning so I will click on add and then create a new pool I will click create a pool then I'll select disk and I can instantly see the new disk which I have another thing you can check out the disk here if you won't do if you click on disk as soon as you add a new virtual disk you can click here and see whether the disk has come up and you will be able to see it here as well so let me quickly show you that so the new disk which I have added is 40 gig and it's available here and these are the other discs which we were talking about the twenty cake the 210 and 30 so and again this is a boot pool so you don't touch that disk at all okay so let go let's go back to storage and then in storage we are going to go to pool and then let's take know what we have here for a moment and let's say whether this if this is a new brand new setup we just click on add create a new pool yeah select disk ok and then you will see this disk come up which is what we get select that and add it here so that's the first thing we did but first before that we need to add a name we will add data store for 5 so that's the name of my disk with so always I have noted that it is it becomes increasingly difficult if you name things randomly so if I am creating a new data store which is 40 gig make sure you don't specify any capacity but make sure you remember it what you you have given and use the same naming convention everywhere because what I mean by that is you have to have Enosh initiators created when you are creating this so you need to be having that consistency so let's talk through it so data store yeah oh five create confirm now this is just the pool for datastore Phi which we have created the actual device or actual ZFS filesystem which we call or the raw data is not going to be stored in this you need to still create a partition for that so what we are going to do next is we create the partition which will complete this section for creating the storage so what we have done is because I didn't have a disk I had it have to add a disk for for you you might already have that hundred gig to disk which we have so we just need to create two of these so add and then add five 100 GB and then again add an add the other disk on another pool and call it something else like maybe you will call it at a store one and two over here I have called it fine now I can see the disk here what I can do here is I need to create a dataset no so I will go here and then say add that ball which is a volume now for this till that wall I am going to call it datastore you re o 5 - 1 5 this one to see the naming convention before I commit to the just one second you compare this one okay Oh for and learn for okay so let's do that let's go back here close all this create a set wall and then I'm going to call it data store no five - 105 okay you could potentially I recommend as well that this is LUN fight but that's fine then what we do here is we specifies how much storage you want to give for this data store remember we have added a 40 gig line here for an example but I can choose to give it only half of what I have created so maybe I'll give 20 well more than half let's give 25 gb remember what will happen is it won't be actually giving you 25 it will have some partitioning and stuff like that so you'll get less than 25 when it is finally provisioned so that's going to be creating that partition now and as you can see over here you can see that healthy and 25 DB is provisioned which is 70% used 10 GB is free okay so out of 40 you still have some of it which you can extend later on if you wish to okay so now what we are going to do available 36 so well pretty much so you still have some day so this this section is done the story second is done the next remember guys so so far what we have seen is we have seen the services where we enable the I scurry service and we went to storage and then basically we created pool called datastore 5 and then we added the 40 gig disk in the pool which for you it will be hundred cake right and then once you do the first hundred cake repeat the process and at the end second hundred gig disc and qualitative throw - maybe and when you create the volumes the Z volumes call it datastore - learn one or run - whatever you want - but make sure you specify that same names so next we will be jumping on - sharing and then you will find a lot of options here for sharing so you can have you can share this to Windows a UNIX and an Apple file system if you want EFP you can share to apple with up and NFS as well and SMB as well here we are going to look at block I scuzzy know by default we will have to create a global configuration and when your system is configured if you basically come up with a global configuration I haven't given is and server name but it's up to you this will be automatically created this follows the I Triple E standard naming convention and they basically came up with you know this is how is this is the format of creating the I scuzzy know before diving into a little bit as I said I scuzzy is used to connect to your hard drive basically your disk or your data so traditionally you have your computer and you have your disk on top of your computer or you have used the scuzzy e serial bus or something to connect to your data but what if you are sitting on your laptop here and your data is far off on a different computer so you need to have some protocol to connect so I scuzzy allows you to connect to your data which is on your block storage on your day different computer using the IP protocol so that is why instead of having a local bus it's going through the you know IP traffic that is why it is called I I scuzzy so hope that concept is clear now first what we need to do is think of this as a three step process okay what we are doing what we are achieving here is basically the same thing which I just told you so we have your demo cluster which has the ESX host and then you have your shared storage here which is presented from same FreeNAS so one of as you can see this host is connecting to one two and three and then this host is connecting to one two and three data stores let's present it to Finas it doesn't need to be inflation environment it could be you know EMC three power your net have whatever it might be but the concept is going to be the same why do we need shared storage is because all these VMs which we are running in this cluster are now available and accessible by both of these hosts now in your production environment if this hose goes down as long as it has access this hose has access to these VMs which it will be because it's shared storage across all these hosts it will be able to power on these virtual machines and you can leverage something called high availability from VMware and then you will be also able to create clusters as I have you created a cluster for storage and then it will automatically balance itself out it will move them around and it will basically be a lot of admin overhead which you have if you don't have clusters so that will be all taken care off so this is why you need to have shared storage and this is why we are basically configuring here storage should have told it in the beginning but I had it ready here but I could really forward so at least we got to it so the other concept which I was saying is this double cat you can present I study to a server which could be a Windows server or ax or Linux server yep so that's also another thing which you can do and also what we could do potentially is that can directly access from here okay and then ESX as one can access so obviously it's not just for one technology which we are talking here for shared storage it can be used on your Windows Server either you know share or Linux or whatever it is okay let's get back to maybe where now this is the second phase which we are going to discuss I only discussed about the target global config now leave this alone because this is from the I Triple A standards and it will be automatically creating this name for you now we need to go to the portal now portal is way where you can say it's like I scuzzy initiator or a daemon which basically runs on your Linux machine right so leave it at zero zero zero zero you can make it very secure and you can lock it down to your network I think it is a good idea to do it when you are doing it on your production environment but on your lab just leave it to zero zero zero and this particular is the port leave it as it is thirty to sixty is the port for I scuzzy so leave it as it is okay and then we'll go to the initiators now as you can see I have already got some stuff running here let's just ignore it what we'll do here is we'll allow initiators to all and authorize all the networks because it's a lab environment but what we will do is let's get let's get started with this so let's copy one of this so that we have the same naming convention add the initiator and this is going to be five and this is the datastore five leave this to all sorry and then just I recommend that this is going to be data store five okay and then save this so as you can see it has grouped it with group 4 but initiators are all that means obviously it's the initiator which is going to be available for any of the hosts which is in your environment and authorized Network is going to be any and I have named it datastore file and file for my convenience now we need to go to well authorize access we are not going to put any restrictions here so we'll move on to targets so targets are basically think of it as you have your device and you need to point it to a target so we are going to point our datastore yeah which we have created Oh five and we need to create a target and an alias name now it will all piece together when we start doing extent so all these three different things basically they will all glue together when we do the next way so let's carry on with doing this next bit which is creating a target name and an alias for the target name so over here will be giving a target name yeah and then target alias and then over here you will use the FreeNAS because this is our portal group ID which if you remember the first tab which we had is the portal block and over here is the what's most important back to initiate a group which we created on the previous section has come up here no and it's it was labeled as number four but we have we be labeled it as lettuce profile and five so we know exactly it's the new data store which I have created with 25 click to select that authentication you are not giving to touch this or authentication group number we are not going to touch it so make sure you select that and then click Save total ID total group ID is something which I'll quickly show you again because then you will need to remember that so this is the block I study section which we are working on so far so this is the third section we are working on remember that so this is the portals and I said portal is one which is freeness which it was coming up with yeah so that was the poor to be selected and then we selected the initiator which we created here which came up as force so always remember go from the left to right and you won't find any problem so this is already created this tab as I said earlier then victory we came to the portal which is already there because your free nurse was there if you are doing for the first time you need to create and you need to add a portal target should come up automatically if not just create a target and then add a portal and then you need to make sure it's zero zero zero zero so that it's it's allowing everything all the traffic and also obviously you need to name the portal so you may put in group ID which is one over here and this is a comment in which you can find when we added that initiator so then we went here and then we added the initiator and natok authorization to all all and the group ID came up as four and then datastore or five landfire commented please skip this section and then we came to target target we saw two important things here you'll quickly go and edit it again so this is a quick recap so I labeled it target name and a last name but portal group ID is one which we saw and over here we found our initiator which we created on the initiator group and it was four and datastore five so happy till now then what we'll do is we'll move on so this is the extent this is very important so we need to now create an extent again you see how we are following the sequence right so extent is very important we need to have extent which means have the data which we created in our environment so the data was it was a pool and the pool was having 25 of data which we assigned so we basically provision only 25 gig out of that 40 gig right so over here we are going to assign that now so if you go here extent name I'm going to do it the same name however I'll call it extent - so I know this is extent device type always leave this to device some people try to do it with files and give a path and stuff I would suggest this is block storage leave it as device and keep it simple really now over here you can see that the data which you created that drives which you created after that the Lund which I was calling it is not 25 gig and we can see it here and it is under this name datastore 5 datastore 5 slash data so fine learn 5 as you can see there is another data store here with 25 gig but you won't get confused now because you labelled it properly and you know exactly then it is LUN 5 and they justify not this one so make sure you select the right one and now you have selected given the extent they testify learn Phi the name as well and that's about it on this section click Save so the ego extent is created now and now you are going to glue everything together so you got the extent which has this storage this provision 25 gig you got the target which has the portal and the initiator so these two have been combined here and you have the extent which basically glued up the storage which we created is that full with 25 gig and it has been integrated in this extent here now is the last and final tab before we jump to our ESX host and over here we are going to again add and all we have to do here is just select datastore file 1 5 and then learn ID is going to be five extent is going to be datastore five one five yeah so basically we are adding the target to the extent and we are just giving a LAN ID know if you know about storage storage whenever you present any storage from the storage devices it comes up with a LAN ID and this basically this data store is going to come up as 185 because we are have given an ID five here okay so save this and voila this is your job done on FreeNAS you know it has taken a little bit but it's a necessary thing to go through again and again so that you glue it up in your mind and I can't stress more about the name intervention which I have followed here make sure you try and follow to whichever standard you want but try to keep everything individual and don't don't you know cross-reference your lungs or data stores that's the tip here okay so our job here is done your LAN is no presented which is 25 gig now we are going to go to your ESX host and guess what I have just built a brand new ESX host for you guys to start from scratch so you will witness how to add a new host and how to provision and you this so the name of this host is V SVC sorry vsx ESX what's happening to me e sx v o 3 ok so let's get started here I'm going to pull up Internet Explorer so for the first n clusters there you go guys this is the second part of the demo where you are going to add the storage now we are going to add a new host first and then quickly we'll do the rest p sx v or three dot angel' ops got hold of UK root and my password next yes XV o 3 AG e obstacle to a select s thumb print sha thumb print now you can see the brand-new host is connecting now saying that is VMware hardware because it's a nested ESX host version seven and it's all ready now to be added so you'll see it added here soon enough you can see the tasks progressing that the host is getting added and I can see the host coming up brought up in the bottom here it's not going inside the cluster but we will wait for the host to be added completely looks like it is that it completely and then let's go and drop it here because I want it in this cluster so there you go the hostess come up here so that was a quick demo of adding a host I guess for you guys it's reconfiguring Hetchy so we need to pause a little bit for this course to get settled down and then first thing they are going to do is we are going to create VM kernel port for adding your I scuzzy init initiator before adding a nice car the initiator okay so what does that mean that basically means you need to have another IP address reserved for adding new network to talk to your storage so what are we going to do we are going to do pretty much like this so we need to have so this is our new host we adding ESX 303 yeah so this need to have management IP which we have now it needs to have VM kernel is CSI I square the IP address so that I square the IP address is going to be used to communicate choose a different color let your storage okay and then so that's the first step okay so that that is our first step so let's put some steps here first up is add vm from import for ice curly then second step will be adding either the software initiator okay and then we'll be basically adding the third stuff we'll be adding these three nurse IP address as dynamic and risk and for step please scan the devices storage devices adapter slash devices and then we can see the storage and then we just trillion they take store oppai plum file which has to define gb of space hope it makes sense so let's crack on guys so first step is adding a VM kernel port I've already reserved an IP for this it is a 13 I think it is 13 identically 113 sorry and let's look up so it was 192 dot 168 so 101 1 3 yeah so I have reserved this IP so I scuzzy for this particular host so that's what we are going to use so let's get here so I think I see the host is ready now it does have alert here Hetchy host it is okay so we I can work on that issue later on it doesn't have resilience I know that it only has one network card so what we'll do is we'll go to configure and then we'll go to you can hole adaptors well now we will be adding a new vmkernel adapter so we'll go add a network adapter and then we'll select virtual vmkernel data adapter which is fine and then click on next and then we will say select an existing network or or select existing standard switch so it will be a existing standard switch which is switch 0 which is already created click OK you could have another network card attached because this is a nested ESX environment and then use that but for now I am just going to be using the same message 0 so I'll call it I at the SI - t are a little fancy you don't need anything here but we need an IP address as I mentioned earlier so we'll be assigning not automatic the IP address which I have selected which is 13 my subnet is slash 24 ok and then the gateway as you can see it has picked it up and it knows it has got the DNS for me anyway so there you go guys this is how you add the adapter and it will come up here as police I square the adapter so that's step one done it's a green tick box here I will say let's say this is done let's draw a square there and then now we are going to add a I square the software initiator just Isaac levy software nice equal to so for that you need to go to the storage devices so go tools for its adapter first and again we know that there is no storage devices here but no it's only the local disk yeah and then you see your on Drive it's things it helps if you go to datastore there is nothing here then you see that if no data slow at all so we go back to configure that was a quick checks before we go ahead so go to configure movie storage adapters and then we will add software adapter and then the one-wheel dad is a had a software I square the adapter because that is what we are going to use click OK did you see that quickly something came up in the recent tasks and it was creating an initiator and it has done it now and what I will do is all select all so that people can see what's happening so there you go change software initiator status so that's me doing all these so it basically open the firewall and everything in the background for you so you don't need to worry about it so there you go your eyes kadhi is created here now we are very close to over demo end of the demo we are nearly there so what has happened is we added our ice credits of the initiator now we are going to add the freeness IP address ok eight people oh yeah address is spelled wrong you know anything a lot of typos but this is what we are going to do so the IP address for my FreeNAS if you guys didn't pick it up it was it was it was now you do not need to give an IP you can also give the ITO by name let's try giving the domain name but I have got the IP the IP address is 1 you can check it from here the mobile networks mobile config so the activator says 192 168 1 . 150 but let's this and I think I would suggest really to do that do the IP address instead of name domain name because it's better if your DNS is drawn then you lose your storage right so why would you take the risk so again this this labs is all demos is all about discussing what is best to do and I would say just to do that so we select ok so we created this I square the target software adapter select software adapter and then click on dynamic discovery click on add and then the easiest thing you can do is add the IP well I copied the domain name but let's stick to IP it was one ninety two dot one sixty eight dot one dot one five zero click on OK and then you should ask you to scan yes can you see that due to recent contribution changes a scan of VM hva 65 which is this one is recommended so go ahead and rescan storage click OK and then at the bottom you'll see all rescanning happening it's waiting waiting just trying to do the risk and it's completed now the magic happens if you click on this static discovery now you should be able to see all the lands which has been created so far bingo and this is the brand-new line which we created just now which is O 5 and you can along with that you can see all the other ones which was datastore one two and four which we were talking about if you go here this section takes more time because it scans all the stories so they go datastore 1 2 & 4 3 I deleted it because it's what thick provision I didn't like it and I couldn't figure out how to get rid of this from here so that's why I ended up creating 4 and then now I have we have created together 5 which is 25 now the last part is how to provision it on the datastore so the quick so these plants were already provisioned in this environment so you can already see they have appeared but you can't see the datastore Phi anyway here yeah so what we will do is first of all I will copy the name because I want to keep keep the naming standard as you know I want standards to be followed so now we will correct click on the host doesn't matter which was do you want to add it to but we just added a brand-new host so it was convenient to for you guys to see each other so we click on any host and go to storage and then you say rescan storage first so just to be sure we have rescan it so many times but we didn't rescan it on the first one that's why I am rescanning it and I have found it that if you page the storage you need to make sure you rescan the host or the easiest one way to do is if you have like 10 hosts in the cluster you don't need to do is turn one at a time you just click on the cluster like I did here and then go to storage and then you say rescan and then it should go ahead and rescan all the all the hosts one by one for you see then you see that all three of them it's be scanning all at once so the rescan is done now we are going to right click again doesn't matter which one let's choose three again and that we just go new storage and then we select which storage you want we are not doing it was we are not doing NFS you are going to do VMFS filesystem and then select next now over here is your 25 gb disk can you see that so that is the local disk where the OS is installed and that's why it says local yoga disk and this is coming from Finas and it does have another two on it as well as you can see and it has this long gibberish number it is called the any number which is coming from the storage so select that click on next and then it will ask you which file system BMS 5 or 4 or 6 so VM plus 6 of course click Next and then it will hang on did I name it no I didn't do you me so just name it 5 FreeNAS 1 5 and then click next next again so we are going to use all the 25 take what we can do if you want to you know do another demo extension of disk you can you can basically instead of use all available configure it and say ok I want to use only 25 gig data store size well we can extend it from the back use all of it for now because I can extend it from because I save 10 gig already on the FreeNAS so I can extend it from free now then we can do a good we stamp so finish now you can see 25 gig storage here which is ready to be added and you just click on finish then you should see it come up as you can see it's creating me access file system and there you go the disk has come up you can see here the datastore cluster is there and all these three or these three data stores are a part of this cluster no storage in VMware world is called datastore from the storage world basically it's called logical unique number one and then we call it alone ID one already fine so this basically was the LUN presented from FreeNAS and you can see it's a 25 gig one and on vmware we'll call it datastore this is why it comes up on a datastore tab now this status 2 is basically somewhere we have a datastore tab here as well and you notice that I've created a datastore cluster as well it's similar to how we create the ESX host cluster so this data stroke last I can add this LUN in this data flow cluster we will go in detail when we are going through our sessions what benefits we have there is a number of benefits for creating data store clusters as well so there you go that's the brand new learn how we create it just before we finish I will quickly show you how to increase the datastore size as well so go here on your freenas and then you can see the volume here which is 25 gig select that and edit this volume so this is the one which we created as 25 gig we will make it 30 and then save there's nothing else that needs to be done as soon as you increase this anja storage side because it's presented as we have FS all you have to do is to a rescan so once it is completely provision from your storage or your storage team can be a separate team they once they have died it you can see that it is now gone to 84% it was 70% before so it says 30% 30 GB now instead of 25 gb you used so this done successfully which we have cross-checked but over here what's happening if we go later stores this lon is still 25 kick well 24 something so it hasn't it has not been extended you can even extend it on the fly so it could potentially have VM sitting here and all of a sudden you could have seen oh my god the this data store is getting filled and it's only 10% remainings so what can we do do I have to create a big one or no you just need to extend it from the background on back ask your storage admin to extend it and you can extend it here click on the demo cluster so you can see 25/8 roughly right so we will extend it here increase and you can see a 5 gig extension here which one ID is 5 Allah saying when I was provisioning it it's line ID was 5 so this is another way of cross-checking that you are not actually using a different learn other than what you should be using so then ID is 5 and it's 30 gig and it was 20 gig before 25 gig before so you select that click Next and then it will ask you you want if you use the full space so this is the empty space and this is the previous space so you can say yeah use my gig to expand the datastore and click Next finish and then you should be able to see 29 there you go so that's about it guys I hope you like this demo it was fully dedicated to storage and FreeNAS it's a very good product I have been using it since a long time if you like my video please don't forget to subscribe hit the notification bell and comment on below and let me know whether you used restore it in your lab and if you are enjoying using the free nails really and my website is a dialog slot color decay so be sure to subscribe to my website and my channel which is one which you are watching now also you can follow me on Twitter at Yahoo I see cheers bye [Music]
Info
Channel: Ibrahim Quraishi
Views: 4,978
Rating: undefined out of 5
Keywords: freenas setup, FreeNAS, freenas configuration, network attached storage, nas, freenas 11, storage, freenas 11.3, zfs, freenas install, open source, freebsd, freenas tutorial, freenas, freenas setup 2019, freenas setup step by step, freenas setup tutorial, freenas 11.2, freenas storage, tutorial, freenas full tutorial, freenas storage configuration, freenas storage pools, freenas initial setup, freenas 11.2 setup, vmware, vmware tutorial for beginners, iscsi configuration on ESX
Id: 6OKh3HhBG50
Channel Id: undefined
Length: 53min 7sec (3187 seconds)
Published: Thu Jun 25 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.