freenas

52
http://sourceforge.net/projects/freenas/files/FreeNAS-8/ http://blog.freenas.org/ Mencoba Network Attached Storage (NAS) dengan FreeNAS Sudah 1 bulan saya tidak update blog ini, karena kesibukan dan banyak yang harus saya pelajari lagi dibulan desember 2010 kemarin. Oh iya sebelumnya saya mau mengucapkan "Selamat Tahun Baru Masehi 2011". Semoga di tahun ini kita bisa lebih baik lagi dalam menjalani setiap aktifitas. Saat ini kebutuhan akan Network Storage Server sudah merupakan suatu kewajiban bagi perusahaan-perusahaan besar. Dimana data perusahaan akan ditempatkan secara sentralisasi di satu network storage yang dapat diakses oleh semua user yang membutuhkan, tentunya juga dilengkapi dengan policy access yang lengkap. Keuntungan dengan menggunakan Network Storage ini adalah kemudahan dalam backup data dan kemudahan dalam administrasi serta policy dari data yang disimpam. Lebih efisien dan aman tentunya. Dan pastinya Storage Network ini juga harus dipastikan Mirror dan system DRC nya berjalan dengan baik. Untuk kebutuhan Network Storage tersebut daapt menggunakan salah satu distro turunan dari FreeBSD yaitu "FreeNAS". FreeNAS merupakan open source NAS (Network-Attached Storage) yang support beberapa protocol seperti : CIFS (samba), FTP, NFS, TFTP, AFP, RSYNC, Unison, iSCSI (initiator and target) and UPnP. FreeNAS juga mensupport Software RAID (0,1,5), ZFS, disk encryption, S.M.A.R.T/email monitoring dengan WEB configuration interface (dari m0n0wall). FreeNAS dapat di install di Compact Flash/USB key, hard drive atau boot langsung dari LiveCD. Untuk mendapatkan file isonya silahkan diunduh disini : http://sourceforge.net/projects/freenas/files/stable/

Upload: pandu-renoto

Post on 26-Nov-2015

23 views

Category:

Documents


0 download

DESCRIPTION

Manual Book

TRANSCRIPT

Page 1: Freenas

http://sourceforge.net/projects/freenas/files/FreeNAS-8/

http://blog.freenas.org/

Mencoba Network Attached Storage (NAS) dengan FreeNAS

Sudah 1 bulan saya tidak update blog ini, karena kesibukan dan banyak yang harus saya pelajari lagi dibulan desember 2010 kemarin. Oh iya sebelumnya saya mau mengucapkan "Selamat Tahun Baru Masehi 2011". Semoga di tahun ini kita bisa lebih baik lagi dalam menjalani setiap aktifitas.

Saat ini kebutuhan akan Network Storage Server sudah merupakan suatu kewajiban bagi perusahaan-perusahaan besar. Dimana data perusahaan akan ditempatkan secara sentralisasi di satu network storage yang dapat diakses oleh semua user yang membutuhkan, tentunya juga dilengkapi dengan policy access yang lengkap.

Keuntungan dengan menggunakan Network Storage ini adalah kemudahan dalam backup data dan kemudahan dalam administrasi serta policy dari data yang disimpam. Lebih efisien dan aman tentunya. Dan pastinya Storage Network ini juga harus dipastikan Mirror dan system DRC nya berjalan dengan baik.

Untuk kebutuhan Network Storage tersebut daapt menggunakan salah satu distro turunan dari FreeBSD yaitu "FreeNAS". FreeNAS merupakan open source NAS (Network-Attached Storage) yang support beberapa protocol seperti : CIFS (samba), FTP, NFS, TFTP, AFP, RSYNC, Unison, iSCSI (initiator and target) and UPnP.

FreeNAS juga mensupport Software RAID (0,1,5), ZFS, disk encryption, S.M.A.R.T/email monitoring dengan WEB configuration interface (dari m0n0wall).

FreeNAS dapat di install di Compact Flash/USB key, hard drive atau boot langsung dari LiveCD. Untuk mendapatkan file isonya silahkan diunduh disini : http://sourceforge.net/projects/freenas/files/stable/

Page 2: Freenas

File iso nya hanya sebesar 125MB saja, untuk menjalankannya juga hanya butuh komputer dengan spesifikasi yang rendah seperti Intel Pentium III dengan RAM minimal 256MB. Kebetulan saya menjalankannya di VirtualBox 4.0 dengan alokasi RAM 512MB saja.

Untuk mengetahui hardware yang didukung oleh FreeNAS ini dapat dilihat disini : http://freenas.org/freenas_users_hardware. Dan untuk melihat feature lengkapnya juga dapat dilihat disini : http://freenas.org/features.

Berikut tampilan FreeNAS pada saat booting :

Setelah berhasil booting maka FreeNAS akan langsung menyuguhkan menu untuk melakukan setting. Semua setting awal sudah tersedia wizard nya, seperti mengganti setting IP Address dapat dilakukan dengan mudah memalui menu wizard ini :

Page 3: Freenas

Jika sudah selesai setting IP nya, maka tinggal kita coba dari komputer lain untuk mencoba apakah IP tersebut sudah bisa di ping atau belum. Jika sudah bisa di ping, maka tinggal kita melakukan setting FreeNAS untuk storage dan lain-lainnya melalui web admin yang disediakan. Misal IP nya 10.3.15.11, ya kita tinggal browsing ke IP tersebut dari komputer lain. Kenapa harus dari komputer lain karena FreeNAS ini tidak menyediakan GUI pada distronya.

Untuk username dan password login defaultnya adalah :user : adminpassword : freenas

Setelah itu kita tinggal melakukan penambahan disk yang akan di share, menjalankan service yang di inginkan, dan melakukan setting policy untuk user dan group juga bisa dilakukan dari web admin FreeNAS. Masih banyak lagi feature yang ada di Web Admin FreeNAS ini.

Page 4: Freenas

FreeNAS ini juga mendukung server active directory milik Windows Server. Jadi policy user dan group dari server active directory sedangkan storage nya dialokasikan oleh FreeNAS ini.

Selamat Mencoba...

Dony Ramansyahsite : http://dony-ramansyah.bravehost.comblog : dony-ramansyah.blogspot.comemail : dony.ramansyah[at]gmail.com

http://www.freenaskb.info/kb/

FreeNAS Tutorial for Windows Users – Part One – Installation

December 24, 2007 By Rob 20 Comments

You can find my FreeNAS posts/Tutorials here:

• FreeNAS – switching back . About my decision to move back to FreeNAS from Windows Home Server.

