Monday, November 8, 2010

FreeNAS setup

just for extra exposure i wanted to setup a NAS system over the vmware network so both servers and both clients have access to a network share/drive and eventually different network drives
here is what i did
this website was what i followed
http://www.lagesse.org/freenas-tutorial-for-windows-users-part-one-installation/

Part 1
1. Download the most recent FreeNAS from this page.
2. Burn the ISO image to a CDROM.
3. Put the CDROM in the machine you will use as the file server. (Note – all data on the drive(s) in this machine will be destroyed. Make sure you don’t need any of it before proceeding!)
4. Reboot the computer and boot from the CDROM.
5. Allow the CD to load until you see the splash screen (below).
splash
6. Press Enter

7. Assuming there is no data on the hard drives, select option 9 (Install/Upgrade) from the Console Setup Menuinstaller
8. From the install menu, select option #3 (Install ‘full’ release on hard drive)installer_menu
9. The system will now show you the names of the CDROM drive(s) in your system. Enter in the CDROM name at the prompt (in the image below this is “acd0″.cdrom
10. The system will now show you the name(s) of the hard disk(s) in your system. In the example below there is only one drive, named “ad0″. Type the name in at the prompt and press enter.harddrive


11. At the prompt for “size of the OS partition” type 64 and press enter.
The system will be installed and a final prompt (below) tells you not to format the data partition. Since we had only one hard drive in the system it was formatted as part of the system installation.
12. Simply press enter and you will return to the Install Menuinstall_complete

13. Press 7 to return to the main menu.
14. Remove the CDROM and press 7 to reboot the system.
15. Once the system is completely rebooted you will see the FreeNAS splash screen- press enter.
16. Note the IP Address assigned to your server. It is displayed on the top of the screen. You will need this IP Address.IPAddress



Part 2
1. Open a browser and type in the IP address of your server (in our example from Part One the IP address was 192.168.1.250. A Logon Dialog will appear:
logonThe login name is “admin” and the password is “freenas”. Enter this and click enter.



2. The main configuration screen appears as below. There are MANY options here – but most users will only need to change a few of them. The first thing we will do is change the default password. On the left hand navigation click “General” under system settings.general
3. Click the Password tab.password
4. Enter the old password and then the new password in the dialog – the new password is entered twice.pw_change

5. Click back to the General Tab.
  • Here you can rename your server. The default name is freenas, and that works for me. Feel free to change it. I haven’t played with this so I would stick with a single word with no spaces or odd characters.
  • If you are on a domain you can change the default. I’m just on a Workgroup, so I’ll leave this as local.
  • For added security you can change the admin name to something else.
  • Change the time zone so it reflects your location.
  • Click the Enable NTP checkbox to allow the server to update the clock over the Internet.
6. Before configuring anything else we will reboot the server and make sure that we can still login with our new credentials. On the left navigation under system click on Reboot, then click on Yes.
7. The system will only take a minute or so to reboot. Refresh your browser window and type in your new credentials. Next we prepare the shared drive.
8. From the Navigation Menu select Management under Disks. In the screen displayed click the circle with the plus in it to add a new disk.disk_mgt
9. There are three things to change on this page:
  • First, select your hard drive in the “Disk” drop-down. If you had only one drive this should already be selected.
  • Second, let’s save some power and allow the hard drives to power down. I set my hard disk standby time to 20 minutes.
  • Third, set the Advanced Power Management – I set mine to minimum power use with standby.
  • Click the ADD button.
  • Your changes are complete, but not applied. Click the Apply Changes button.
drive_save
10. Now we need to set the mount point. Under Disks select mount point.
  • Click the circle with the plus in it.
  • On this screen “Disks: Mount Point: Add” we will leave the Type as disk. Then select your drive in Disks the drop down box.
  • Change the Partition drop-down to “2″.
  • Leave the file system as USF.
  • Name the mount point. I’ll call mine data.
  • Enter a description (example – “Backup data”)
  • Click on Add
  • Now click on Apply Changes. Make sure the Status reads “OK”. If it doesn’t delete the mount (circle with the X in it) and go back to the beginning of step 10 and try again.
mount1
11. Now we set up sharing. On the Navigation Menu select CIFS/SMB from the Services menu.
  • Click the enable tick-box (highlighted in the image above).
  • Change the NetBiosName if you would like. I call mine “freenas”. (I have a vivid imagination)
  • If you are on a workgroup, enter the name here. My workgroup is “LAGESSE”, so that is what I typed.
  • Now enter a description. Again, I used my imagination and typed in “File Server”
  • Ignore everything else on this page. Scroll to the bottom and click “Save and Restart”.
smb
12. Now on the CIFS/SMB page click the “Shares” tab up top
  • Click the circle/plus to add a share
  • We’ll create a share called Data. Type Data in for the name.
  • Enter a comment (My Data works for me).
  • Click the box with the three dots to the right of Path.
  • In the pop-up click on the folder name (in my case, data). Then click on OK.
  • I turn on the Recycle Bin. Your choice.
  • Click on Add then Apply Changes.
Almost done! One more thing to set up.
share
13. Under Services click on NFS.
  • Click the tick-box For Enable.
  • Click the circle with the plus in it to add an authorized network.
  • In the next screen type in the IP Address of your network. Example – if your server’s IP address is 192.168.1.250 type 192.168.1.1 in here. In any case, just make the first three parts of this the same as your server and make the last part a 1.
  • Click Add
  • Back at the Services: NFS screen click on Save and Restart”.

After both parts where completed i simply mapped the drive from freenas to each client and the DC

No comments:

Post a Comment