I comandi sono funzionanti, non li trovi in questa puntata tutti perchè sono le prime fasi concitate di test.
ceph00 nodo principale, ceph01 host
Prerequisiti su tutti i server:
sudo apt install openssh-server
IP ognuno il suo: ceph00=192.168.1.50 ceph01=192.168.1.51 ecc ecc
sudo apt install lvm2
timedatectl status Sincronizzato
::: Preparazione nodo principale :::
ceph00: sudo apt install -y ssh
ceph00: sudo passwd root
ceph00: su –
root@ceph00: apt update && apt upgrade -y
root@ceph00: timedatectl set-timezone Europe/Rome
root@ceph00: ufw status
root@ceph00: ufw disable
root@ceph00: nano /etc/ssh/sshd_config
***:PermitRootLogin prohibit-password > PermitRootLogin yes***
root@ceph00: systemctl restart ssh
root@ceph00: exit
root@ceph00: lsblk
ATTENZIONE A QUESTI COMANDI, __DISTRUGGONO__
root@ceph00: sgdisk –zap-all /dev/sdb
root@ceph00: sgdisk –zap-all /dev/sdc
root@ceph00: sgdisk –zap-all /dev/sdd
root@ceph00: wipefs –all /dev/sdc
root@ceph00: wipefs –all /dev/sdd
root@ceph01: sgdisk –zap-all /dev/sdb
root@ceph01: sgdisk –zap-all /dev/sdc
root@ceph01: sgdisk –zap-all /dev/sdd
root@ceph01: wipefs –all /dev/sdc
root@ceph01: wipefs –all /dev/sdd
In questo video non trovi questi comandi ma sono quelli che fanno funzionare tutto:
root@ceph00: curl -fsSL https://get.docker.com -o get-docker.sh
root@ceph00: sudo sh get-docker.sh
root@ceph01: curl -fsSL https://get.docker.com -o get-docker.sh
root@ceph01: sudo sh get-docker.sh
root@ceph00: apt-get install -y cephadm
root@ceph01: apt-get install -y cephadm
Creazione autorizzazioni di accesso SSH
root@ceph00: ssh-keygen
root@ceph00: ssh-copy-id root@192.168.1.51 (ceph01 o host o vari host)
root@ceph00: cephadm bootstrap –mon-ip 192.168.1.50 (localhost o ceph00)
root@ceph00: ceph -s (verifica che tutti sia funzionante)
root@ceph00: ssh-copy-id -f -i /etc/ceph/ceph.pub root@192.168.1.51 (ceph01 o host o vari host)
root@ceph00: ceph orch host add ceph00 192.168.1.50 –labels _admin (abilita i servizi admin sul nodo principale)
root@ceph00: ceph orc host ls
root@ceph00: ceph orch host add ceph02 192.168.1.51 (ceph01 o host o vari host)
root@ceph00: ceph orch apply osd –all-available-devices
root@ceph00: ceph osd tree
cephadm bootstrap –mon-ip 192.168.1.150 va fatto solo sull’admin
e ti genera qualcosa di simile
URL: https://ceph03:8443/
User: admin
Password: 0vebp3s21r
Altri comandi utili usati a caso se sei alle prime armi sono utili
: ceph osd tree
: ceph -w
: ceph health detail
: sudo cephadm shell — ceph -s
: timedatectl set-timezone Europe/Rome
: date
: ceph orch device zap ceph02 /dev/sdd –force
: ufw disable
: ceph osd pool set .mgr size 2
set pool 1 size to 2
Commenti recenti