Preplanning to setup basic permissions and shared folders between users.

Status
Not open for further replies.

fisheater

Explorer
Joined
Jun 29, 2011
Messages
53
Hi,

Current setup:
3 HD ZFS RAIDz. I put all my folders and files at the top level (mnt/NAS). This way all the RAIDz space is available to all users. At the moment it is all guest access. I have both CiFS and NFS setup. The reason I am using NFS is that on my linux box, CiFS only downloads at 10 MB/sec, where NFS downloads 60-90 MB/sec. Via win7 its about 80 MB/s. I retried CiFS now to confirm these slow speeds, and it persists.

I would like to have some permissions on these folders, and exclude one user from deleting content.

Plan:
Set up following this tutorial permissions and shared folders between users.(thanks: http://protosd.blogspot.ca/2011/12/general-permissions-sharing-folders.html) without setting up private folders. I.e. Only setting up /mnt/storage/home/alpha-beta from his example.


A few pre-planning questions:
1. Do I need to move my /mnt/NAS data into the new folders /mnt/NAS/alpha-beta to setup these permissions? If I do, how do I ensure, if possible, my snapshots are moved into this new folder?
2. Am I able to use both CiFS and NFS when setting up this type of shares? The tutorial only uses CiFS and the speed is unacceptable via my linux box (I agree, if I could tune it or figure out the casuse, it would likely be a better setup).


Thanks for your thoughts before I give this a go. Option #3 is to reformat the RAIDz and start from scratch.

Kind regards,

FE
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Thanks for your thoughts before I give this a go. Option #3 is to reformat the RAIDz and start from scratch.
First, throw option #3 out.

The reason I am using NFS is that on my linux box, CiFS only downloads at 10 MB/sec, where NFS downloads 60-90 MB/sec. Via win7 its about 80 MB/s.
So, NFS via linux is 60-90 MB/sec. Win7 is 80 MB/sec via CIFs or NFS?

I would like to have some permissions on these folders, and exclude one user from deleting content.
How many users and what permissions do they each need?
 

fisheater

Explorer
Joined
Jun 29, 2011
Messages
53
Update:

paleoN said:
;First, throw option #3 out.
-Done.

paleoN said:
;So, NFS via linux is 60-90 MB/sec. Win7 is 80 MB/sec via CIFs or NFS?
Linus is via NFS, Win7 is via CiFS.
- You raise an interesting point. I did look into setting up NFS on my Win7 box, but hit lots of roadblocks. It is Win7 Home Premium. The issue is that Client for NFS is only available in Windows 7 Ultimate and Enterprise. I did try a few work arounds some time ago and did not have much luck with speed. (e.g. http://code.google.com/p/nekodrive/downloads/list – no conflict of interest).
- Found this: http://www.microsoft.com/en-us/download/details.aspx?id=2391, Supported operating systems: Windows 7 Enterprise, Windows 7 Ultimate, Windows 7 Ultimate 64-bit, Windows Server 2008 R2. Ah.
- Any suggestions welcome on setting up NFS on Win7 Home Premium.

paleoN said:
;How many users and what permissions do they each need?
4 users.
1. Linux via NFS – full read/write
2. Linus via NFS – full read/write
3. Win7 via CiFS – full read/write
4. Win7 via CiFS – Read only
5. Set Top TV box – full read/write
6. Fruit flavoured smart phone* via CiFS – full read/write (*not named for free advertising)

Other updates:

Issue A: Slow transfer speeds SAMBS/CiFS from Linux box to FreeNAS.
Improvement: via SAMBA tuning, 2x improvement – now 20MB/s.
From: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/speed.html

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192

Summary: From my reading this is the single most effective tuning, so I will not pursue this further as other mods only increase speeds by single digits %. I will move my linus box from CiFS to NFS.


Issue B: Blended NFS and CiFS shared folder.

I am tempted to use protosd's tutorial and try to make my mnt/NAS my shared folder.

So, if my logic is correct, it would look like this.

Step:
1. Create folder – already done.
2. Create group – 9999, Commongroup
3. Add Users – Add all 6 users with unique ID and names
4. Command line:
su (enter Admin password)
#omitted b/c not needing individual folders - chown alpha /mnt/storage/home/alpha
#omitted b/c not needing individual folders - chown beta /mnt/storage/home/beta
chgrp commongrp /mnt/NAS
chmod 770 /mnt/NAS
#omitted b/c not needing individual folders - chmod 700 /mnt/storage/home/alpha
#omitted b/c not needing individual folders - chmod 700 /mnt/storage/home/beta

5. Setup CiFS/Samba by exporting common folder (/mnt/NAS)
1. I believe this is the step that will cause in issue. If I set up the /mnt/NAS as CiFS, would I also able to export it as NFS?
2. There is very little risk of concurrent users altering the same file on the NAS (i.e. Near zero).

That is as far as my reading took me, before I continue with the idea of CiFS/NFS blended shared folder, I'll wait for your insights.

Thanks again for all your help!

FE
 

fisheater

Explorer
Joined
Jun 29, 2011
Messages
53
Hi all,

This is a slow motion post, I have been away from the task. But in that time, I had a thought. This post ot to reality test my idea.

Do I need individual users, or would I be able to have one log in and share it among 5 devices? I only need 1 read only account. All the others would be fine without individual log ins. Would that solve my permission issues?

1. Linux via NFS – full read/write
2. Linus via NFS – full read/write
3. Win7 via CiFS – full read/write
4. Win7 via CiFS – Read only
5. Set Top TV box – full read/write
6. Fruit flavoured smart phone* via CiFS – full read/write

TY FE
 
Status
Not open for further replies.
Top