jwolfe
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by jwolfe
-
-
I've had an unraid build for a few years and it's grown quite a lot. It started out small with left over hardware but has grown out of control. I'm at 98 TB usable now and running out of space pretty quickly. Here's my current specs:
OS Current: 6.8.2
CPU: Intel i5-3470
Motherboard: Gigabyte GA-Z77MX-D3H
RAM: 32GB G.SKILL Ares Series 32GB (4 x 8GB) DDR3 1333
Case: Antec Twelve Hundred V3 Black Steel
Cage: Cooler Master 4-in-3 Device Module Cage
Power Supply: CORSAIR HX Series HX750 750W
NIC: Intel EXPI9301CTBLKDrive Controllers: 2x SUPERMICRO AOC-SASLP-MV8 PCI-Ex4
Cables: 4x 3ware CBL-SFF8087OCF-10MDrive Controller: LSI Logic SAS9200-8E 8PORT (To DAS)
DAS: Lenovo 70F10000UX THINKSERVER SA120Cache:
3x Samsung SSD 850 EVO 1TB
Drives:
12x WD Red 3TB NAS
7x WD Red 6TB NAS
6x Seagate 4TB Desktop Drives
2x WD Gold 4TB EnterpriseUSB for Unraid:
Cruzer 8 GBUnassigned Drives:
1x Intel® SSD DC S3700 400GB (passthrough / QVM)
1x 2TB WD My Passport
I have too many random drives, but looking to consolidate the drives into bigger drives. I'm already looking to get larger drives to replace one drive that is going bad in the array.I use the unassigned 2TB WD USB drive to sync my most critical items to. It's sort of my bug out drive if anything happens. I've got pretty much my whole array sync'ed to the cloud as a backup.
- 1
- 1
My Out Of Control Build
in Unraid Compulsive Design
Posted
Sure. Here are the two scripts I use to take drive temp and also to see if the disk is spun up.
You're going to need curl for this to work. This is for drive temp. Replace DBURL with your influx IP address. And replace DISK_ARRAY and DESCRIPTION with your drives.
#!/usr/bin/bash DBURL=http://192.168.X.X:8086 DBNAME=telegraf DEVICE="UNRAID" CURDATE=`date +%s` # Todo: Need to parse /var/local/emhttp/disks.ini in the future DISK_ARRAY=( sdl sdj sdz sdy sdu sdx sdv sdw sdt sdad sdaa sdab sdac sdag sds sdae sdc sdg sdk sdf sdaf sdn sde sdm sdh sdi sdd sdp sdq sdr ) DESCRIPTION=( Parity1 Parity2 Disk1 Disk2 Disk3 Disk4 Disk5 Disk6 Disk7 Disk8 Disk9 Disk10 Disk11 Disk12 Disk13 Disk14 Disk15 Disk16 Disk17 Disk18 Disk19 Disk20 Disk21 Disk22 Disk23 Disk24 Disk25 Cache1 Cache2 Cache3 ) # Added -n standby to the check so smartctl is not spinning up my drives # i=0 for DISK in "${DISK_ARRAY[@]}" do smartctl -n standby -A /dev/$DISK | grep "Temperature_Cel" | awk '{print $10}' | while read TEMP do echo ${DISK} : ${TEMP} curl -is -XPOST "$DBURL/write?db=$DBNAME" --data-binary "DiskTempStats,DEVICE=${DEVICE},DISK=${DESCRIPTION[$i]} Temperature=${TEMP} ${CURDATE}000000000" >/dev/null 2>&1 done ((i++)) done
This is for drive spinup:
#!/usr/bin/bash DBURL=http://192.168.X.XX:8086 DBNAME=telegraf DEVICE="UNRAID" CURDATE=`date +%s` # Todo: Need to parse /var/local/emhttp/disks.ini DISK_ARRAY=( sdl sdj sdz sdy sdu sdx sdv sdw sdt sdad sdaa sdab sdac sdag sds sdae sdc sdg sdk sdf sdaf sdn sde sdm sdh sdi sdd sdp sdq sdr ) DESCRIPTION=( Parity1 Parity2 Disk1 Disk2 Disk3 Disk4 Disk5 Disk6 Disk7 Disk8 Disk9 Disk10 Disk11 Disk12 Disk13 Disk14 Disk15 Disk16 Disk17 Disk18 Disk19 Disk20 Disk21 Disk22 Disk23 Disk24 Disk25 Cache1 Cache2 Cache3 ) i=0 for DISK in "${DISK_ARRAY[@]}" do hdparm -C /dev/$DISK | grep 'state' | awk '{print $4}' | while read STATUS do echo ${DISK} : ${STATUS} : ${DESCRIPTION[$i]} if [ ${STATUS} = "standby" ] then curl -is -XPOST "$DBURL/write?db=$DBNAME" --data-binary "diskStatus,DEVICE=${DEVICE},DISK=${DESCRIPTION[$i]} Active=0 ${CURDATE}000000000" >/dev/null 2>&1 else curl -is -XPOST "$DBURL/write?db=$DBNAME" --data-binary "diskStatus,DEVICE=${DEVICE},DISK=${DESCRIPTION[$i]} Active=1 ${CURDATE}000000000" >/dev/null 2>&1 fi done ((i++)) done