![]() ![]() Enter an Extent Name and select a Volume: Navigate to iSCSI > Device Extents, click Add Extent.Select the Portal and Initiator Group IDs, and Authentication Group number: Navigate to iSCSI > Target, click Add Target.Note: If you dont want create a user for your home SAN, just because it makes life easier, then skip the user Access stuff and under the Target Global Configuration just select Navigate to iSCSI > Authorized Access, click Add iSCSI Authorized Access.Leave ALL in both fields to allow all client connections from any network: Navigate to iSCSI > Initiators, click Add Initiator.Select 0.0.0.0 as the IP Address (this means it will listen on all IPs). Navigate to iSCSI > Portals, click Add Portal.Navigate to Services > Core, and turn on iSCSI:.Enter a ZFS Volume Name, specify the volume size, then click Add ZFS Volume:.Enter a Volume Name, select disk(s), select Filesystem type ( ZFS has some neat features), then click Add Volume:.Open a browser and login to FreeNAS 8.2.So go to your browser and go to the webGUI.Note- any client Machine you want to connect to the iscsi SAN/NAS must have a iscsi controller, so if you are using a VM ensure that you have added the iscsi controller under the settings of your vm. Phase 3 setting up ISCSI SAN with freeNAS Next you will want to ensure that your router of firewall allows port 80 on the ip address you assigned to freeNAS.If you can’t ping the FreeNAS Ip you assigned try restarting the VM. Once you have done this go to the command prompt on your host machine, so this is no longer in the VM, its on the physical machine that runs Virtualbox and see if you can ping the address you just assigned in FreeNAS.You will not need to set a default gateway, since the primary interface is already using a gateway.So you want to configure the second nic with within your home network pool (eg. So if your home network is like most people you’re probably using a dhcp pool in 192.168.1.1-100 addresses.Typically the primary interface will use a non-routable address 10.0.2.10 which is being NAT’d externally.You should be be able to ping externally from the freeNAS VM, if you need to look at your network configuration.The primary interface you should leave alone, as this most like dhcp’d already. Once freeNAS is installed you will get a configuration screen.Now click the okay and go back to start the VM.Next you want to click on the Storage tab under the IDE controller there should be a EMPTY and a icon of a CD, on the far right of that you should see Attributes “CD/DVD Drive” and the very far right of that a CD, click on that and find the FreeNAS iso you downloaded, click okay.Download and install the Oracle VM VirtualBox Extension Pack that matches your version of VirtualBox. ![]() The advantage of this is will allow you add multiple USB devices and use them as storage. On the settings tab you should enable USB Controller, you will need to install an additional packages for Virtualbox to enable this feature as it doesn’t come out of the box.Nic 2 (Bridged Adapter, use wireless if its supported) Ensure that you have over 10GB of HDspace and at least 512mb ram for you VM (otherwise your volume creations will fail).Create a new VM in virtual box with the following configurations.At the moment VirtualBox allows up to 2 terabytes, I’m sure this will increase as future revisions come to pass.This will also allow various devices you have to mount the storage volumes.You may add multiple USB storage devices where you will be able to create volumes of various file systems types, essentially giving you the cloud type solution.So one of the key benefits of setting up a NAS in VM is it allows you setup a sort of home based storage cloud solution.There are commercial applications such as NETAPP that provide far more complexity in terms of functionality, however the principles are pretty much the same, and relatively easy to pick up on variations should you need to learn them on the fly in a job. It will help you understand the fundamentals of what is involved in setting up a NAS and how they work. This tutorial will teach you how to setup a NAS using virtual machines for the purposes of testing and learning. I had a colleague of mine suggest that I should setup my own NAS at home. So, I am writing this blog post for others who want to understand how SAN and NAS storage systems work. How to setup your own Cloud SAN storage at home using FREENAS and a VM ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |