Spécification node-seaweed-f05
- IP : 10.100.0.173
- vCPU : 2
- RAM : 2Go
- Disque : 8Go (Système)
- OS : RockyLinux
Installation des prérequis
[root@node-seaweed-f05 ~]# dnf update -y [root@node-seaweed-f05 ~]# dnf install git make wget tar dnf-utils -y
Installation paquet GO
[root@node-seaweed-f05 ~]# wget -c https://go.dev/dl/go1.22.0.linux-amd64.tar.gz [root@node-seaweed-f05 ~]# tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz [root@node-seaweed-f05 ~]# echo 'export GOROOT=/usr/local/go' | tee -a /etc/profile export GOROOT=/usr/local/go [root@node-seaweed-f05 ~]# echo 'export PATH=$PATH:/usr/local/go/bin' | tee -a /etc/profile export PATH=$PATH:/usr/local/go/bin [root@node-seaweed-f05 ~]# source /etc/profile [root@node-seaweed-f05 ~]# go version go version go1.21.6 linux/amd64
Installation paquet seaweedfs
[root@node-seaweed-f05 ~]# git clone https://github.com/chrislusf/seaweedfs.git [root@node-seaweed-f05 ~]# cd ~/seaweedfs [root@node-seaweed-f05 seaweedfs]# make install [root@node-seaweed-f05 seaweedfs]# cp ~/go/bin/weed /usr/local/bin/ [root@node-seaweed-f05 seaweedfs]# weed version version 30GB 3.62 linux amd64
Ajout nouvel host « filer » f05 au DNS Infrastructure
[root@node-seaweed-f05 ~]# nslookup node-seaweed-f05
Régles Firewall
[root@node-seaweed-f05 ~]#firewall-cmd --remove-service={cockpit,dhcpv6-client} --permanent [root@node-seaweed-f05 ~]#firewall-cmd --add-port={8888,18888,8889,18889}/tcp --permanent [root@node-seaweed-f05 ~]#firewall-cmd --reload
Création des services node-seaweed-f01
[root@node-seaweed-f05 seaweedfs]# scp root@node-seaweed-f01:/etc/systemd/system/seaweedfilers.service /etc/systemd/system/seaweedfilers.service
Démarrage du filers
[root@node-seaweed-f05 ~]# systemctl daemon-reload [root@node-seaweed-f05 ~]# systemctl enable seaweedfilers [root@node-seaweed-f05 ~]# systemctl start seaweedfilers [root@node-seaweed-f05 ~]# systemctl status seaweedfilers
Ajout le node « filer » node-seaweed-f05 sur le Client Linux
[root@node-seaweed-c01 seaweedVolumeW]# sed -i 's/,node-seaweed-f04\:8888/,node-seaweed-f04\:8888,node-seaweed-f05\:8888/g' /etc/systemd/system/seaweedVolumeW.service [root@node-seaweed-c01 seaweedVolumeW]# cat /etc/systemd/system/seaweedVolumeW.service
Redémarrage du service « seaweed » Client
[root@node-seaweed-c01 ~]# systemctl daemon-reload [root@node-seaweed-c01 ~]# systemctl enable seaweedVolumeW.service [root@node-seaweed-c01 ~]# systemctl start seaweedVolumeW.service [root@node-seaweed-c01 ~]# systemctl status seaweedVolumeW.service
Data sur les nodes « volumes » avec le fichier « Debian
[root@node-seaweed-c01 seaweedVolumeW]# wget https://repo.almalinux.org/almalinux/8.9/isos/x86_64/AlmaLinux-8.9-x86_64-minimal.iso
Views: 0