fancontrol: Info on fancontrol.
This commit is contained in:
parent
4bc2bbcb6b
commit
b863712014
|
@ -8,6 +8,8 @@ git clone 192.168.1.129:privat/config
|
||||||
cp config/ubuntu-20.04/home/.* ~/
|
cp config/ubuntu-20.04/home/.* ~/
|
||||||
sudo cp config/ubuntu-20.04/home/.* /root
|
sudo cp config/ubuntu-20.04/home/.* /root
|
||||||
bash config/ubuntu-20.04/packages
|
bash config/ubuntu-20.04/packages
|
||||||
|
sudo cp -a ubuntu-20.04/etc/ /
|
||||||
|
|
||||||
|
|
||||||
add_swap() {
|
add_swap() {
|
||||||
truncate -s 16T /data/swapfile
|
truncate -s 16T /data/swapfile
|
||||||
|
@ -17,16 +19,20 @@ add_swap() {
|
||||||
mkswap -L swap1 /dev/sdc
|
mkswap -L swap1 /dev/sdc
|
||||||
mkswap -L swap2 /dev/sdd
|
mkswap -L swap2 /dev/sdd
|
||||||
mkswap -L swap3 /dev/sde
|
mkswap -L swap3 /dev/sde
|
||||||
|
mkswap -L swap4 /dev/sdc1
|
||||||
cat >> /etc/fstab <<_EOF
|
cat >> /etc/fstab <<_EOF
|
||||||
LABEL=swap1 none swap sw,pri=4 0 0
|
LABEL=swap1 none swap sw,pri=4 0 0
|
||||||
LABEL=swap2 none swap sw,pri=4 0 0
|
LABEL=swap2 none swap sw,pri=4 0 0
|
||||||
LABEL=swap3 none swap sw,pri=4 0 0
|
LABEL=swap3 none swap sw,pri=4 0 0
|
||||||
|
LABEL=swap4 none swap sw,pri=4 0 0
|
||||||
_EOF
|
_EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LVM_extend_to_full_disk() {
|
LVM_extend_to_full_disk() {
|
||||||
lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv
|
while lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv; do
|
||||||
|
true
|
||||||
|
done
|
||||||
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
|
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
4
r815/boot-timing.txt
Normal file
4
r815/boot-timing.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
time ipmipower on = 47s, 46s
|
||||||
|
time w4it-for-port-open drac 443 = 2m, 1m45s, 1m46s
|
||||||
|
time wssh r true = 3m, 2m40s, 2m11s
|
||||||
|
|
69
r815/fancontrol
Normal file
69
r815/fancontrol
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
Enable manual/static fan control:
|
||||||
|
ipmitool -I lanplus -H drac -U root -P calvin raw 0x30 0x30 0x01 0x00
|
||||||
|
Disable manual/static fan control:
|
||||||
|
ipmitool -I lanplus -H drac -U root -P calvin raw 0x30 0x30 0x01 0x01
|
||||||
|
# Power to 96 (1..100)
|
||||||
|
ipmitool -I lanplus -H drac -U root -P calvin raw 0x30 0x30 0x02 0xff 96
|
||||||
|
ipmitool -I lanplus -H drac -U root -P calvin sdr list full
|
||||||
|
|
||||||
|
|
||||||
|
CPU 00-15: k10temp-pci-00c3
|
||||||
|
CPU 00-15: k10temp-pci-00cb
|
||||||
|
CPU 16-31: k10temp-pci-00f3
|
||||||
|
CPU 16-31: k10temp-pci-00fb
|
||||||
|
CPU 32-47: k10temp-pci-00d3
|
||||||
|
CPU 32-47: k10temp-pci-00db
|
||||||
|
CPU 48-63: k10temp-pci-00e3
|
||||||
|
CPU 48-63: k10temp-pci-00eb
|
||||||
|
|
||||||
|
k10temp-pci-00f3, 41
|
||||||
|
k10temp-pci-00fb, 41
|
||||||
|
k10temp-pci-00c3, 43.125
|
||||||
|
k10temp-pci-00cb, 43.375
|
||||||
|
k10temp-pci-00e3, 46.25
|
||||||
|
k10temp-pci-00eb, 46.125
|
||||||
|
k10temp-pci-00d3, 48.25
|
||||||
|
k10temp-pci-00db, 48.125
|
||||||
|
|
||||||
|
B k10temp-pci-00f3, 38
|
||||||
|
k10temp-pci-00fb, 38.25
|
||||||
|
A k10temp-pci-00c3, 39.5
|
||||||
|
k10temp-pci-00cb, 39.625
|
||||||
|
D k10temp-pci-00e3, 39.875
|
||||||
|
k10temp-pci-00eb, 39.75
|
||||||
|
C k10temp-pci-00d3, 41.875
|
||||||
|
k10temp-pci-00db, 41.75
|
||||||
|
|
||||||
|
|
||||||
|
forever sensors -j | jq -r '.|with_entries(select(.key | test("temp")))|[.[]["temp1"]["temp1_input"]]|@tsv'
|
||||||
|
forever sensors -j |
|
||||||
|
jq -r '.|with_entries(select(.key | test("temp")))|keys[] as $k | "\($k), \(.[$k] | .["temp1"]["temp1_input"])"'
|
||||||
|
|
||||||
|
# if temp < 60: turn fan down (5)
|
||||||
|
# else fan = (temp-60)*(100/(67-60)) = 60=>5 67=>100
|
||||||
|
# 20 = crash efter 3 linjer
|
||||||
|
# 25 = OK
|
||||||
|
# 23 = OK efter 10 linjer + start af burncpu
|
||||||
|
# 22 = crash efter 10 linjer + start af burncpu
|
||||||
|
# 21 = crash efter 10 linjer + start af burncpu
|
||||||
|
|
||||||
|
fanspeed() {
|
||||||
|
sensors -j |
|
||||||
|
jq '[.[]["temp1"]["temp1_input"]] |
|
||||||
|
(max-60)*(100/(67-60)) |
|
||||||
|
if . < 24 then 24 else if . > 100 then 100 else.|floor end end';
|
||||||
|
}
|
||||||
|
|
||||||
|
autofan() {
|
||||||
|
setspeed() {
|
||||||
|
ipmitool -I lanplus -H drac -U root -P calvin raw 0x30 0x30 0x02 0xff $@
|
||||||
|
}
|
||||||
|
while true; do
|
||||||
|
fanspeed=`fanspeed`
|
||||||
|
printf "$fanspeed "$(setspeed $fanspeed)
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
autofan
|
||||||
|
|
||||||
|
forever sensors -j | fmt
|
Loading…
Reference in a new issue