xamindar

Community Developer
  • Posts

    442
  • Joined

  • Last visited

Everything posted by xamindar

  1. Lol, well thanks for "fixing" it so fast. Either no one tests it before using it or they all have cache drives in their systems. Thanks again for this script!
  2. Nice queeg, is that thing hooked up to your clothes dryer line?
  3. Just tried this. It seemed to run as it spun up all my disks and they were grinding away for a while. Then I ran "cache_dirs -q" to stop it and started it with "cache_dirs -F" so I can see output but now it just sits there on a blank line forever, no output, nothing. It seems to run fine without the -F option so I guess it's no big deal. Just thought it was supposed to spit back info as it ran.
  4. What about a power supply issue? If the errors happen across different disks on different controllers the only common things I can think of is power issues of memory issues. Could the power supply be having trouble supplying stable power? Seems you have it sorking fine on a cold boot but later it starts acting up. Just a thought.
  5. I wouldn't dare use it. From their privacy policy: Any of your stuff you put in there they now own.
  6. I installed mediatomb on my unraid server but have to run it as root because of the permissions set on /mnt/user # ls -la /mnt/ total 16 drwxr-xr-x 5 root root 4096 2010-03-14 17:41 . drwxr-xr-x 22 root root 4096 2010-02-26 20:28 .. -rw-r--r-- 1 root root 376 2006-09-25 20:09 README drwx------ 6 root root 136 2010-03-06 12:56 disk1 drwxr-xr-x 3 root root 4096 2010-02-25 06:59 storage drwx------ 1 root root 136 2010-03-06 12:56 user It has only user root set to read/write/execute which seems really strange. Not even the group has any permissions. I haven't tried changing the permissions yet because I'd like to ask here first. Why is it set this way? If I change them (chmod 744 -R /mnt/user) will it mess anything up? Will the permissions just go back on a reboot? Will any new files have to be changed manually? I haven't seen anyone bring this up so maybe it's only my system.
  7. Where? I don't see it. Really nice, is this table a text file that can be added to? Also, you mentioned in the other thread of having a way to adjust temperatures of drives that report wrong (like the samsung ones that report about 15 degrees less than it really is). Will there be a way to specify an automatic adjustment for specific drive models as well? Maybe add an option to tell when the last parity check was? Then we could check and run a parity check after a certain amount of time has passed. I haven't looked around so maybe this has been done already.
  8. Well, I was recalling from memory. Lets use a little google to refresh my memory. Ok, to correct, smb had a 2 gig limit, not 4. It was more a limit of the kernel module smbfs.o. Switch to using cifs and there is no limit anymore. Anyway, this whole thing doesn't matter anyway because it has nothing to do with unraid.
  9. I think you misunderstood me. I never said any versions of unraid had a 4gig limit. I was just pointing out that older versions of the SMB protocol had a 4gig limit. So, if you connected to your unraid server from a machine that had a very old smb version you would only have a 4gig limit.
  10. Max file size 8 TiB But the way unraid works the max filesize is probably as large as the max available space on one of the drives. I don't know of any limits on size with the current samba (cifs) but the older one had a limit of 4gigs, not the case anymore.
  11. That's why you don't try to control CPU or PSU fans... they have their own self-contained control mechanisms. Exactly. There is no bios control for hdd temperature so we have to write our own. I was just using the cpu fan as a test as it is currently the only controllable fan I have on the system. If I don't modify it but just "cat /sys/class/hwmon/hwmon1/device/pwm1" I can see how the number is automatically changed by the bios as the cpu temp rises or lowers, kinda neat. But I have noticed once I manually change it the bios releases control of it and it will stay where I set it until I reboot. There might be another way without rebooting but I haven't bothered to look as this is only testing anyway. The wonders of linux, you can do pretty much anything you can dream up with linux. Also, I don't see controlling the hdd fans with the os as a problem as they are defaulted to full speed without the script and if the temperature rises too high there is an over temp buzzer on the array that will go off.
  12. If this tool comes out and works well with unraid it would be nice to have more sensors compiled with the kernel. Hopefully Limetech will do that. I had to recompile the kernel to get the sensor for my board. Actually, sense the sensor options in the current kernel are enabled we should just be able to compile whatever extra modules are needed for other boards and install them as optional packages.
  13. I just want to make a suggestion to LimeTech for the next release. Someone please correct me if this has already been implemented in this release, but I highly doubt it. Sense drives are going to start moving over to 4k sectors unraid needs to start partitioning them correctly. I don't want to jumper my new drives forever. Linux DOES support these drives at 4k sectors but at the moment you need to partition them specifically, the linux tools can't figure it out for you. Hopefully that will be fixed soon. Is there anywhere LimeTech posts the planned updates for the next version of unraid?
  14. Well, I figured out that my little mini itx board that unraid is using has pwm fan speed control on all three fan ports so I can just use that. I spent some time and wrote a very simple script to check the temperatures of the drives, pick the highest one, then set the speed of the fan accordingly between three speed settings. I am still waiting for a fan to come in the mail that I will use with the 5 in 3 backplane (norco ss-500) but I have tested this script on the cpu fan and it works great. I am definitely open to criticism as this is only the second bash script I have ever written. It's not very smart so you have to edit it and be sure to set all the user variables correctly. Then just add a cron entry to run this script every 5 minutes or so and it should work. Also one more thing. I don't know if smartctl will reset the spindown timer so it may cause the drives to never spin down. Anyone know if this is the case? I do know that running the smartctl on a drive in standby does NOT cause it to spin up so this is probably not an issue. #!/bin/bash # unraid_array_fan.sh v0.4 # v0.1 First try at it. # v0.2: Made a small change so the fan speed on low doesn't fluctuate every time the script is run. # v0.3: It will now enable fan speed change before trying to change it. I missed # it at first because pwmconfig was doing it for me while I was testing the fan. # v0.4: Corrected temp reading to "Temperature_Celsius" as my new Seagate drive # was returning two numbers with just "Temperature". # A simple script to check for the highest hard disk temperatures in an array # or backplane and then set the fan to an apropriate speed. Fan needs to be connected # to motherboard with pwm support, not array. # DEPENDS ON:grep,awk,smartctl,hdparm ### VARIABLES FOR USER TO SET ### # Amount of drives in the array. Make sure it matches the amount you filled out below. NUM_OF_DRIVES=3 # unRAID drives that are in the array/backplane of the fan we need to control HD[1]=/dev/sdb HD[2]=/dev/sdc HD[3]=/dev/sde HD[4]=/dev/ HD[5]=/dev/ # Temperatures to change fan speed at # Any temp between OFF and HIGH will cause fan to run on low speed setting FAN_OFF_TEMP=30 # Anything this number and below - fan is off FAN_HIGH_TEMP=36 # Anything this number or above - fan is high speed # Fan speed settings. Run pwmconfig (part of the lm_sensors package) to determine # what numbers you want to use for your fan pwm settings. Should not need to # change the OFF variable, only the LOW and maybe also HIGH to what you desire. # Any real number between 0 and 255. FAN_OFF_PWM=100 FAN_LOW_PWM=120 FAN_HIGH_PWM=255 # Fan device. Depends on your system. pwmconfig can help with finding this out. # pwm1 is usually the cpu fan. You can "cat /sys/class/hwmon/hwmon0/device/fan1_input" # or fan2_input and so on to see the current rpm of the fan. If 0 then fan is off or # there is no fan connected or motherboard can't read rpm of fan. ARRAY_FAN=/sys/class/hwmon/hwmon1/device/pwm2 ### END USER SET VARIABLES ### # Program variables - do not modify HIGHEST_TEMP=0 CURRENT_DRIVE=1 CURRENT_TEMP=0 # while loop to get the highest temperature of active drives. # If all are spun down then high temp will be set to 0. while [ "$CURRENT_DRIVE" -le "$NUM_OF_DRIVES" ] do SLEEPING=`hdparm -C ${HD[$CURRENT_DRIVE]} | grep -c standby` if [ "$SLEEPING" == "0" ]; then CURRENT_TEMP=`smartctl -d ata -A ${HD[$CURRENT_DRIVE]} | grep -m 1 -i Temperature_Celsius | awk '{print $10}'` if [ "$HIGHEST_TEMP" -le "$CURRENT_TEMP" ]; then HIGHEST_TEMP=$CURRENT_TEMP fi fi #echo $CURRENT_TEMP let "CURRENT_DRIVE+=1" done echo "Highest temp is: "$HIGHEST_TEMP # Enable speed change on this fan if not already if [ "$ARRAY_FAN" != "1" ]; then echo 1 > "${ARRAY_FAN}_enable" fi # Set the fan speed based on highest temperature if [ "$HIGHEST_TEMP" -le "$FAN_OFF_TEMP" ]; then # set fan to off echo $FAN_OFF_PWM > $ARRAY_FAN echo "Setting pwm to: "$FAN_OFF_PWM elif [ "$HIGHEST_TEMP" -ge "$FAN_HIGH_TEMP" ]; then # set fan to full speed echo $FAN_HIGH_PWM > $ARRAY_FAN echo "Setting pwm to: "$FAN_HIGH_PWM else CURRENT_SPEED=`cat $ARRAY_FAN` # set fan to full speed first to make sure it spins up then change it to low setting. if [ "$CURRENT_SPEED" -lt "$FAN_LOW_PWM" ]; then echo $FAN_HIGH_PWM > $ARRAY_FAN sleep 2 fi echo $FAN_LOW_PWM > $ARRAY_FAN echo "Setting pwm to: "$FAN_LOW_PWM fi EDIT: v0.2: Made a small change so the fan speed on low doesn't fluctuate every time the script is run. EDIT: v0.3: It will now enable fan speed change before trying to change it. I missed it at first because pwmconfig was doing it for me while I was testing the fan. EDIT: v0.4: Corrected temp reading to "Temperature_Celsius" as my new Seagate drive was returning two numbers with just "Temperature". unraid-fan-speed.sh.zip
  15. bubbaQ, why does it have to be it87? unRAID only has that driver built in?
  16. Gotta say, unmenu is really impressive. Thanks for all the work you put into it. One thing that bugs me though. It lets anyone connect to it. Is there a way to make it require a login to access?
  17. That TC647B is interesting. How do you program it? Not sure if I have the tools to program it but building it sounds fun. I have found a couple interesting ones: Lian Li TR-5 - Seems to do exactly what I need. But one thing I can't figure out. It has an auto speed setting based on temperature but it doesn't look like you can set it to which temperatures you want the fan speeds to change. That doesn't make sense to me. Anyone have experience with these things? This one is a little on the expensive side as well. http://www.newegg.com/Product/Product.aspx?Item=N82E16811999194 - Looks like similar control as the Lian one but has a bunch of media card slots as well. Would be kinda neat to write some scripts to auto mount any cards plugged into it, copy the data on the cards to unraid, then unmount them. Would make a quick backup sollution for memory cards. Regarding temperature control, how do you set which temperatures to speed up the fans at? These things seem to have no information on that. I saw some others around when I was searching last week but can't seem to find them, oh well. Also, I'll have to check my motherboard and see if Linux will detect fan speed and such with it. I know the bios does for all three fan connectors, now to check on linux. If this works then I wouldn't even need one of these panels and can just have unraid take care of it for me as bubbaQ suggested. My main reason for all this is because my unraid sits right next to the TV and I want it as quiet as possible but also need it to kick into high gear if the HDD temps get too high.
  18. As an example, the Western Digital Greens are rated between 0 and 60 while in operation. But who knows how long they will last at that temperature. Also, I had three drives in an unraid testing server with no ventilation running at temperatures between 60 and 65 for a couple of weeks. They are all still working fine except one has a loud bearring whine which was probably caused by that. The temperature sure kept me watching and nervous. I would personally say don't go above 50 and you should be fine. Or just think, the lower you keep their temperature, the longer you can expect them to last.
  19. This is something I haven't gotten into yet but will really soon so this is usefull. A couple I know about are: dvd::rip k9copy Those both look like the best of the free ones out there that I can tell.
  20. Not sure how that would be possible. You would need either a cable or a circuit board between the pins on the motherboard and the type A connector. Would you be able to explain what you are wanting? I just use an old internal usb header cable. The kind that would plug onto the motherboard header with a cable that would go to a rear plate on the case. I just velcroed it to the inside of my case instead. The only other option I have seen is what prostuff1 listed. Thought it was on newegg but I can only find this.
  21. I'm looking for a way to connect the fan that blows air across the hard drives to a temperature controller that will set the speed of the fan based on the temperature. So for example, if the hard drives hit 35C then spin the fan up to full and then when they drop below 30C to lower the speed down to a level that is inaudible. Is there such a device out there that can do this? Any of you have experience with it? Something that has temperature sensor leads that could be put in the 5 in 3 backplane and then apply those readings to the speed of that fan would be very usefull. Or, as another way of doing this, if possible. Can the fan be plugged into the main board and then speed adjusted based on the hdd SMART temperatures? Thanks for any input. EDIT: Go HERE for my answer to my question.
  22. Well first of all to access the "user" shares it's not under /mnt/disk1/music but instead you would go under /mnt/user/music. That way it will give you everything from all drives. You have MEDIATOMB installed now just go to it's web interface and add some directories. If you have specific questions about Mediatomb feel free to ask them. I have it currently set up on a computer for use with my PS3 so I have gone through this before.
  23. I just tried. The back easily comes off after removing the four corner screws. The back panel has what looks like a normal fan (80mm x 25mm) and a daughter board that has the power and sata connectors on it. The fan is connected to the daughter board. There is also another fan plug on the backplane board as well but both fan connectors are labeled the same (JFAN1). The buzzer on the backplane has a sticker on it that says "HUDZ REMOVE SEAL AFTER WASHING" Think I'll remove that now. There is one jumper spot, I assume that is to disable the buzzer. But there is no instructions so I don't know if I take it completely off or switch it over to pins 1 and 2 (currently on 2 and 3). One of my sata drives will not go in all the way. It's an older drive that still has the 4 pin molex plug on it in addition to the sata one. Looks like the sata plugs are in the same location so I don't know why it wont go it all the way. There is nothing blocking the molex spot either. Did sata plugs change at all sense these early drives? EDIT: I see the problem with that old sata drive. Even the new "locking" sata cables I just bought do not fit on it. The space between the top of the connector and the wall of it is too small. Looks like they later modified the connector to allow locking cables and had to make that space on the top about twice as thick. Bummer. The backplane must also have that same thickness on the top part of the connector, probably so it doesn't break off easily. Oh well, at least I can stick one of my spare 2.5" drives in the backplane instead.
  24. Thanks again for all the help. I ended up buying the Norco ss-500. http://www.newegg.com/Product/Product.aspx?Item=N82E16816133030&Tpk=ss-500%20norco Looks like they must have changed it. The leds are on the backplane and there are two clear plastic leads on one edge of each caddy that allows the light to shine out of the front. Not a bad idea. In the reviews I looked at on this it looked like it had leds on the front like other 5 in 3s I have seen. These caddies will also take either 3.5" drives or 2.5" laptop drives which is a big plus. I haven't hooked it up yet but so far I am liking it!