## boot order setup
# echo “HOSTNAME” > /etc/hostname
# grub2-mkconfig -o /boot/grub2/grub.cfg; yum install yum-utils -y; package-cleanup –oldkernels –count=2; reboot;
#
## pre-config for ntp`
yum install ntp ntpdate -y;
systemctl start ntpd
systemctl enable ntpd
ntpdate -u -s 0.centos.pool.ntp.org 1.centos.pool.ntp.org 2.centos.pool.ntp.org
systemctl restart ntpd
#systemctl status ntpd
timedatectl
hwclock -w
#######################################################################################
## software install
yum update
yum install podman -y;
podman info
yum install -y python3
curl –silent –remote-name –location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
chmod +x cephadm
mkdir -p /etc/ceph
./cephadm add-repo –release octopus;
./cephadm install cephadm ceph-common;
blu@test1:~$ vi centos7_podman_ceph_cluster_init_setup.sh
blu@test1:~$ cat centos7_podman_ceph_cluster_init_setup.sh
## boot order setup
# echo “HOSTNAME” > /etc/hostname
# grub2-mkconfig -o /boot/grub2/grub.cfg; yum install yum-utils -y; package-cleanup –oldkernels –count=2; reboot;
#
## pre-config for ntp`
yum install ntp ntpdate -y;
systemctl start ntpd
systemctl enable ntpd
ntpdate -u -s 0.centos.pool.ntp.org 1.centos.pool.ntp.org 2.centos.pool.ntp.org
systemctl restart ntpd
#systemctl status ntpd
timedatectl
hwclock -w
#######################################################################################
## software install
yum update
yum install podman -y;
podman info
yum install -y python3
curl –silent –remote-name –location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
chmod +x cephadm
mkdir -p /etc/ceph
./cephadm add-repo –release octopus;
./cephadm install cephadm ceph-common;
########################################################################################
## cluster setup
./cephadm bootstrap –mon-ip <1st_mon_node_ip>
ssh-copy-id -f -i /etc/ceph/ceph.pub root@<2nd_hostname>
ssh-copy-id -f -i /etc/ceph/ceph.pub root@<3rd_hostname>
ssh-copy-id -f -i /etc/ceph/ceph.pub root@<..n_hostname>
ceph orch host ls
ceph orch host add <2nd_hostname>
ceph orch host add <3rd_hostname>
ceph orch host add <..n_hostname>
ceph orch host ls
ceph orch ls
ceph orch host add <2nd_hostname> <ip of 2nd_node> mon
ceph orch host add <3rd_hostname> <ip of 3rd_node> mon
ceph orch host add <1st_hostname> <ip of 1st_node> mon
ceph orch host ls
ceph orch ls
ceph orch device ls
ceph orch apply osd –all-available-devices
ceph orch device ls
ceph -s
scp /etc/ceph/ceph* root@<2nd_hostname>:/etc/ceph/
scp /etc/ceph/ceph* root@<3rd_hostname>:/etc/ceph/
scp /etc/ceph/ceph* root@<..n_hostname>:/etc/ceph/