Baron_Harkonnen Posted December 11, 2011 Posted December 11, 2011 hi, i found this thread http://lime-technology.com/forum/index.php?topic=1975.0 about unraid being slow with unix systems because of samba exporting in DFS format by default, which unixes don't understand, etc. anyway the forum says to disable DFS for samba i have 2 questions: 1)i use unraid 4.7 - does what i mentioned before applies to this version of unraid? (the forum thread i provided is from 2008 after all...maybe things changed?....) 2) the solution Joe L. provided for this is adding those lines to GO script: sed -i -e "s/host msdfs = Yes/host msdfs = No/" -e "s/msdfs root = Yes/msdfs root = No/" /etc/samba/smb.conf smbcontrol smbd reload-config now something tells me i should not write everything in the go script - i have to choose between =Yes and =No, Right?? basicly I'm asking how should i properly write this command - like this? sed -i -e "s/host msdfs=No" -e "s/msdfs root = No" /etc/samba/smb.conf is that right? and should i write this s/ thing?? please help - i don't want the screw up my server... Thanks
dgaschk Posted December 12, 2011 Posted December 12, 2011 Joe's command replaces "host msdfs = Yes" with "host msdfs = No" and replaces "msdfs root = Yes" with "msdfs root = No" in the smb.conf file. Google "sed" You will need to learn shell scripting before you edit this code.
Joe L. Posted December 12, 2011 Posted December 12, 2011 please help - i don't want the screw up my server... You add those two lines, exactly as you see them here, in their entirity, at end of your config/go script. sed -i -e "s/host msdfs = Yes/host msdfs = No/" -e "s/msdfs root = Yes/msdfs root = No/" /etc/samba/smb.conf smbcontrol smbd reload-config You can read it as two different "edit" commands. "sed -i -e" = stream edit command "s" = substitute "/" = start of string to replace "host mdfs = Yes" = actual string to search for "/" end of string to search for "host mdfs = No" = replacement string "/" end of replacement string and then same for the second "-e" edit, but changing "mdfs root"
Baron_Harkonnen Posted December 13, 2011 Author Posted December 13, 2011 oh yeah, now i get it! damn, all that command line stuff and scripting starts to seem like lots of fun! i added those lines to the script, i think it works! accessing the tower still takes up to 5 secs, but navigating inside the shares is just as fast as on local drives! Thank you very much for help!
rukiddin Posted February 24, 2013 Posted February 24, 2013 This solution seems to help once you've accessed the share for the first time, and then navigating within that share, but initially listing or returning to the main list of shares is still painfully slow. Does anyone have a solution for that? Mike
Recommended Posts
Archived
This topic is now archived and is closed to further replies.