March 14, 200818 yr Tom, There should be an easy way, possibly through the web interface, to do whats described in this post. http://lime-technology.com/forum/index.php?topic=1247 Its made the perfomance of my machine so much better, its really incredible. I know you hear about a lot of problems all the time, my post was here http://lime-technology.com/forum/index.php?topic=1582.0
March 14, 200818 yr I would gladly make that fix if I understood the problem and how that fixes the problem To be clear, if you add these lines to your go script: echo nameserver 192.168.0.11 >/etc/resolv.conf echo 192.168.0.50 tower >> /etc/hosts Then what exactly does this improve??
March 15, 200818 yr If the DHCP server does not respond with a name server, then reverse looks ups may time out. also having unraid put it's own hostname into the host table relieves the system from even accessing the name server for some things. (Don't know much more then that) I remember seeing a funky hostname in /etc/hosts so I wrote a script to fix things. I have not figured out how to get the name server if dhcp does not provide it. I also noticed on the manual settings page you have ip address netmask gateway but not name server. It should be there if people do a manual config. (2 entries at least.) Especially if you are going to start adding other services on the server such as FTP, apache, etc, etc. #!/bin/bash # Fixes /etc/hosts with proper hostname information HOSTNAME=`hostname` if grep $HOSTNAME /etc/hosts >/dev/null then echo "hostname: '$HOSTNAME' already in hosts. skipping" exit fi # Remove this crappy entry. grep -v 'darkstar.example.net' < /etc/hosts > /tmp/hosts # Get current ifconfig information and use it to get address ifconfig | awk -vhostname="$HOSTNAME" ' { # inet addr:192.168.1.178 Bcast:192.168.1.255 Mask:255.255.255.0 # $1 $2 $3 $4 if ( /inet addr:/ && /Bcast:/ && /Mask:/ ) { addr=$2 gsub("addr:","",addr); printf("%s\t%s\n",addr,hostname); } } ' >> /tmp/hosts if ! grep $HOSTNAME /tmp/hosts > /dev/null then printf "127.0.0.1\t%s\n" $HOSTNAME >> /tmp/hosts fi cat /tmp/hosts > /etc/hosts rm -f /tmp/hosts
March 15, 200818 yr Yes DNS entry/ies would be nice and some way to add unraid's own name (which also should be configurable in web interface) in hosts... It is very simple to do it manually, but probably not for everybody. I suspect most people prefer a static IP for unRAID, not DHCP (as unRAID is considered "a server" by most). For myself comes easier to refer my machines with IP anyway and always found that skipping the extra step of DNS saved me time (cashed resolutions or not)...
March 15, 200818 yr Author To be honest I made these changes at like 1:30 in the morning, with my wife yelling at me to come to bed. Upon further testing, and some logical thought that a lazy weekend morning affords me. Its seems as though the real champ of these 2 lines is. echo 192.168.0.2 unraid >>/etc/hosts With of course 192.168.0.2 the ip of my server, and the name of the server being unraid. I tend to name things by their function. I don't have a nameserver on my network, everything is statically addressed. Perhaps if I did have a name server, the other line would have done something else, but I've removed it from go, and performance is the same with just the line listed above. The problem it resolved was more than just slowness. As I said in my original post, having a drive mapped to unraid on my XP machine seemed to slow it down in general. Even when I wasn't doing anything with Unraid. The other thing I noticed. Other people have seen the issue where network transfers seem to flatline and go to zero for a second or 2, while Unraid is "catching up". Then they spike. The transfers still do have peaks and valley's, but thats normal for any server system. The trick is that it no longer flatline's. If I have multiple transfers going at once, it does get really slow, like 300 k per second or something like that, but it never goes to zero anymore. And yes, just to make sure I wasn't crazy, I took the magic line out of go, and sure enough. Performance was crap again. Is there a possibility that I've got some weird thing going on my network somewhere that other people don't have? I don't know.
March 15, 200818 yr in any case, this line shouldn't hurt if unraid itself uses the network name for something internal (and from what you noticed probably does), then adding the host line makes sense I would definitely keep the DNS registration line too
March 15, 200818 yr Cant you change your servers hostname in the webinterface ? It is in the Identification section of the settings page /Rene The hostname can change , but the entry in the /etc/hosts table does not change when the form updates the config file.
Archived
This topic is now archived and is closed to further replies.