Jump to content

samba stopped


Recommended Posts

Posted

Hi, I am new to this so please excuse me if i mess up the protocol of the forum. I have little Linux knowledge but I have had my Unraid server up and running for about a year + with no issues. The other night my Blueray player couldn't see the shares. I saw a tutorial that said use *® in NFS to allow read access to all files. I tried it and still couldnt access the share. I removed it but then discovered Win7 machine could nolonger mount them either. In Unmenu I have a message ' SAMBA is STOPPED, Shared drives will not be visible on the LAN'. I tried restarting and rebooting to no avail. I have the following shares defined and the files are visible in Unraid file browser

 

MWK/ drwx------ 280 2011-12-17 10:43AM

• Mike/ drwx------ 96 2011-03-14 09:56PM

• Monica/ drwx------ 552 2011-08-14 12:54PM

• Movies/ drwx---rwx 4456 2012-01-11 01:21PM

• Music/ drwx------ 88 2011-02-10 11:56PM

• Pictures/ drwx------ 72 2011-02-06 10:47PM

• TV/ drwx------ 72 2011-02-14 09:14PM

 

Here is what my boot config looks like now:

 

/boot/config/share.cfg

# Generated settings:

shareFlash=e

shareDisk=e

shareDiskNfs=

shareUser=e

shareNfsFsid=100

shareSecurity=none

shareInitialOwner=Administrator

shareInitialGroup="Domain Users"

shareMoverSchedule="40 3 * * *"

shareMoverLogging=yes

shareCacheFloor=2000000

 

I am not sure if the shares should be showing in this file, I have attached the syslog also. If somebody could help me out I would appreciate it my kids college docs are backed up on this server and I need to get it running.

 

Thanks for any assistance

syslog-2012-01-11.txt

Posted

Hi.

Yes the array is started. It appears that when I put *®in the NFS box it started NFS and that appears to have caused the Samba config file to be deleted on start up I can see that happening in the syslog. I don't know how to reverse what I did. I think i need to redefine the shares under samba and stop NFS from starting. I also noticed that when I stop the array and go to the shares in main they are gone. can I just redefine them?

 

Here is the contents of etc/samba directory if it helps:

 

 

root@Tower:/etc/samba# ls

private/  smb-names.conf  smb-shares.conf  smb.conf

root@Tower:/etc/samba# more smb-shares.conf

 

        path = /boot

        read only = No

        force user = root

        map archive = No

        map system = No

        map hidden = No

        map readonly = Yes

        create mask = 0777

        directory mask = 0777

root@Tower:/etc/samba# more smb.conf

[global]

        # configurable identification

        include = /etc/samba/smb-names.conf

 

        # log stuff only to syslog

        log level = 0

        syslog = 0

        syslog only = Yes

 

        # we don't do printers

        show add printer wizard = No

        disable spoolss = Yes

        load printers = No

        printing = bsd

        printcap name = /dev/null

 

        # misc.

        passdb backend = smbpasswd

        unix extensions = No

        host msdfs = Yes

        msdfs root = Yes

        use sendfile = Yes

        aio read size = 0

        aio write size = 0

 

        # hook for user-defined samba config

        include = /boot/config/smb-extra.conf

 

        # auto-configured shares

        include = /etc/samba/smb-shares.conf

root@Tower:/etc/samba#

root@Tower:/etc/samba# more smb-names.conf

# Generated names

netbios name = Tower

server string = Media server

security = SHARE

workgroup = Homegroup

local master = no

force user = root

null passwords = Yes

guest ok = Yes

guest only = Yes

guest account = root

map archive = Yes

map hidden = Yes

map system = Yes

map readonly = Yes

create mask = 0711

directory mask = 0711

 

 

thanks for responding

Posted

Hi, here is the bin/config/go* file

 

root@Tower:/boot/config# more go*

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

 

cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c

cd /boot/unmenu

./uu

root@Tower:/boot/config#

 

 

and here is share.cfg:

root@Tower:/boot/config# root@Tower:/boot/config# more share.cfg*

-bash: root@Tower:/boot/config#: No such file or directory

root@Tower:/boot/config# # Generated settings:

root@Tower:/boot/config# shareFlash=e

root@Tower:/boot/config# shareDisk=e

root@Tower:/boot/config# shareDiskNfs=

root@Tower:/boot/config# shareUser=e

root@Tower:/boot/config# shareNfsFsid=100

