Jump to content

MvL

Members
  • Posts

    593
  • Joined

  • Last visited

Everything posted by MvL

  1. I suppose this is answered before but couldn't find the answer. I'm preclear 4 2TB drives right now and the scrips is by step post-reads. How long does this take? Is this just one cycle with the standard settings. I'm a bit confused by the explanation in the preclear thread.
  2. Thanks for the information starcat. Very interesting. So if understand it correctly you can wake up your server when it is off by switching on your media player? You just need a NIC that supports wake on ARP and a switch that supports IGMP snooping. This has nothing to with your router? My server handles the router functions. This also works with two switches?
  3. @ papnikol, Thanks for the info! I will check "screen" tomorrow. Looks interesting. @ Tom899 When you login directly to unRAID you can do only one job at a time as far as i know.
  4. I used pre-clear also for the first time today. What i did is open a putty window for every pre-clear job. So i pre-cleared two drives at the same time. I don't know or this is the way to do it. Maybe some advice from a pro user?
  5. Yes, it is working now! Oeps i forgot something. I didn't assigned my parity drive yet, because i still had to move some data. So when i spin down all drive the parity drive stays active. You guess the unRAID server will never go to sleep. Yes i admit that was stupid Positive thing i learn some new stuff today! Thanks BRiT.
  6. Ok i did found the error: SG_IO: bad/missing ATA_16 sense data:: f0 00 05 00 00 00 00 0a 00 aa 55 40 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 it was a card reader. It was still connected to the motherboard. I disconnected the cardreader. So the error is gone. For some reason the unRAID server won't go to sleep. When i check with: ps -Al 4 S 0 1466 1 0 80 0 - 13489 inet_c ? 00:00:00 emhttp 1 S 0 1583 2 0 80 0 - 0 md_thr ? 00:00:00 mdrecoveryd 5 S 0 1584 2 0 80 0 - 0 md_thr ? 00:00:00 spinupd 5 S 0 1585 2 0 80 0 - 0 md_thr ? 00:00:00 spinupd 5 S 0 1587 2 0 80 0 - 0 md_thr ? 00:00:00 spinupd 5 S 0 1589 2 0 80 0 - 0 md_thr ? 00:00:00 spinupd 4 S 0 1648 1 0 80 0 - 572 wait ? 00:00:00 s3.sh 0 S 0 1649 1 0 80 0 - 408 n_tty_ tty1 00:00:00 agetty 0 S 0 1650 1 0 80 0 - 409 n_tty_ tty2 00:00:00 agetty 0 S 0 1651 1 0 80 0 - 409 n_tty_ tty3 00:00:00 agetty 0 S 0 1652 1 0 80 0 - 408 n_tty_ tty4 00:00:00 agetty 0 S 0 1653 1 0 80 0 - 408 n_tty_ tty5 00:00:00 agetty The script is running. I also lower the intrnlTimeoutTicks=30 parameter. intrnlTimeoutTicks=2 # ticks after HDD spindown before checking for external activity attached HDD: root@Tower:/# fdisk -l Disk /dev/sda: 2000.3 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xfd37fe98 Device Boot Start End Blocks Id System /dev/sda1 1 243202 1953513560 b W95 FAT32 Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes 1 heads, 63 sectors/track, 62016336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 2 62016336 1953514552+ 83 Linux Partition 1 does not end on cylinder boundary. Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 1 heads, 63 sectors/track, 31008336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 2 31008336 976762552+ 83 Linux Partition 1 does not end on cylinder boundary. Disk /dev/sdd: 4022 MB, 4022337024 bytes 255 heads, 63 sectors/track, 489 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdd1 * 1 488 3919841 6 FAT16 Disk /dev/sde: 1000.2 GB, 1000204886016 bytes 1 heads, 63 sectors/track, 31008336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sde1 2 31008336 976762552+ 83 Linux Partition 1 does not end on cylinder boundary. Disk /dev/sdf: 1000.2 GB, 1000204886016 bytes 1 heads, 63 sectors/track, 31008336 cylinders Units = cylinders of 63 * 512 = 32256 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdf1 2 31008336 976762552+ 83 Linux Partition 1 does not end on cylinder boundary. Disk /dev/sdg: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x7951ce34 Device Boot Start End Blocks Id System /dev/sdg1 * 1 2611 20972826 7 HPFS/NTFS Partition 1 does not end on cylinder boundary. /dev/sdg2 2612 121602 955787112 7 HPFS/NTFS Partition 2 does not end on cylinder boundary. Anyone a clue whats going on?
  7. Is this a other way to get te correct line endings? When i start s3.sh manually i'll get this error: SG_IO: bad/missing ATA_16 sense data:: f0 00 05 00 00 00 00 0a 00 aa 55 40 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 any idea?
  8. Yes, it has something to do with line endings. I didn't know about this. I'll edit the go file and the s3.sh file with notepad. I'm correcting my error...
  9. Hmm, If i excute s3.sh i'll get this output: root@Tower:/boot/custom/bin# ./s3.sh -bash: ./s3.sh: /bin/bash^M: bad interpreter: No such file or directory When i check with vi there is ^M after every row. How can edit this file so i can remove this ^M. eh, i hate vi. Any other editor available on unRAID?
  10. Hi, For some time now i use the s3.sh script from the wiki. I have no problems with this script. I want to disable the s3.sh script at certain hours. Chanders direct me to this thread. I tried the script from ReneV, but for some reason it is not working for me. The unRAID server never goes to sleep. I also read something about the cache drive. You have to change something in the s3.sh script? At the moment i don't use a cache drive. I will past my s3.sh file and my go file. Any help appreciated. s3.sh file: #!/bin/bash # constants yes="yes" no="no" # [CONFIGURATION] # before going to sleep intrnlTimeoutTicks=30 # ticks after HDD spindown before checking for external activity extrnlTimeoutTicks=1 # ticks of no external activity before sleep; only after spindown+internal countdown # control of internal timeout checkHDDs=$yes # check if all HDDs are parked before counting down towards sleep noCountdownHours="" # only countdown towards sleep outside these hours # example: <noCountdownHours="07 08 19 20"> # always countdown: <noCountdownHours=""> # control of external timeout checkTCP=$no # check for TCP activity pingIPs="" # do not sleep if <$pingsIPs> are pingable # example: <pingIPs="192.168.1.4 192.168.1.5"> # no ping-check: <pingIPs=""> # after waking up from sleep doDhcpRenewal=$no # <$no> for servers w/static IP address forceGb=$yes # might not be needed; probably always safe # [/CONFIGURATION] # implementation stuff ticklengthSecs=60 # probe hardware + count down every minute/60secs, aka a tick noTCP='0.00' # what constitutes absence of TCP activity flash=/dev/`ls -l /dev/disk/by-label| grep UNRAID | cut -d"/" -f3 | cut -c 1-3` # automatic id of flash drive check_hour() { echo $(date +%H) } check_HDD_activity() { if [ $checkHDDs = $yes ] then # probe the flash drive at your peril HDDs=$((for d in $(ls /dev/[hs]d? | grep -v "$flash"); do hdparm -C $d | grep active ; done) | wc -l) else HDDs=0 fi echo $HDDs } check_TCP_activity() { if [ "$checkTCP" = $yes ] then TCP=$(bwm-ng -o csv -c 1 -d 0 -T avg | grep eth0 | cut -d";" -f5) else TCP="$noTCP" fi echo "$TCP" } check_IP_status() { mp_online=$no # initialize to "no" until we learn otherwise # ping each of the media servers to determine if online for i in "$pingIPs" do # ping the media server; if it answers, it is online out=`ping -q -c 1 $i 2>/dev/null` rec_count=`echo "$out" | grep received | cut -d " " -f4` if [ "$rec_count" -eq 1 ] then mp_online=$yes # if one is online, we do not need to ping # any others, break out of the "for" loop. break; fi done echo $mp_online } pre_sleep_activity() { echo DONE } post_sleep_activity() { # Force NIC to use gigabit networking if [ "$forceGb" = $yes ] then ethtool -s eth0 speed 1000 fi # Force a DHCP renewal (shouldn't be used for static-ip boxes) if [ "$doDhcpRenewal" = $yes ] then /sbin/dhcpcd -n fi echo DONE } # main intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks while [ 1 ] do # do not countdown during certain hours hour=`check_hour` hourMatch=$(echo "$noCountdownHours" | grep "$hour" | wc -l) if [ $hourMatch -eq 0 ] then # count number of HDDs that are not parked HDDact=`check_HDD_activity` if [ "$HDDact" -eq 0 ] then # tick-tock for time since last spindown if [ $intrnlCountdown -gt 0 ] then intrnlCountdown=$[$intrnlCountdown-1] fi else # reset countdown, following HDD activity intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks fi if [ $intrnlCountdown -le 0 ] then # check for persistent external activity TCPact=`check_TCP_activity` IPping=`check_IP_status` if [ "$TCPact" = $noTCP -a "$IPping" = $no ] then if [ $extrnlCountdown -le 0 ] then # Do pre-sleep activities pre_sleep_activity sleep 5 # Go to sleep echo 3 > /proc/acpi/sleep # Do post-sleep activities post_sleep_activity sleep 5 intrnlCountdown=$intrnlTimeoutTicks extrnlCountdown=$extrnlTimeoutTicks else # tick-tock for persistent external activity if [ $extrnlCountdown -gt 0 ] then extrnlCountdown=$[$extrnlCountdown-1] fi fi else # reset countdown, following external activity extrnlCountdown=$extrnlTimeoutTicks fi fi fi # Wait a tick sleep $ticklengthSecs done go file: #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & installpkg /boot/packages/bwm-ng-0.6-i486-2bj.tgz cd /boot/custom/bin nohup ./s3.sh &
  11. Thanks for posting the part list Rajahal. In the near future i want to replace my testing box running unRAID 4.5.6. I want to build a system with very low power usage in idle state. 25-30 watts would be nice. I hope this is feasible. I do not now if drives are powered down draw any power. If so i think it is difficult with +10 drives to get 30 watts power usages when idle and drives spin down.
  12. What hardware is used? I love the case and drive cages...
×
×
  • Create New...