Tuesday, August 20, 2019

Ceph Cluster sucessful configuration

Ceph Cluster successful configuration:-


Admin Node = ceph4 -------------------------- vip
visudo

Defaults:ceph !requiretty   ---------------------------------------- add this


ceph    ALL=(root)       NOPASSWD:ALL -----------------------add this line
ceph$ssh-keyge

[root@ceph4 ~]# cd /etc/yum.repos.d/
[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# pwd
/etc/yum.repos.d
[root@ceph4 yum.repos.d]# cd /root
[root@ceph4 ~]# ls
anaconda-ks.cfg  Ceph.repo  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  OpenStack.repo  Pictures  Public  rhel_dvd.repo  rhel_updates.repo  Templates  Videos
[root@ceph4 ~]#

125  ceph-deploy new node1
  126  exit
  127  ssh-key-gen
  128  ssh-keygen
  129  ssh-id-copy node3
  130  ssh-copy-id node3
  131  ssh-copy-id node2
  132  ssh-copy-id node1
  133  ssh-copy-id ceph4
  134  ssh node3
  135  ssh node2
  136  ssh node1
  137  pwd
  138  cd ceph-deploy/
  139  ll
  140  ceph-deploy new node1
  141  ll
  142  vi ceph.conf
  143  ceph-deploy install ceph4 node1 node2 node3
  144  ll
  145  ceph-deploy mon create-initial
  146  ll
  147  ssh node2
  148  ssh node3
  149  ceph-deploy osd prepare node2:/var/local/osd0 node3:/var/local/osd1
  150  ceph-deploy osd activate node2:/var/local/osd0 node3:/var/local/osd1
  151  ceph-deploy admin ceph4 node1 node2 node3
  152  sudo chmod +r /etc/ceph/ceph.client.admin.keyring
  153  ceph health
  154  sudo ceph -s
  155  history
[ceph@ceph4 ceph-deploy]$

=============================================

[root@node3 yum.repos.d]# history
    1  pwd
    2  hostnamectl set-hostname node3
    3  exit
    4  yum clean all
    5  pwd
    6  cd /etc/yum.repos.d/
    7  ll
    8  cd yum.repos.d/
    9  ls
   10  mv * ../
   11  yum repolist
   12  yum repolist all
   13  yum update all
   14  yum update -y
   15  vi /etc/hosts
   16  vi /etc/cron.hourly/ntpupdate
   17  systemctl status NetworkManager
   18  systemctl stop NetworkManager
   19  systemctl status NetworkManager
   20  systemctl disable  NetworkManager
   21  systemctl status NetworkManager
   22  systemctl status firewalld
   23  systemctl stop firewalld
   24  systemctl disable  firewalld
   25  systemctl status firewalld
   26   getenforce
   27  setenforce 0
   28   getenforce
   29  yum install ntp* -y
   30  sestatus
   31  visudo
   32  history
=======================================node 2================

[root@node2 yum.repos.d]# history
    1  clear
    2  yum clean all
    3  yum repolist
    4  yum repolist all
    5  pwd
    6  ll
    7  cd /etc/yum.repos.d/
    8  ll
    9  cd yum.repos.d/
   10  ls
   11  pwd
   12  mv * ../
   13  ll
   14  pwd
   15  cd ..
   16  ll
   17  yum clean all
   18  yum repolist
   19  yum repolist all
   20  yum update -y
   21  vi /etc/hosts
   22  pwd
   23  vi /etc/cron.hourly/ntpupdate
   24  systemctl status NetworkManager
   25* systemctl stop NetworkManag
   26  systemctl status NetworkManager
   27  systemctl disable  NetworkManager
   28  systemctl status NetworkManager
   29  systemctl status firewalld
   30  systemctl stop firewalld
   31  systemctl disable  firewalld
   32   getenforce
   33  setenforce 0
   34   getenforce
   35  yum install ntp* -y
   36  sestatus
   37  visudo
   38  history
[root@node2 yum.repos.d]#
=====================================node 1==============================

 45  hostnamectl set-hostname node1
   46  exit
   47  df -h
   48  yum repolist
   49  yum clean all
   50  yum repolist all
   51  yum repolist
   52  pwd
   53  cd /etc/yum.repos.d/
   54  ls
   55  cd yum.repos.d/
   56  ls
   57  pwd
   58  mv * ../
   59  yum clean all
   60  yum repolist all
   61  yum repolist 
   62  yum update -y
   63  vi /etc/hosts
   64  vi /etc/cron.hourly/ntpupdate
   65  systemctl status NetworkManager
   66  systemctl status firewalld
   67   getenforce
   68  setenforce 0
   69   getenforce
   70  yum install ntpd
   71  yum install ntp* -y
   72  pwd
   73  ls
   74  cd /etc/
   75  vi ntp.conf 
   76  sestatus
   77  history
   78  sestatus
   79  visudo
   80  history
[root@node1 etc]# 

=====================================

[root@node1 cron.hourly]# pwd
/etc/cron.hourly
[root@node1 cron.hourly]# cat ntpupdate 
ntpdate 192.168.122.175
[root@node1 cron.hourly]# 

========================[root@node2 cron.hourly]# pwd
/etc/cron.hourly
[root@node2 cron.hourly]# cat ntpupdate 
ntpdate 192.168.122.175
[root@node2 cron.hourly]# 

===================================

[root@ceph4 ~]# cd /etc/yum.repos.d/
[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# pwd
/etc/yum.repos.d
[root@ceph4 yum.repos.d]# cd /root
[root@ceph4 ~]# ls
anaconda-ks.cfg  Ceph.repo  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  OpenStack.repo  Pictures  Public  rhel_dvd.repo  rhel_updates.repo  Templates  Videos
[root@ceph4 ~]# ll
total 12
-rw-------. 1 root root 1663 Jan  8 19:30 anaconda-ks.cfg
drwx------. 9 root root 4096 Dec 22 15:04 Ceph.repo
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Desktop
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Documents
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Downloads
-rw-r--r--. 1 root root 1711 Jan  8 19:37 initial-setup-ks.cfg
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Music
drwx------. 3 root root   25 Dec 22 15:04 OpenStack.repo
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Pictures
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Public
drwx------. 3 root root   16 Dec 22 14:57 rhel_dvd.repo
drwx------. 3 root root   25 Dec 22 15:04 rhel_updates.repo
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Templates
drwxr-xr-x. 2 root root    6 Jan 28 11:17 Videos
[root@ceph4 ~]# pwd
/root
[root@ceph4 ~]# cat Ceph.repo/
cat: Ceph.repo/: Is a directory
[root@ceph4 ~]# cd Ceph.repo/
[root@ceph4 Ceph.repo]# ls
0.80.8  calamari-minions  calamari-server  ceph-deploy  epel  rhel-7-server-optional-rpms  rhel-7-server-rh-common-rpms
[root@ceph4 Ceph.repo]# ll
total 12
drwx------. 3 root root 4096 Dec 22 15:04 0.80.8
drwx------. 3 root root 4096 Dec 22 15:04 calamari-minions
drwx------. 3 root root 4096 Dec 22 15:04 calamari-server
drwx------. 3 root root   87 Dec 22 15:04 ceph-deploy
drwx------. 4 root root   36 Dec 22 15:04 epel
drwx------. 4 root root   36 Dec 22 15:04 rhel-7-server-optional-rpms
drwx------. 4 root root   36 Dec 22 15:04 rhel-7-server-rh-common-rpms
[root@ceph4 Ceph.repo]# cd ../rhel_dvd.repo/
[root@ceph4 rhel_dvd.repo]# ls
dvd
[root@ceph4 rhel_dvd.repo]# cd dvd/
[root@ceph4 dvd]# ls
addons  EFI  EULA  GPL  images  isolinux  LiveOS  media.repo  Packages  release-notes  repodata  RPM-GPG-KEY-redhat-beta  RPM-GPG-KEY-redhat-release  TRANS.TBL
[root@ceph4 dvd]# ll
total 352
drwx------.  4 root root     52 Feb 19  2015 addons
drwx------.  3 root root     17 Feb 19  2015 EFI
-rwxrwxrwx.  1 root root   8266 Apr  4  2014 EULA
-rwxrwxrwx.  1 root root  18092 Mar  6  2012 GPL
drwx------.  3 root root     54 Feb 19  2015 images
drwx------.  2 root root   4096 Feb 19  2015 isolinux
drwx------.  2 root root     41 Feb 19  2015 LiveOS
-rwxrwxrwx.  1 root root    114 Feb 19  2015 media.repo
drwx------.  2 root root 229376 Feb 19  2015 Packages
drwx------. 24 root root   4096 Feb 19  2015 release-notes
drwx------.  2 root root   4096 Feb 19  2015 repodata
-rwxrwxrwx.  1 root root   3375 Feb  2  2015 RPM-GPG-KEY-redhat-beta
-rwxrwxrwx.  1 root root   3211 Feb  2  2015 RPM-GPG-KEY-redhat-release
-rwxrwxrwx.  1 root root   1568 Feb 19  2015 TRANS.TBL
[root@ceph4 dvd]# cd ../../rhel_updates.repo/
You have new mail in /var/spool/mail/root
[root@ceph4 rhel_updates.repo]# ls
RHEL7-Errata
[root@ceph4 rhel_updates.repo]# cd RHEL7-Errata/
[root@ceph4 RHEL7-Errata]# ll
total 8
drwx------. 2 root root 4096 Dec 22 15:04 Packages
drwx------. 2 root root 4096 Dec 22 15:04 repodata
[root@ceph4 RHEL7-Errata]# 

====================================

root@ceph4 RHEL7-Errata]# cd /etc/yum.repos.d/
[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# ll
total 20
-rw-r--r--. 1 root root 775 Jan 14 04:38 ceph.repo
-rw-r--r--. 1 root root 147 Jan 14 04:54 OpenStack.repo
-rw-r--r--. 1 root root 358 Jan 14 05:15 redhat.repo
-rw-r--r--. 1 root root 113 Jan 14 05:03 rhel_dvd.repo
-rw-r--r--. 1 root root 143 Jan 14 05:04 rhel_updates.repo
[root@ceph4 yum.repos.d]# cat ceph.repo
[Ceph]
name=Ceph for RHEL7
baseurl=file:///root/Ceph.repo/0.80.8

enabled=1
gpgcheck=0

[Ceph-deploy]
name=Ceph deploy
baseurl=file:///root/Ceph.repo/ceph-deploy
enabled=1
gpgcheck=0

[Calamari-minions]
name=Calamari Minions
baseurl=file:///root/Ceph.repo/calamari-minions
enabled=1
gpgcheck=0

[Calamari-server]
name=Calamari Server
baseurl=file:///root/Ceph.repo/calamari-server
enabled=1
gpgcheck=0

[rhel7-epel]
name=Extras Packages for RHEL7
baseurl=file:///root/Ceph.repo/epel
enabled=1
gpgcheck=0

[rhel7-optional]
name=Optional Packages for RHEL7
baseurl=file:///root/Ceph.repo/rhel-7-server-optional-rpms
enabled=1
gpgcheck=0

[rh-common]
name=Red Hat Common Packages for RHEL7
baseurl=file:///root/Ceph.repo/rhel-7-server-rh-common-rpms
enabled=1
gpgcheck=0
[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# cat OpenStack.repo
[OpenStack]
name=Red Hat Enterprise Linux OpenStack Platform 6.0 for RHEL 7
baseurl=file:///root/OpenStack.repo/RH7-RHOS-6.0/
enabled=1
gpgcheck=0
[root@ceph4 yum.repos.d]# cat redhat.repo
#
# Certificate-Based Repositories
# Managed by (rhsm) subscription-manager
#
# *** This file is auto-generated.  Changes made here will be over-written. ***
# *** Use "subscription-manager repo-override --help" if you wish to make changes. ***
#
# If this file is empty and this system is subscribed consider
# a "yum repolist" to refresh available repos
#[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# cat rhel_dvd.repo
[rhel_dvd]
gpgcheck = 0
enabled = 1
baseurl = file:///root/rhel_dvd.repo/dvd
name = Remote classroom copy of dvd
[root@ceph4 yum.repos.d]# ls
ceph.repo  OpenStack.repo  redhat.repo  rhel_dvd.repo  rhel_updates.repo
[root@ceph4 yum.repos.d]# cat rhel_updates.repo
[rhel_updates]
gpgcheck = 0
enabled = 1
baseurl = file:///root/rhel_updates.repo/RHEL7-Errata
name = Errata for RHEL 7 needed for RHEL OSP 6.0
[root@ceph4 yum.repos.d]#

No comments:

Post a Comment