root@Tower:/boot/config# shareSecurity=none

root@Tower:/boot/config# shareInitialOwner=Administrator

root@Tower:/boot/config# shareInitialGroup="Domain Users"

root@Tower:/boot/config# shareMoverSchedule="40 3 * * *"

root@Tower:/boot/config# shareMoverLogging=yes

root@Tower:/boot/config# shareCacheFloor=2000000

root@Tower:/boot/config# root@Tower:/boot/config#

-bash: root@Tower:/boot/config#: No such file or directory

root@Tower:/boot/config#

 

Posted

Edit the go as follows:

#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &

#cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c
#cd /boot/unmenu
#./uu

 

Then reboot.

Posted

hi,

The system is up but now it looks like new. I dont see the data in the file browser or the disk info. I have not started the array yet, should I?  this is the unmenu main page:

 

Array StatusNEW_ARRAY, unRAID ARRAY is STOPPED 3 disks in array.    PARITY NOT VALID: DISK_NEW; SAMBA is STOPPED, Shared drives will not be visible on the LAN.Array Disk StatusStatus Disk Mounted Device Model/Serial Temp Reads Writes Errors Size Used %Used Free

DISK_NEW new disk  /dev/sdc  42°C 26 0     

DISK_NEW new disk  /dev/sdb  40°C 33 0     

DISK_NEW new disk  /dev/sda  38°C 32 0     

                Total: 0.00K 0.00K  0.00K

UNRAID Drive

Device Model/Serial Mounted File System  Size Used %Used Free

/dev/sdd1 usb-Ut163_USB2FlashStorage_00000000000030-0:0 /boot vfat  1.01G 160.24M 16% 846.37M

 

Posted

hi,

doesnt this start unmenu?

#cd /boot/unmenu

#./uu

 

sorry bad info I just went into conf view/edit and the editor shows this. the commands are not commented out. should I try pasting your command again? or start the array?

 

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

 

cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c

cd /boot/unmenu

./uu

 

 

 

 

Posted

are you on a Gigabyte motherboard?  if you are, check MyMain view in unmenu for "HPA?".

 

if you see it on the parity drive that may be the issue.

 

search around for answers on how to resolve.

Posted

hi, i can do that but I doubt its applicable. I made this out of an old compaq preserio that i upgraded the power supply and fans and put 3 disks in. it is my first attempt at an unraid system and it has worked great for 1+ years. this whole mess started when i added the *® in the NFS box in the shares, it seemed to have caused something to removed the samba shares. Do you think I can reenter the shares in the configuration and start it up? would it find the data? I thought i read an article of somebody populating the drives first then putting them in the array and allowing parity build in the background. They couldn't have built the shares until the drives were installed.

I am only worried about losing the data.

 

I appreciate all your help

 

Posted

We need to disable unmenu and the add-ons to make sure that it's not an add-on causing this problem. Comment the lines in the go file as described above and then we can see how it works. You can shutdown with the webGUI, and put the flash in a PC or Mac  and edit the file. On a PC use something like Notepad++ so the file will still be useable in Unix.

 

Your data is not at risk. Neither are the shares. The shares may revert to the default configuration, but that is easy to fix.

 

Parity may need to be recreated. This is safe as long as one of the data disks does not fail during parity generation.

Posted

Hi,

thanks for the reassurance :). I booted up with your 'GO' settings and it looks good, no issues and unmenu is out of the process. The server came up in a stopped status, drives blue. Should i spin it up?

 

 

 

#!/bin/bash

# Start the Management Utility

/usr/local/sbin/emhttp &

 

#cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs -n1 sh -c

#cd /boot/unraid

#./uu

 

unraid_main_shares_screen.JPG.9aeec01ac2b15d62ede90f51c6bc1c85.JPG

Posted

Hi, I had this problem recently. Turns out that it was the secrets.tbd file that had become corrupted located in /etc/samba/private/secrets.tbd. Back it up and delete the old one and see if samba recreates it. You could also try to remove the usb drive and run chkdsk on it. That fixed it for me.

Posted

hi,

OK, my server is up and sharing data. Everything appears OK after I ran CHKDSK and then moved the secrets file to the backup folder. Thanks for the support and advice. I will now re-enable unmenu.

Any idea why doing '*®' in the NFS box appeared to cause the problem?  I am still trying to find the solution to my LG BD590 asking for CIFS user/password to share.  I have attached the latest syslog.

 

thank for all the assistance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...