D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-321 => Topic started by: zachlac on August 17, 2010, 08:59:34 PM

Title: Connecting to the share with read-only user
Post by: zachlac on August 17, 2010, 08:59:34 PM
I have two users enabled, one with read/write and the other with only read.  I'm trying to understand how the NAS is set up: it has two volumes, Volume_1-1 and Volume_1-2.  My admin user can login to 1-1, my guest user to 1-2.  They both have the same data, and permissions work as expected: admin can read/write, guest can only read.

Why are there these two volume listings?  Is this correct?
Title: Re: Connecting to the share with read-only user
Post by: gunrunnerjohn on August 18, 2010, 06:01:28 AM
If this is RAID-1, that's probably not correct.  It sounds like it's independent volumes.  What does the NAS status say about the disk configuration?
Title: Re: Connecting to the share with read-only user
Post by: zachlac on August 18, 2010, 06:48:39 AM
I won't be able to check for the rest of today, but it claims that it is RAID 1.  That's how I set it  up.  I think I ran a check a while back (mdadm, something like that) and it came back as RAID.  I can run some more checks when I get back.

If it's independent volumes, then why are they mirrored?  JBOD wouldn't be mirrored, I don't think.
Title: Re: Connecting to the share with read-only user
Post by: gunrunnerjohn on August 18, 2010, 07:57:47 AM
Well, if it's showing up as Volume_1 and Volume_2 with the same data, my guess would be that the RAID was broken somehow and you now have two separate volumes.  I'm guessing that if you update something on Volume_1, it won't show up on Volume_2.
Title: Re: Connecting to the share with read-only user
Post by: zachlac on August 18, 2010, 11:38:49 AM
It's showing up as Volume_1 for both: there's just that "-#" after each, i.e. "Volume_1-1" and "Volume_1-2".

When I get home tonight I'll run some basic Linux raid diagnostics, but I'd rather not dig too deep behind the scenes.  I will also check to make sure that the data I copied all day today to the drive is on both.

And as an aside, the quick responses are appreciated!
Title: Re: Connecting to the share with read-only user
Post by: gunrunnerjohn on August 18, 2010, 11:45:22 AM
That sounds like you're making multiple shares, they show up as unique file names.
Title: Re: Connecting to the share with read-only user
Post by: zachlac on August 18, 2010, 07:06:42 PM
So my info according to the web interface:

Current RAID type: Volume_1 : RAID 1
Auto-Rebuild Enabled
Only one volume shows up on Disk Diagnostics (Volume_1)

Info from Volume Info:
Volume Name:    Volume_1
Volume Type:    RAID 1
Sync Time Remaining:    Completed
Total Hard Drive Capacity:    1474368 MB
Used Space:    454475 MB
Unused Space:    1019892 MB

It looks like the RAID's healthy.  Perhaps it's some way I don't understand of enforcing read-only permissions: all of the files copied to the drive have 777 permissions, so I don't really understand how it's preventing writing by guest login.  Oh well.

Thanks.
Title: Re: Connecting to the share with read-only user
Post by: gunrunnerjohn on August 19, 2010, 05:16:28 AM
You're only looking at the permissions for root, which probably will be 777 for most files.