BT种子下载
sudo apt install transmission
transmission-gtk
nvidia驱动安装
https://www.myfreax.com/how-to-nvidia-drivers-on-ubuntu-20-04/
挂盘
#!/bin/bash
yum install -y parted
sleep 1s
yum install -y vim
sleep 1s
#####################################################################
myFile=/mnt/test1
if [ ! -x "$myFile" ];then
touch "$myFile"
fi
i=0
b=1
for disk in `fdisk -l | grep "/dev/sd*" | awk '{if($2~/sd/ && $2!="/dev/sda:" && $2!="/dev/sdb:") print substr($2,0,9)}'`
do
disk=${disk%:*}
parted $disk << EXIT
mklabel gpt
yes
mkpart primary xfs 0 -1
ignore
quit
EXIT
mkfs -t xfs -f $disk$b
echo "/n/n****************$disk_was Fdisked!Waithing For 10 second****/n/n"
sleep 1s
uuid=`blkid $disk$b | awk '{print $2}'|awk -F"\"" '{print $2}'`
if [ ! -d "myPath" ];then
mkdir /mnt/data$i
fi
cat << EXIT > /mnt/test1
UUID=$uuid /mnt/data${i} xfs defaults 0 0
EXIT
cat /mnt/test1 >> /etc/fstab
i=$(($i + 1))
done
seaweedfs
chmod +x /etc/rc.d/rc.local
添加:
/opt/seaweed/master.sh
wget https://github.com/seaweedfs/seaweedfs/releases/download/3.55/linux_amd64.tar.gz
master.sh
nohup ./weed master -ip=192.168.76.29 -mdir=/root/seaweedfs/master -defaultReplication=000 > /root/seaweedfs/master/master.log 2>&1&
nodes.sh
myFile=/mnt/test1
i=0
b=1
for disk in `fdisk -l | grep "/dev/sd*" | awk '{if($2~/sd/ && $2!="/dev/sda:" && $2!="/dev/sdb:") print substr($2,0,9)}'`
do
disk=${disk%:*}
nohup ./weed volume -port=$(($i + 8080)) -dir=/mnt/data$i -max=1000 -fileSizeLimitMB=1000 -mserver=192.168.76.29:9333 -dataCenter=dc1 -rack=rack1 >/root/seaweedfs/master/volume$i.log 2>&1&
echo 'start disk: $disk'
i=$(($i + 1))
done
filer.sh
nohup ./weed filer -port=8888 -master=192.168.76.29:9333 -ip=192.168.76.29 >/root/seaweedfs/filer/filer.log 2>&1&
安装显卡驱动
https://blog.51cto.com/u_4029519/5909904
sudo apt install build-essential
mount.sh
./weed mount -filer=10.20.51.39:8888,10.20.51.40:8888,10.20.51.41:8888 -dir=/home/ipfs/data > /opt/seaweed/mount.log 2>&1&
RTX3090
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/535.86.05/NVIDIA-Linux-x86_64-535.86.05.run
sudo apt-get update #更新软件列表
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install make
p
https://github.com/Chia-Network/bladebit/releases/download/v3.0.0-rc1/bladebit-cuda-v3.0.0-rc1-ubuntu-x86-64.tar.gz
xch12dx7mctn6e5cytkq5t02ca4ya9gwgs3g7pg4pmaw3hgy65n7q83qhwqp05
xch13mat6anl86p4m9ftvcx3zscmgvdsq2c5uqqn2r0gk820pyre5u0shuk9ws
2023-08-04T11:44:18.809 harvester chia.harvester.harvester: ERROR <class 'RuntimeError'> Failed to preallocate memory for contexts with result 2 while configuring decompressor.
config.yaml
harvester:
parallel_decompressor_count: 2
decompressor_thread_count: 2
use_gpu_harvesting: false
free -h
total used free shared buff/cache available
Mem: 1.0Ti 4.8Gi 918Gi 36Mi 84Gi 998Gi