User Tools

Site Tools


services:longrunningcluster

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
services:longrunningcluster [2022/08/26 21:39]
djgalloway
services:longrunningcluster [2023/02/19 15:18] (current)
akraitman [Summary]
Line 13: Line 13:
   * [[production:​signer.front.sepia.ceph.com]]   * [[production:​signer.front.sepia.ceph.com]]
  
 +
 +Cluster dashboard
 +
 +https://​reesi004.front.sepia.ceph.com:​8443/​
 ===== Topology ===== ===== Topology =====
 <​code>​ <​code>​
Line 66: Line 70:
 podman logs -f $(podman ps | grep "​\-mon"​ | awk '{ print $1 }') podman logs -f $(podman ps | grep "​\-mon"​ | awk '{ print $1 }')
 </​code>​ </​code>​
 +
 +=== LRC iscsi volume for the RHEV cluster===
 +
 +On Nov 2022 we started seeing data corruption on our main gluster volume where we have all our critical VM's so we connected an iscsi volume from the LRC, those are the steps to connect an iscsi volume to a rev cluster according to this doc
 +https://​docs.google.com/​document/​d/​1GYwv5y4T5vy-1oeAzw-zoLgQs0I3y5v_xD1wXscAA7M/​edit
 +
 +First, make sure you configured the iscsi clients(the RHEV hypervisor hosts in our case) according to this doc and copy the iscsi initiator located under(we will need it for step 11 when we create the hosts on the lrc) /​etc/​iscsi/​initiatorname.iscsi on each host 
 +https://​access.redhat.com/​documentation/​en-us/​red_hat_ceph_storage/​5/​html-single/​block_device_guide/​index#​configuring-the-iscsi-initiator-for-rhel_block
 +also configure CHAP on each rhev host by adding this in /​etc/​iscsi/​iscsid.conf
 + 
 +node.session.auth.authmethod = CHAP
 +node.session.auth.username = <​username>​
 +node.session.auth.password = <​password>​
 +
 +
 +ssh to one of the reesi hosts(I configured it from reesi005) and follow the next steps to configure iscsi and create a volume on the LRC
 +
 +1. Create an rbd pool
 +<​code>​
 +ceph osd pool create <​poolname>​
 +ceph osd pool application enable <​poolname>​ rbd
 +</​code>​
 +
 +2. Deploy iscsi on at least four hosts - create a yaml file
 +<​code>​
 +service_type:​ iscsi
 +service_id: iscsi
 +placement:
 +  hosts:
 +    - reesi002
 +    - reesi003
 +    - reesi004
 +    - reesi005
 +spec:
 +  pool: lrc
 +  api_secure: false
 +</​code>​
 +
 +3. Connect to the iscsi container on one of the deployed hosts, to find the exact container id run "​podman ps" and look for the iscsi container with the word "​tcmu"​ in the end.
 +<​code>​
 +Podman exec -it <iscsi container id> /bin/bash
 +</​code>​
 +
 +for example:
 +<​code>​
 +podman exec -it ceph-28f7427e-5558-4ffd-ae1a-51ec3042759a-iscsi-iscsi-reesi005-luegfv-tcmu /bin/bash
 +</​code>​
 +
 +4. Enter the gwcli
 +<​code>​
 +gwcli
 +</​code>​
 +
 +5. Go to the iscsi-targets
 +<​code>​
 +cd iscsi-targets/​
 +</​code>​
 +
 +6. Go to the storage iqn
 +<​code>​
 +cd iqn.2003-01.com.redhat.iscsi-gw:​lrc-iscsi1/​
 +</​code>​
 +
 +7. Go to gateways
 +<​code>​
 +cd gateways
 +</​code>​
 +
 +8. Create all four gateway'​s as you specified in the yaml file on step 2
 +<​code>​
 +create reesi002.front.sepia.ceph.com 172.21.2.202
 +create reesi003.front.sepia.ceph.com 172.21.2.203
 +create reesi004.front.sepia.ceph.com 172.21.2.204
 +create reesi005.front.sepia.ceph.com 172.21.2.205
 +</​code>​
 +
 +9. Go to disks
 +<​code>​
 +cd ..
 +cd disks/
 +</​code>​
 +
 +9. Create RBD image with the name "​vol1"​ in the "​lrc"​ pool
 +<​code>​
 +create pool=lrc image=vol1 size=20T image=rbdimage size=50g
 +</​code>​
 +
 +10.  Go to hosts
 +<​code>​
 +cd ..
 +cd hosts/
 +</​code>​
 +
 +11. Create the hosts(RHEV hosts, if you have four rhev hosts you will need to run this four times one for each iqn )
 +<​code>​
 +create client_iqn=<​iqn from the rhev host> ​
 +</​code>​
 +
 +12. cd to each iqn you created in step 11 and enable chap
 +<​code>​
 +auth username=<​username>​ password=<​password>​
 +</​code>​
 +
 +13. cd to each iqn you added in step 11 and add the RBD image created in step 9
 +<​code>​
 +disk add <​pool_name>/<​RBD image name>
 +</​code>​
 +
 +14. Set discovery auth to CHAP on the iscsi-targets
 +<​code>​
 +cd ../../
 +discovery_auth username=<​username>​ password=<​password>​
 +</​code>​
 +
 +The final step is to mount this RBD_image/​lun in RHEV-M Dashboard
 +
 +go to https://​mgr01.front.sepia.ceph.com/​ovirt-engine/​webadmin/?​locale=en_US#​storage
 +Create a new Storage domain and choose the iscsi storage type and fill out the discovery targets section with an IP on one of the iscsi gateway ip's you configured in the yaml in step 2 and fill out the auth with the CHAP username & password you configured in step 14
 +
 +
services/longrunningcluster.1661549977.txt.gz ยท Last modified: 2022/08/26 21:39 by djgalloway