In my previous post, I went over the basic installation of Openfiler. In this final part, I'll describe how we configured Openfiler via the web interface to create users, partitions and shares.
What is our NAS going to do? We can configure all that we need from the web interface. The Openfiler documentation, at the time of writing this blog post, was messy and written for the previous version of Openfiler. It seems a little better now but let's go over it anyway! Point your browser to the IP address you remembered/wrote down earlier (ie. https://192.168.0.100:446). You might get a security warning but you can ignore it (or add an exception for it). From here on, we'll do everything via the web interface.
Now that the basic services are enabled, we need to tell Openfiler that all our user accounts are stored in the just enabled LDAP.
At this point, it might take a while before these settings take effect. If you proceed to create groups (as we're going to do in a second) and get a warning, don't worry. Just disable/enable the LDAP server under Services > Manage Services to make things work. If things are still not working, rebuilt the LDAP under Services > LDAP Setup.
We'll create 2 groups: "staff" and "users". The users group will only be able to access the Projects share and the "staff" group will be able to access all shares.
Repeat this for the users group. Adding a user to one or more groups is just as simple:
Repeat this for all the users you'd like. To add someone to multiple groups (ie. part of the staff and users group) go back to the Group Administration tab look under Group Control.
We still don't have any storage space, shares or users. Create one big storage space from the unused disk space (from the 2 hard disks):
Repeat this for /dev/hdb.
The just created software raid's state will be: Active & recovering, for a while before getting Synchronized. Now, we'll create the volume group(s) to store data. A (logical) volume group (VG) is some virtual disk space that can span multiple physical volumes (PV). In our case this is not applicable but a required step in the process. The VG will consist of the remaining space on the PV.
We will create a volume group called "maykin" which will consist of 3 volumes: "File Server", "Repository" and "Backup". I will only cover the "File Server" volume in this post since it's the only one that will have shares. The other two are used for different purposes then actually intended by Openfiler. Anyway, the "File Server" volume will get 2 shares: "Administration" (for us, the owners) and "Projects" (for every authenticated user).
I didn't use the maximum available size for the volume so I can make more volumes later. To make this File Server volume accessible, we create shares:
Shares are the available access points to the volume we just created. As mentioned before, we'll create 2 shares: "Administration" and "Projects".
Before we do this, we'll add an IP-range that will have access to these shares. This seems to be mandatory, otherwise the shares would not show for me.
There! Not a very hard step but it took me a while to figure out this was mandatory. Now, finally, shares!
This brings us to another page where we can assign groups to shares:
Repeat this for the Projects share, and set appropriate access for both the staff and users groups.
And... done! Under Windows you can access the shares by going to the IP address or Netbios name in Windows Explorer (ie. \\192.168.1.10 or \\fileserver).
Using mysql load data infile with django Using a jumpbox with subversion