Samba Shares Not Accessible On RAID Array
I just finished setting up a RAID5 array with 3 new 1.5TB hard drives using mdadm. I spent the last 5 days trying to get the RAID array working. Everything is up and running now except I have not been able to share folders on this drive using Samba. I can share files in my home directory and on my NTFS drive, but not the RAID array. I am trying to access the shares from a Windows Vista PC. I can see the folders, but I can't access them.
The RAID array is formatted with ext4. I am using Ubuntu 10.04 64bit using the Samba configuration tool in Nautilus. I gathered all the relevant information below. I have been trying for hours, and I am out of ideas. Any help would be appreciated. Thanks in advance. FSTAB # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 # CD Drive /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 # / was on /dev/sda1 during installation UUID=48c8edf9-f238-41d3-94a8-e9b6209cb488 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=9ed2aa36-3079-4c8d-aa67-72c3cf3b99f2 none swap sw 0 0 # Media /dev/sdb1 /media/Media ntfs nls=iso8859-1,users,umask=000,user,owner,uid=user_name 0 0 # RAID5 #UUID=88d7fb69:2373f7f1:bdc00c63:fa02236c /media/RAID5 ext4 rw,auto,user 0 1 /dev/md0 /media/RAID5 ext4 rw,auto,user 0 1 # FreeNAS Drive //192.168.1.250/JBOD /media/JBOD cifs noauto,uid=user_name,admin 0 0 # Sandisk Titanium UUID=22BA-0343 /media/Titanium vfat noauto,user,rw,uid=1000,gid=1000 0 0 mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=user_name group=root mode=0660 auto=yes # automatically tag new arrays as belonging to the local system #HOMEHOST desktop HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md/desktop:0 metadata=1.2 name=desktop:0 UUID=88d7fb69:2373f7f1:bdc00c63:fa02236c # This file was auto-generated on Sat, 07 Aug 2010 03:10:00 -0500 # by mkconf $Id$ Samba Configuration testparm Load smb config files from /etc/samba/smb.conf rlimit_max: rlimit_max (1024) below minimum Windows limit (16384) Processing section "[printers]" Processing section "[print$]" Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] server string = %h server (Samba, Ubuntu) map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 name resolve order = lmhosts host wins bcast dns proxy = No wins support = Yes usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d [printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes browseable = No browsable = No [print$] comment = Printer Drivers path = /var/lib/samba/printers Permissions ls -l /media/RAID5/ drwxrwxrwx 47 user_name root 4096 2010-08-11 21:28 Folder1 Versions sudo mdadm --version mdadm - v3.1.2 - 10th March 2010 smbd --version Version 3.4.7 |
If the error is "permission denied" then I'd strongly suspect that the group for the /media/RAID5/Folder1 shouldn't be "root" but perhaps "users". You could try chgrp users /media/RAID5/Folder1
I also don't see any of the shares (home or Ntfs or raid) in your smb.conf testparm output. |
Re: Cannot Share RAID Array
Thanks for the reply. I tried your suggestion, but it didn't fix the issue.
This is the error message I get in windows. Quote:
Quote:
|
Re: Cannot Share RAID Array
I have a few more details. The first time I tried to access the folder it asked me for a password. I think I gave it the wrong password. After that it never asked for a password again.
I changed the group owner to "users" and changed the group and mode in the CREATE line in mdadm.conf to... Quote:
|
You have read only = yes in your samba.conf. I suppose that's why you don't have write access. I don't use Nautilus, so can't help you if that's the issue.
There's always a password; the question is why does Windows sometimes prompt you and sometimes uses the authentication you already have from connecting to begin with. I don't know that one either, but it isn't a RAID thing; my mdadm drives are served up the same as /home/user and anything else that the logged user would normally have access to. |
Re: Cannot Share RAID Array
Thanks. I missed the read only line.
I ran these commands on the RAID folder. After a restart everything was working. Quote:
fstab Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 05:50 AM. |