• FreeNAS Tutorial for Windows Users – Part One – Installation – installing the FreeNAS server onto a PC. (this post)

• FreeNAS Tutorial for Windows Users – Part Two – Configuration – configuring FreeNAS and Windows File Sharing.

• FreeNAS Tutorial for Windows Users – Part Three – Upgrading – Upgrading your FreeNAS Server.

• Using Microsoft SyncToy 2 with FreeNAS – Automating your backups – for free.

• FreeNAS Tutorial for Windows Users – Part Five – XBOX 360 – Using FreeNAS with your XBOX 360

• FreeNAS Tutorial for Windows Users – Part 6 – Adding another drive

Page 5: Freenas

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).

6. Press Enter

7. Assuming there is no data on the hard drives, select option 9 (Install/Upgrade) from the Console Setup Menu

8. From the install menu, select option #3 (Install ‘full’ release on hard drive)

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″.

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

Page 6: Freenas

drive, named “ad0″. Type the name in at the prompt and press enter.

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 Menu

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 to complete Part Two (Configuration)

17. Congratulations! You have installed FreeNAS! In part two of this series we’ll configure FreeNAS with the Web Interface.

You are now finished with the Installation and everything else is done from a Web Browser on another machine. You can shut off the monitor on the FreeNAS server to save some power. We won’t have to physically touch this machine again.

FreeNAS Tutorial for Windows Users – Part Two – Configuration

December 24, 2007 By Rob 86 Comments

You can find my FreeNAS posts/Tutorials here:

Page 7: Freenas

• FreeNAS – switching back . About my decision to move back to FreeNAS from Windows Home Server.

• FreeNAS Tutorial for Windows Users – Part One – Installation – installing the FreeNAS server onto a PC. (this post)

• FreeNAS Tutorial for Windows Users – Part Two – Configuration – configuring FreeNAS and Windows File Sharing.

• FreeNAS Tutorial for Windows Users – Part Three – Upgrading – Upgrading your FreeNAS Server.

• Using Microsoft SyncToy 2 with FreeNAS – Automating your backups – for free.

• FreeNAS Tutorial for Windows Users – Part Five – XBOX 360 – Using FreeNAS with your XBOX 360

• FreeNAS Tutorial for Windows Users – Part 6 – Adding another drive

In Part One we installed FreeNAS onto our server. In this section we configure FreeNAS to allow Windows File Sharing and network browsing.

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:

The 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.

3. Click the Password tab.

4. Enter the old password and then the new password in the dialog – the new password is

Page 8: Freenas

entered twice.

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.

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

Page 9: Freenas

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.

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.

Page 10: Freenas

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”.

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

Page 11: Freenas

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.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”.

That’s it! As you can see there are a lot of settings we didn’t mess with. You may want to, or need to change some of these. That is beyond the scope of this simple tutorial.

So let’s go test our new server!

Page 12: Freenas

First, the browser test. In your web browser type \\servername and press enter (since I called my server freenas, I type \\freenas\ into my web browser and the following dialog appears:

As you can see – this is a standard Windows Explorer view showing my server and the share I created, Data. There is no printer installed on my server, and I haven’t played with that option, but the printer

icon shows as well.

Now I can map a network drive using the UNC of \\freenas\data.

That’s all there is to it. You can go and add additional shares to point to subdirectories in Data – I created folders called Music, Pictures, Movies, Videos, and Users (where I created folders for me and my kids). You can also set up users and groups and limit access to these shares based on the user/group.

There are a ton of features I haven’t even discussed. This tutorial just focused on getting the Windows File Sharing and Browsing set up. The FreeNAS Knowledgebase has a ton of additional information.

• Home • About • Twitter

FreeNAS Tutorial for Windows Users – Part Three – Upgrading

January 12, 2008 By Rob 13 Comments

You can find my FreeNAS posts/Tutorials here:

• FreeNAS – switching back . About my decision to move back to FreeNAS from Windows Home Server.

• FreeNAS Tutorial for Windows Users – Part One – Installation – installing the FreeNAS server onto a PC. (this post)

• FreeNAS Tutorial for Windows Users – Part Two – Configuration – configuring FreeNAS and Windows File Sharing.

• FreeNAS Tutorial for Windows Users – Part Three – Upgrading – Upgrading your FreeNAS Server.

• Using Microsoft SyncToy 2 with FreeNAS – Automating your backups – for free.

• FreeNAS Tutorial for Windows Users – Part Five – XBOX 360 – Using FreeNAS with your XBOX 360

• FreeNAS Tutorial for Windows Users – Part 6 – Adding another drive

Page 13: Freenas

Note: I had meant for my next FreeNAS post to cover using Microsoft SyncToy 2.0 with FreeNAS. A new version of FreeNAS was released though, and I decided to upgrade my server first.

Upgrading FreeNAS is a fairly straightforward procedure.

Before continuing, please make sure that your FreeNAS server is not being used. If the server is upgraded while data is being read/written then that data could get corrupted!

The first thing to do is to back up your existing FreeNAS configuration. This is done from the browser on any Windows machine on your network.

Navigate to the server (see tutorial part 2 for information on this – link at bottom of this post).

You will see the standard FreeNAS interface. From the left hand navigation menu select “Backup/Restore” under System.

Click on the “Download configuration” button

Save the file to your computer (remember where you saved it!)

Before continuing, please make sure that your FreeNAS server is not being used. If the server is upgraded while data is being read/written then that data could get corrupted!

Page 14: Freenas

Now that you have a backup you can go ahead and insert the new FreeNAS install CDROM and restart your FreeNAS server. Make sure you boot from the CDROM.

Allow the CDROM to boot until the FreeNAS Screen is displayed. Press enter and you will see the following screen (you may need to wait a minute for it to fully load):

We will be selecting option #9 – “Install/Upgrade to an hard drive/flash device, etc”Assuming you followed my FreeNAS install tutorial, we’ll want to select option 5 – “Upgrade existing installed ‘full’ release from CDROM”.

Enter 5 and press enter. You may get an error of “WARNING: / was not properly dismounted”. It is safe to ignore this error.Your CDROM name will be displayed (in my example it is called acdo. Type the displayed CDROM name at the prompt

Page 15: Freenas

FreeNAS will now display the name of the drive FreeNAS is installed on. Make sure this is correct and type Y and press enter.

You may see a couple more warnings about failure to dismount drives. Ignore these errors as FreeNAS is already updating the FreeNAS system on your drive. This only takes a minute.When complete, you will see a similar screen to the image here. As suggested, remove the CDROM and press enter.

Press 7 to return to the main FreeNAS window, then press 7 again to reboot the FreeNAS server.

Once the FreeNAS server completely reboots you will need to note the configured IP address (which will probably be different from what FreeNAS was previously configured for).

Page 16: Freenas

Type that IP address into your browser (in my case the IP Address is 192.168.1.250, as show in the image above. If prompted for a login FreeNAS may be set to the factory defaults of login name: admin and password: freenas. In my case, the original password I assigned was intact.

Click Backup/Restore from the FreeNAS menu in your browser.

Using the Browse button select the file you saved during the backup process.Click on Restore configuration.The restore will automatically restart your FreeNAS server.

That’s it. You just backed up, upgraded, and restored your FreeNAS server!

It is important to keep the server up to date as the FreeNAS development team continues to add features, fix bugs and improve performance.

Using Microsoft SyncToy 2 with FreeNASJanuary 16, 2008 By Rob 14 Comments

You can find my FreeNAS posts/Tutorials here:

• FreeNAS – switching back . About my decision to move back to FreeNAS from Windows Home Server.

• FreeNAS Tutorial for Windows Users – Part One – Installation – installing the FreeNAS server onto a PC. (this post)

• FreeNAS Tutorial for Windows Users – Part Two – Configuration – configuring FreeNAS and Windows File Sharing.

• FreeNAS Tutorial for Windows Users – Part Three – Upgrading – Upgrading your FreeNAS Server.

• Using Microsoft SyncToy 2 with FreeNAS – Automating your backups – for free.

• FreeNAS Tutorial for Windows Users – Part Five – XBOX 360 – Using FreeNAS with your XBOX 360

• FreeNAS Tutorial for Windows Users – Part 6 – Adding another drive

[Of course, this tutorial applies to any remote storage that is connected to as a shared drive. This is a complimentary post to FreeNAS: The Free NAS Server - About and FreeNAS Tutorial for Windows Users - Part One - Installation]

Page 17: Freenas

SyncToy 2 is a free utility provided by Microsoft and it runs on Vista and XP (and Windows 2008 Server). SyncToy 2 (beta) is available from Microsoft here.

Microsoft describes SyncToy 2 as:

Now there is an easier way. SyncToy, a free PowerToy for Microsoft Windows, is an easy to use, highly customizable program that helps users to do the heavy lifting involved with the copying, moving, and synchronization of different directories. Most common operations can be performed with just a few clicks of the mouse, and additional customization is available without additional complexity. SyncToy can manage multiple sets of folders at the same time; it can combine files from two folders in one case, and mimic renames and deletes in another case. Unlike other applications, SyncToy actually keeps track of renames to files and will make sure those changes get carried over to the synchronized folder.

1. Download the file.2. Install SyncToySetup.exe3. Start the application

1. Start Menu2. All Programs3. SyncToy 2.0

After you either allow Microsoft to gather some data about how you use SyncToy (or decline), the opening Welcome screen displays:

Your only option here is to create a folder pair. Folder pairs are the basic building blocks of SyncToy – simply put, they are the two folders you want to manage (sync). Select “Create New Folder Pair”.

As you can see, you are shown two folder selection dialogs. For this tutorial we will sync our Music folder on our PC with the music folder on the FreeNAS server.The first thing we do is locate our local

Page 18: Freenas

music folder. Click on the left “Browse” button.

A standard Windows Explorer file browser opens. For this example we will sync the music folder located in on my local “F:” drive.

To do that we simply drill down the folder tree until we highlight the music folder. Once selected, click “OK”

Now the left side of the sync is configured. Time to connect to the server!

Page 19: Freenas

Next we select the network path to “music” on the FreeNAS Server.In this example, I typed in the UNC path. If you have mapped a network drive, you can browse and select it (see next image).

This is an example of browsing to a mapped network drive.

So now we have our local Music Folder linked to the shared music folder on FreeNAS.

Now you have a choice to make. This requires some more explanation (or you can just click on the link for “More Information”

You have three options here, and it is important that you understand them.

Page 20: Freenas

1. Synchronize – changes on either side are reflected on the other. If you delete a file on your FreeNAS server, it is deleted from your local machine. The same thing goes for renaming files, adding files, etc. This is the most common use.

2. Echo – This basically sets the left folder (on your local machine) as the “Master”. Changes you make on your FreeNAS server are NOT reflected on your local drive.

3. Similar to Echo, but deletions on either the server or the local drive do NOT delete files in the other folder. New files added to the local folder are copied to the FreeNAS server, but additions added to the FreeNAS server are NOT copied to the local folder.

For my Music, I want everything I do on my local machine to be reflected on my server. If I add a new song, rename a song, delete a song, etc I want the server to reflect that. Basically I am using FreeNAS to make a duplicate of my local Music Folder.

So I selected Echo and am now asked to name my pair – I’ll call it “Music” because I am creative that way.Type in the name of your pair and click on Finish.

Now we can see the Folder Pairs I have configured. You’ll see “Music” is selected. Now I can click on “Preview” to see what is going to happen BEFORE I actually make any physical changes to my data.

Page 21: Freenas

You can see that my ZZ Top music will be copied from my local drive to my shared drive on the FreeNAS server. Cool – I can see that nothing is going to be deleted (look at the “Preview Results” box at the lower left).

Now we do an actual sync by running the Folder Pair. The results show that all nine files were correctly copied to the server.

Here you can see that I have created multiple Folder Pairs for my desktop, movies, music, pictures and video folders.In the next section we will set Windows up to execute these Folder Pair Syncs every night, without user intervention.

Automation – Vista (For XP see below)

We are going to use the built in Windows Task Scheduler program to automate our SyncToy session.

Page 22: Freenas

Task Scheduler is locate in the Start menu under Accessories|System Tools – go ahead and run it.

Task Scheduler on Windows Vista. I’ll cover XP further down.

Click on the “Create Basic Task action (as highlighted in the previous image).You will be presented with a dialog box. The first thing we’ll do is name this Scheduled Task “SyncToy Run” and give it a description.

After clicking on Next the dialog presents the “Trigger” portion of the setup. I want this task to run daily, so I am not making any changes here.

Page 23: Freenas

The next screen allows us to specify the time of day the task runs. I want mine to run at 3 am – that way it will be finished before I wake up in the morning. Just choose a time when your computers are turned on, and hopefully not being heavily used.

On the action screen we want to start a program.Make sure it is selected and click next.

Ok, now comes a little bit of work (just a little!).Click on the Browse button and navigate to your Program Files folder (normally “c:\program files”)Drill down the folder list until you find the SyncToy 2.0 Beta folder and open it.

Page 24: Freenas

Highlight the file “SyncToyCmd”. This is the SyncToy command line executable. It lets us run the Folder Pairs without user intervention.Click on Open.

In the “Add arguments” text box type “-R” (without the quotes. This tells SyncToy to run all Folder Pairs marked as active.The Start in” box stays blank. Click Next.

The final settings are displayed. Review them and click on Finish.

Back on the main screen for Task Scheduler you can click on the “Task Scheduler Library” link on the left, select “SyncToy Run” from the available tasks, then click on “Run” on the right. This

Page 25: Freenas

will allow you to check that the Task actually runs correctly.

While the task is running a command window will open, as shown here. Depending on a lot of factors (speed of your network, speed of computers, speed of hard drives, etc) this could take hours to run – especially the first time you Sync. Subsequent runs will be much faster since only new or modified data will be copied.

Close the Task Scheduler. That’s it – you are finished. Your data is now automatically synchronized with your server every morning.

Read on only for information on adding the task to XP.

Automation – XP

Setting up a Scheduled Task in XP is similar to Vista. The Task Scheduler in Vista is a newer and more powerful version, but for our purposes the XP version is just fine.

Launch the Scheduled Tasks utility by going to Start|All Programs|Accessories|System Tools.

Although the dialog box looks different in XP, the setup is actually quite similar to Vista. Double-Click on the “Add Scheduled

Page 26: Freenas

Task” link.

The Scheduled Task Wizard pops up. Click on Next.

Click on the Browse button and locate your SyncToy 2.0 Beta Folder (under Program Files, usually in c:\program files”).

Double click on the SyncToyCmd file and click “Open”.

Page 27: Freenas

Type in a name (SyncToy Run) and select Daily, then click on Next.

Set the time for the task to run (3:00 am), choose Every Day and click Next.

On XP you have to enter a valid user account and password. Enter this information (your Window login name and password) and click next.

Click on Finish.

Page 28: Freenas

Right-Click on the Task and Select “Properties” from the menu

We are going to manually edit the “Run” line. All we are going to do is add a -R to the end of the existing line.The existing line ends with “…\SyncToyCmd.exe” and we want it to end with “…\SyncToyCmd.exe -R”So make that change.

Click Apply to save your changes. If you are prompted for your password again, enter it.Now you are set up to automatically run the Folder Pairs on your XP box.

You can test it by Right-Clinking on the task and selecting Run from the popup menu.

That’s it. If you have any questions, you can leave them in the comments.

Page 29: Freenas

FreeNAS Tutorial for Windows Users – Part 6 – Adding a Drive

April 8, 2008 By Rob 13 Comments

Since I get a lot of searches for various FreeNAS "stuff" I keep an eye out for trends, and add to this series when I see people looking for specific information.

Lately I have seen a lot of people searching for "adding another drive to FreeNAS", so here is a brief tutorial.

I am using a virtual machine, with a virtual disk to create the screen shots – don’t let that bother you – it’s the exact same process with a "real" computer and a physical drive!

I am assuming that you know how to physically install a hard drive. If not, do a search for "installing second hard disk" in your favorite search engine.

Open the admin window in your browser and select "Disks: Management" from the sidebar. You will see a screen similar to the image at the left. Note that you have to click the little "plus-circle" (highlighted in yellow) to add a drive.

The most critical thing now is to make sure you select your new drive. Chances are it will be the only drive listed.

Select the drive from the drop-down list. Set your power preferences (I always allow the drive to sleep after 10 minutes and set "use minimum power with Standby" and "Minimum performance, Minimum acoustic output". This allows you to save as much power as possible at the minor expense of having to wait a second for the drives to spin up when you access them.

Finally, select the File System type

Page 30: Freenas

– if this is a new drive with no data on it, leave this blank. We’ll format it in a second. If it is already formatted, and has data you wish to keep, then select the correct File System for the existing data and skip the formatting step below!

Click the "Add" button.To save your changes click on the "Apply" button.

Assuming this is a new disk, it will need to be formatted. Select Disk:Format from the navigation menu.

Select your new disk from the drop-down menu. Be very careful to select the correct disk – all data on it will be lost.

Leave the file system as "UFS" and type in a name for the disk (volume label).

Leave the minimum space alone and click on "Format Disk". Depending on the size of the disk this could take seconds, or minutes. Once the process completes, go back to the Disk:Management.

Page 31: Freenas

As highlighted here, you can see that the disk is now "online". You can now set up shares on the drive and start using it!

For more information on setting up shares see Part Two of my FreeNAS Tutorial (link below).

Menggunakan Microsoft SyncToy 2 untuk FreeNAS ServerBy Mamat

Apa itu SyncToy ?

SyncToy 2.0 for Windows is available as a free download from the Microsoft Download Center. The easy to use, customizable application helps you copy, move, rename, and delete files between folders and computers. Download disini

SyncToy 2 adalah tools gratis yang disediakan oleh Microsoft. Tools ini dapat berjalan pada Windows XP/ Vista dan Windows 2008 Server.

Catatan : SyncToy 2 masih dalam versi beta, beberapa user di forum microsoft melaporkan bahwa Tools ini terlalu lambat dan kadang menyebabkan komputer hang dibandingkan dengan versi sebelumnnya (SyncToy 1.4). Jika Anda masih menggunakan Windows XP disarankan

Page 32: Freenas

untuk menggunakan versi 1.4 saja. Berhubung versi 1.4 sudah tidak ada lagi di situs microsoft Anda bisa mendownloadnya melalui sistus www.brothersoft.com

SyncToy dapat digunakan untuk melakukan sinkronikasi antara 2(dua) folder/direktori atau bahkan disk. SyncToy tidak secara spesifik diperuntukkan bagi FreeNAS, namun tutorial berikut akan menjelaskan bagaimana memanfaatkan Tools ini bersama dengan FreeNAS Server. Tutorial ini adalah hasil translate dari tulisan Rob La Gesse : Using Microsoft SyncToy2 with FreeNAS

Thank’s to Rob La Gesse for his permission to translate this tutorial in Indonesian,Anda bisa membaca tulisan Rob yang lain seputar FreeNAS disini :

• FreeNAS – switching back . About my decision to move back to FreeNAS from Windows Home Server.

• FreeNAS Tutorial for Windows Users – Part One – Installation – installing the FreeNAS server onto a PC.

• FreeNAS Tutorial for Windows Users – Part Two – Configuration – configuring FreeNAS and Windows File Sharing.

• FreeNAS Tutorial for Windows Users – Part Three – Upgrading – Upgrading your FreeNAS Server.

• Using Microsoft SyncToy 2 with FreeNAS – Automating your backups – for free.

• FreeNAS Tutorial for Windows Users – Part Five – XBOX 360 – Using FreeNAS with your XBOX 360

• FreeNAS Tutorial for Windows Users – Part 6 – Adding another drive

Tulisan ini merupakan lanjutan dari tulisan-tulisan saya terdahulu mengenai FreeNAS. Sebelum melanjutkan pastikan bahwa FreeNAS telah dikonfigurasi dengan baik dan sudah bisa di akses oleh komputer lain dalam jaringan. Jika Anda belum mengetahui bagaimana melakukannya, Anda bisa membacanya disini :

•• Membangun Server NAS dengan FreeNAS • ‘User Management & Security’ pada FreeNAS • Backup data di windows dengan NasBackUp ke Server FreeNAS

atau melalui situs Rob La Gesse diatas, atau di beberapa situs lainnya (cari lewat google aja ).

Let’s Start …

1. Download SyncToys2 beta atau SyncToys 1.42. Install SyncToySetup.exe3. jalankan applikasi1. Start Menu2. All Programs3. SyncToy 2.0

Page 33: Freenas

Setelah mengisi beberapa data/informasi tentang bagaimana Anda menggunakan SyncToy (atau membatalkan menggunakan SyncToy /decline), Selanjutnya akan muncul tampilan Welcome screen :

Pilihan yang ada saat ini adalah membuat pasangan folder (untuk sinkronisasi). Pilih / Klik tombol “Create New Folder Pair”.

Seperti yang dapat anda lihat, terdapat 2 (dua) pilihan untuk mengisi pasangan folder (Left Folder dan Right Folder). Untuk tutorila ini kita akan mengsinkronkan folder Music pada komputer lokal dengan folder music yang terdapat pada server FreeNAS.

Pertama-tama adalah menentukan lokasi/path dari folder music pada lokal komputer. Klik pada tombol “Browse” yang terletak disebelah kiri (Left Folder).

Selanjutnya akan muncul window Explorer untuk browse file. Sebagai contoh untuk tutorial ini kita akan mensinkronkan folder music yang terletak pada darive F:\. Untuk melakukannya sederhana saja, browse drive F: melalui folder tree, pilih folder Music. Setelah itu klik “OK”.

Left Folder sudah selesai di konfigurasi. Kita berpindah ke Right Folder. Pastikan Server FreeNAS dalam keadaan aktif (ON) dan tehubung ke jaringan.

Page 34: Freenas

Selanjutnya pilih network path ke folder “music” pada Server FreeNAS. Sebagai contoh pada gambar diperlihatkan UNC path dari folder music yang ada pada Server FreeNAS. Jika Anda telah memetakan drive jaringan (mapped network drive), Anda bisa membrowse kemudian memilih driver tersebut (lihat gambar di sebelah kanan).

Sekarang kita sudah melakukan link folder music pada komputer lokal ke folder Music yang terdapat di Server FreeNAS.

Setelah Left Folder dan Right Folder telah dikonfigurasi, Klik Next.Anda akan dihadapkan pada 3 (tiga) Pilihan. Anda bisa membaca penjelasan singkat pada kotak sebelah kanan untuk masing-masing pilihan. Atau jika Anda membutuhkan informasi yang lebih lengkap Anda bisa mengklik pada link “More Information”

Sebelum memutuskan untuk memilih salah satu dari ketiga pilihan tersebut, adalah sangat penting bagi Anda untuk memahami masing-masing pilihan yang tersedia.

1. Synchronize – Perubahan pada salah satu sisi (Left Folder atau Right Folder) akan berdampak pada sisi lainnya. Jika Anda menghapus file pada server FreeNAS, maka file pada komputer lokal akan ikut terhapus juga. Hal yang sama berlaku untuk operasi Rename, File Baru, dan lain-lain.

Page 35: Freenas

2. Echo – Secara garis besar pilihan ini menjadikan left folder (pada komputer lokal) sebagai “Master” dan right Folder sebagai “Slave”. Perubahan yang terjadi pada “Slave” tidak akan berdampak terhadap sisi “Master”. Jika Anda menghapus file pada server FreeNAS, file yang ada pada komputer lokal tidak akan terhapus.

3. Contribute – mirip dengan Echo, tetapi penghapusan file pada sisi manapun (Left Folder ataupun right Folder) tidak akan berdampak pada sisi lainnya. Jika ada penambahan file pada komputer lokal (Left folder) akan dicopy ke server FreeNAS (right folder), namun tidak berlaku sebaliknya penambahan File pada server FreeNAS tidak akan di copy ke folder lokal.

Selanjutnya tinggal Anda yang memutuskan akan menggunakan pilihan yang sesuai dengan kebutuhan Anda.

Untuk tutorial ini, saya menginginkan semua yang saya lakukan pada komputer lokal akan diikuti oleh server. Jika saya menambahkan lagu baru, mengubah nama file, menghapus lagu, dan sebagainya saya menginginkan server melakukan hal yang sama. Secara umum saya menggunakan FreeNAS untuk menduplikasikan folder music yang ada pada lokal komputer.

Jadi saya memilih Echo dan SyncToys akan menanyakan nama Folder pair ini – Saya menamakannya “Music”. Ketikkan nama folder pair yang Anda inginkan dan kemudian klik Finish.

Sekarang kita bisa melihat Folder Pairs yang baru saja dikonfigurasi. Anda akan melihat “Music”. Klik pada tombol “Preview” untuk melihat apa yang akan terjadi selanjutnya sebelum kita benar-benar melakukan perubahan secara fisik pada data tersebut.

Anda dapat melihat bahwa folder ZZ Top music saya akan dicopy dari folder lokal ke folder sharing yang terdapat pada server FreeNAS. Anda bisa melihat bahwa tidak ada file yang akan di hapus. (lihat pada kotak “Preview Results” di sebelah kiri bawah).

Page 36: Freenas

Sekarang kita bisa melakukan sinkronikasi dengan mengklik tombol “Run”. Hasil sinkronisasi menunjukkan pada kesembilan file telah berhasil dicopykan ke server.

Untuk melakukan sinkronisasi pada folder yang lain Anda bisa melakukannya dengan membuat folder pair yang baru. Tutorial selanjutnya kita akan mambahas bagaiama mengatur agar windows bisa melakukan sinkronisasi setiap malam, tanpa interfensi user. (sinkronisasi otomatis).

Originally written by Rob

Berhubung karena keterbatasan kemampuan bahasa Inggris saya, beberapa kalimat tidak dapat ditranslate dengan benar dari sumber aslinya. Beberapa bagian mengalami penambahan dan pengurangan, namun dengan (berusaha) tidak menghilangkan maksud/tujuannya. Semoga bisa dimaklumi dan dipahami.

Otomasi Sinkronisasi SyncToys (Lanjutan Menggunakan Microsoft SyncToy 2 untuk FreeNAS Server)

By Mamat

Tulisan ini adalah lanjutan dari tulisan sebelumnya : Menggunakan Microsoft SyncToy 2 untuk FreeNAS Server

Untuk melakukan otomasi sinkronisasi kita akan menggunakan aplikasi Task Scheduler yang sudah built-in pada Microsoft Windows.

Untuk Windows Vista (untuk Windows XP scroll ke bagian bawah)

Task Scheduler dapat diakses melalui start menu, Accessories|System Tools

Page 37: Freenas

Klik “Create Basic Task action” (lihat pada gambar di samping).

Selanjutnya akan muncul dialog box. Yang pertama-tama kita lakukan adalah memberi nama Scheduled Task ini dengan nama misalnya “SyncToy Run” kemudian isi deskripsinya (terserah Anda)

Kemudian klik Next, dialog box akan menampilkan konfigurasi untuk “Task Trigger”. Saya menginginkan task ini dijalankan setiap hari, jadi saya tidak akan mengubah pilihan pada task Trigger saat ini. Task Trigger yang terpilih (secara default) adalah daily (setiap hari). Anda bisa memilih kapan task ini dijalankan sesuai dengan kebutuhan Anda.

Page 38: Freenas

Selanjutnya klik NEXT, pilihan berikutnya adalah menentukan waktu spesifik task ini akan dijalankan. Saya menginginkan task saya dijalankan pada pukul 3.00 pagi, dengan demikian task ini (diharapkan) akan selesai sebelum saya bangun pada pagi hari. Anda bisa memilih waktu yang sesuai pada saat komputer dalam keadaan ON, dan tidak sedang digunakan.

Selanjutnya pada bagian “action”, kita akan ditanyai ingin melakukan apa ? Karena kita menginginkan menjalankan program/aplikasi pilih Start Program. Kemudian Klik Next.

OK, sekarang kita akan mengkonfigurasikan aplikasi yang akan dijalankan. Klik Tombol Browse kemudian buka folder Program Files (umumnya “c:\program files”). Cari folder SyncToy 2.0 Beta kemudian buka folder tersebut.

Pilih file “SyncToyCmd”. Ini adalah file SyncToy command line executable. Aplikasi ini membolehkan kita menjalankan “Folder Pairs” tanpa intervensi user. Klik Open.

Pada kolom “Add arguments” isi “-R” (tanpa tanda kutip). Ini akan memerintahkan SyncToy untuk menjalankan semua Folder Pairs yang ditandai dengan Active. Kolom Start in” box biarkan tetap kosong. Selanjutnya Klik Next.

Page 39: Freenas

Summary Setting akan ditampilkan. Jika tidak ada perubahan dari setting sebelumnya, Klik tombol Finish.

Kembali pada layar utama Task Scheduler, Anda bisa melakukan Klik pada “Task Scheduler Library” yang terdapat pada bagian sebelah kiri. Selanjutnya pilih “SyncToy Run” (nama yang kita berikan tadi) dari kolom available tasks, kemudian Klik “Run” pada bagian Action – On selected Item di sebelah kanan. Ini untuk melakukan pengecekan apakah Tash yang baru saja kita buat sudah berjalan dengan benar.

Saat task dijalankan, sebuah jendela (command windows) akan terbuka. Bergantung pada beberapa faktor (kecepatan network, kecepatan komputer, kecepatan hard drive, dll) task ini membutuhkan waktu beberapa jam untuk dijalankan – teruatam pada saat pertama kali Anda melakukan Sinkronisasi. Sinkronisasi selanjutnya akan berjalan lebih cepat, karena hanya data baru saja yang akan

dicopy.

Tutup Task Scheduler. Selesai. Sekarang data Anda akan secara otomatis akan disinkronisasi dengan server FreeNAS setiap pagi.

Otomasi pada Windows XP

Mensetting Scheduled Task pada XP hampir sama dengan Vista. Hanya saja versi Task Scheduler pada Vista lebih baru dan lebih bagus, tapi penggunaannya sama saja.

Page 40: Freenas

Jalankan Utility Scheduled Task melalui menu Start|All Programs|Accessories|System Tools.

Meski dialog box tampak berbeda pada windows XP, Proses setupnya sebenarnya hampir sama dengan Vista. Klik ganda pada lik “Add Scheduled Task” .

Wizard Scheduled Task akan muncul, klik Next

Klik tombol Browse dan pilih folder SyncToy 2.0 Beta (terletak pada folder Program Files, umumnya pada c:\program files”).

Klik ganda pada file SyncToyCmd file kemudian klik “Open”.

Page 41: Freenas

Isi nama pada kotak name (SyncToy Run) kemudian pilih Daily, selanjutnya klik Next.

Atur waktu untuk menjalankan task pada pukul 3:00 am, pilih Every Day lalu klik Next.

Pada windows XP Anda harus memasukkan user account yang terdaftar. Isi login name dan password.

Kemudian Klik Finish

Page 42: Freenas

Kembali ke layar utama, klik kanan pada Task dan Pilih “Properties” dari menu.

Kita akan mengedit secara manual baris “RUN”. Yang harus kita lakukan adalah menambahkan opsi -R pada baris yang ada. Baris yang sudah ada sebelumnya berakhir dengan “…\SyncToyCmd.exe” dan kita ingin mengubahnya menjadi “…\SyncToyCmd.exe -R”

Klik Apply untuk menyimpan perubahan yang telah dilakukan. Jika Anda diminta memasukkan password, masukkan password login yang tadi Anda masukkan. Sekarang selesai sudah Anda melakukan otomasi untuk menjalankan Folder Pairs pada windows XP.

Anda bisa mengujinya dengan melakukan klik kanan pada task yang baru saja dibuat, lalu pilih run dari menu yang ada.

• Beranda

Page 43: Freenas

• About Me

DD 4863 OY

Catatan sehabis kerja …

13 Juni 2008

Backup data di windows dengan NasBackUp ke Server FreeNAS

By Mamat

Melanjutkan tulisan terdahulu tentang FreeNAS, kali ini saya akan membahas tools kecil yang bernama NasBackup yang dapat dipergunakan untuk membackup data-data yang ada di komputer (berbasis Windows) ke Server FreeNAS yang telah dibuat.

FreeNAS mempunyai layanan/service yang bernama RSync, dengan layanan ini kita bisa melakukan backup data atau sinkronisasi folder. Di situs FreeNAS, ada dua aplikasi yang direkomendasikan berkaitan dengan service RSync yaitu DeltaCopy dan NAS Backup.

Saya gak akan membahas DeltaCopy karena sudah cukup banyak situs yang menuliskan tutorial tentang penggunaan DeltaCopy dan Freenas pada windows. Alasan lainnya adalah, DeltaCopy berjalan sebagai service di windows, sehingga akan menambah beban bagi Windows itu sendiri. NasBackup berjalan sebagai RSync Client sehingga gak akan membebani windows.

Persiapan

1. Download dulu aplikasi NAS Backup dari internet, kemudian install ke komputer.

2. Pastikan user account dan home directory di Server FreeNAS telah dikonfigurasi sesuai dengan hak akses masing-masing user.

Konfigurasi pada Server FreeNAS

Buka WEBGUI Freenas, kemudian aktifkan layanan RSync Server dengan memberi tanda [v] pada kotak Enable RSync Daemon. Klik Save and Restart.

Page 44: Freenas

Setting pada bagian ini ikuti saja sesuai gambar diatas.

Selanjutnya pada tab ModulesKlik [+] untuk menambahkan modul baru.

Page 45: Freenas

Name : Isi dengan nama share yang dipilihcomment : Isi deskripsi tentang modul share ini.Path : Path/alamat untuk menyimpan hasil backup. Gunakan tombol [...] untuk memilih folder yang sesuai dengan user yang akan menggunakan modul share ini.Access Mode : Read/Write (Full Akses)User ID : Isi dengan UserID sesuai path folder yang dipilih.Group ID : Isi dengan Group ID User pemilik folder.Hosts Allow : isi dengan IP Address tertentu jika ingin membatasi akses ke share module ini.Hosts Deny : isi dengan IP Address yang tidak di ijinkan untuk mengakses share module ini.

Klik Add, kemudian Apply Changes.

Page 46: Freenas

Share module ini berbeda dengan Share Folder Samba, Share module hanya digunakan untuk layanan RSync sehingga tidak akan tampak pada Jendela Network Neighbourhood di Windows. Lakukan penambahan share module untuk user lainnya yang ingin menggunakan RSync ini.

Setting NasBackup

Klik pada shortcut Backup Settings [ Start - Programs - NasBackup ]

1. Pilih folder-folder yang akan dibackup, Klik tombol >> untuk memasukkan dalam daftar backup

2. Backup server : masukkan IP address Server FreeNAS.3. share name : masukkan nama share module sesuai dengan nama

komputer/user. Share name ini bukan Share name Samba, tetapi share module yang dibuat pada layanan RSync (seperti pada penjelasan di atas).

4. Klik pada menu Advanced untuk mengaktifkan kolom direktori, Username, password.

5. User Name : masukkan UserID sesuai dengan UserID yang dipilih pada saat pembuatan share module.

6. Password : masukkan Password untuk userID diatas.7. Pada Backup Schedule, pilih jenis penjadwalan backup8. Pilihan Backup, Anda bisa memilih untuk membackup full, atau backup sesuai

mulai tanggal tertentu, atau backup file-file yang dimodifikasi selama beberapa hari sebelumnya.

9. Setelah selesai, Klik Apply.

Page 47: Freenas

Mulai membackup

Klik pada shortcut Start Backup [ Start - Programs - NasBackup ]

Jika tidak ada kesalahan pada saat konfigurasi, Anda akan bisa melihat proses backup akan berlangsung.

Hasil backup dapat Anda lihat melalui Widows Network Neighbourhood ( share yang tampak ini bukanlah share module RSync melainkan Share yang dilakukan menggunakan SAMBA ).

That’s It… cukup mudah kan ??

‘User Management & Security’ pada FreeNASBy Mamat

Sebelumnya dalam konfigurasi dasar FreeNAS, share folder pada FreeNAS menggunakan Service CIFS/SAMBA dengan authentifikasi user di set menjadi anynomous (tanpa pengamanan sama sekali), sehingga semua ‘local user/komputer’ yang terhubung dalam jaringan dapat

Page 48: Freenas

melihat, mengeksekusi,bahkan menulis/menghapus file/folder yang telah dishare. Hal ini tentunya ingin dihindari, file/folder yang ada pada Server FreeNAS harus di’amankan’.

Bagi yang baru membacanya, tulisan ini masih lanjutan dari tulisan terdahulu : Membangun Server NAS dengan FreeNAS. Jika Anda belum mengetahui cara instalasi FreeNAS Anda dapat membaca tutorial sebelumnya sebelum melanjutnya untuk membaca bagian ini.

Kali ini kita akan melakukan sedikit konfigurasi agar folder/file yang dishare hanya bisa diakses oleh user tertentu saja. Pada FreeNAS kita dapat mengatur manajemen user/group untuk authentifikasi (Menu Access), dengan pilihan :

1. User and Groups (Local User Management)2. Active Directory,3. LDAP

Pembahasan mengenai user management akan saya fokuskan pada Local User Management (User and Groups).

Sebelum membahas user/group, kita kembali dulu ke FreeNAS yang telah dibuat sebelumnya. Server FreeNAS terdahulu sudah bisa diakses melalui Jaringan (Windows Network Neighborhood) atau melalui alamat \\Nomor_IP_Server_NAS\

Mount Point yang ada di FreeNAS ini baru terdapat 1 mount point yaitu : DATA. Kita tentunya tidak ingin semua user mengakses/menyimpan datanya di satu folder ini saja, karena pasti akan membingungkan. Oleh karena itu sebaiknya setiap user dibuatkan folder tersendiri. Folder ini nantinya akan menjadi home directory untuk user tersebut.

Contoh:

User GroupHome Directory

mamatariefharunsyafrilukmandoelahmal

produksiproduksikeuangan,produksi,marketingmarketing,administrasi,salesmarketingsalesadministrasi

produksi-keuangan-marketingsalesadministrasi

Sekenarionya adalah sebagai berikut : (saya langsung memberi contoh saja)

User mamat memiliki home directory produksi. Jadi folder produksi pemiliknya adalah mamat. Folder ini hanya bisa ditulisi/dihapus oleh pemiliknya yaitu mamat. User yang berada satu group dengan mamat seperti Arief, memiliki hak untuk membaca/ mengeksekusi folder ini, tetapi tidak

Page 49: Freenas

memiliki hak untuk menghapus atau menulis ke folder ini. User lainnya diluar group produksi tidak memiliki hak untuk membaca/menulis ke folder ini.

Skenario yang sama juga akan kita terapkan pada folder-folder yang lainnya sehingga masing-masing folder akan memiliki tingkat keamanan yang lebih baik.

Dari jendela Explorer (Windows Network Neighbourhood) pada share FreeNAS (Data), Anda bisa membuat folder sesuai dengan yang dibutuhkan, seperti pada contoh diatas. Folder-folder ini masih bisa langsung dibuat melalui Windows yang terhubung ke FreeNAS server karena authentifikasi untuk layanan CIFS/SAMBA masih di set anynomous. Anda juga bisa membuat folder pada mount point ini melalui shell console secara langsung pada FreeNAS, tentu saja dengan menggunakan command unix : MKDIR [nama_folder]

Struktur Folder yang dibuat akan tampak seperti berikut :

[+] DATA- produksi- marketing- administrasi- keuangan- sales

Buat share untuk masing-masing folder pada SAMBA. Anda bisa mengaksesnya di halaman Service-CIFS/SAMBA pada tab Share. Klik [+] untuk menambahkan share baru. Share yang pertama dibuat yaitu data bisa Anda hapus, klik [x] yang terdapat disebelah kiri dari share Data tersebut. Jangan lupa pada tab setting ubah Authentication menjadi local user.

Setelah share untuk masing-masing folder telah dibuat di CIFS/SAMBA dan authentifikasi di set ke local user, sekarang kita akan memulai membuat user groups dan user account melalui WEB GUI dari FreeNAS.

Menambahkan GroupUntuk menambah grup pilih halaman Access/Users and Groups .

1. Klik tab Groups kemudian klik [+] untuk menambahkan Group.

2. Masukkan nama gruup3. Masukkan deskripsi group lalu klik Add dan Apply Changes.

Menambah UserMasih pada halaman Access/Users and Groups. Klik tab Users kemudian klik [+] untuk menambahkan user.

Page 50: Freenas

Login : isi dengan user name (misalnya mamat, arief, lukman, harun, dst), gunakan angka dan huruf saja tanpa spasi.Full name : isi dengan Nama lengkap (biasanya disamakan dengan login).Password : isi password yang akan digunakan untuk login.User ID : secara default akan terisi otomatis jadi gak usah di ubah.Primary Group : pilih group untuk user.Additional Group : pilih tambahan group untuk user jika user tergabung lebih dari 1 group (pada contoh diatas seperti user harun dan syafri). Untuk memilih lebih dari satu group tekan dan tahan tombol ctrl kemudian klik pada nama group yang akan dipilih.

home directory :isi dengan path lengkap folder yang akan menjadi home direktori dari user. Path ini tidak boleh salah. (contoh : dalam tutorial ini user mamat pathnya adalah /mnt/data/produksi/ ).Shell access : pilihan apakah user bisa mengakses server melalui shell (SSH) atau tidak.

Setelah semuanya lengkap klik tombol Add lalu Klik tombol Apply untuk menyimpan penambahan user yang baru saja Anda lakukan. Ulangi langkah diatas untuk menambahkan user yang lainnya.

Page 51: Freenas

Setelah user dan group telah di tambahkan langkah selanjutnya adalah mengatur permission pada masing-masing folder yang telah dibuat agar sesuai dengan skenario yang kita inginkan.

Folder Permission dan OwnershipUntuk mengatur folder permission dan ownwership ini belum dapat dilakukan melalui GUI FreeNAS. Untuk itu harus dilakukan secara manual melalui console shell freeNAS. Dari menu utama FreeNAS pilih angka 6 untuk masuk ke shell mode. Atau bisa juga secara remote melalui SSH ( aktifkan layanan SSHD terlebih dahulu melalui webGUI FreeNAS).

datacenter :~#datacenter :~# cd /mnt/data (pindah ke folder /mnt/data)datacenter :/mnt/data # ls (lihat isi direktori /mnt/data).snap administrasi produksimarketing sales keuangan

set group folder dengan perintah chgrp [nama_grup] [nama_folder]Tambahan : sebaiknya menggunakan opsi -R agar folder yang terdapat dibawah folder utama juga akan dimasukkan dalam grup folder. perintahnya menjadi : chgrp -R [nama_grup] [nama_folder]

datacenter :/mnt/data # chgrp -R produksi produksidatacenter :/mnt/data # chgrp -R marketing marketingdatacenter :/mnt/data # chgrp -R administrasi administrasidst…

set folder ownership dengan perintah chown [nama_user[ [nama_folder]Tambahan : sebaiknya menggunakan opsi -R agar folder yang terdapat dibawah folder utama juga akan dimasukkan dalam ownership. perintahnya menjadi : chown -R [nama_user] [nama_folder]

datacenter :/mnt/data # chown -R mamat produksidatacenter :/mnt/data # chown -R harun keuangandatacenter :/mnt/data # chown -R lukman marketingdst …

set folder permission untuk owner, group, dan diluar owner/grupgunakan perintah chmod -R 750 [nama_folder]. opsi -R berarti Rekursif, maksudnya perubahan ini juga diterapkan pada folder yang terdapat dibawahnya. chmod 750 berarti : owner mempunyai akses full (baca/tulis/eksekusi), group mempunyai akses baca dan eksekusi saja, sedangkan user lain diluar grup/owner tidak memiliki akses.

datacenter :/mnt/data # chmod -R 750 produksidatacenter :/mnt/data # chmod -R 750 marketingdst …

Page 52: Freenas

Saya gak akan menjelaskan lebih lanjut tentang permission dan ownership ini karena tutorial seperti ini banyak terdapat di Internet (cari aja lewat google) atau Anda baca disini : Blog Dark Angel

PenutupSetelah membuat user, group, dan share serta mengatur user permission dan ownership pada folder yang ada, kini folder-folder yang di mount pada FreeNAS memiliki tingkat kemanan yang sedikit lebih baik. Ketika Anda mencoba mengkasesnya melalui windows network, Anda akan diminta untuk memasukkan username dan password agar bisa mengakses folder-folder tersebut.

Tambahan :Agar tidak sembarang orang bisa mengakses Shell console langsung dari FreeNAS, Anda bisa menghilangkan menu Shell pada main menu FreeNAS. Caranya : pada webGUI dibagian System – Advanced – tab Advanced setup di bagian Miscellaneous console menu beri tanda centang [v] pada Disable console menu. Perubahan ini akan aktif setelah FreeNAS restart.