apt update -y && apt-get full-upgrade -y
apt install cephadm
cephadm add-repo --release quincy
cephadm install
cephadm install ceph-common
if you want to create on lab/1 VM you can add --single-host-defaults
cephadm bootstrap --mon-ip 172.90.0.30 --initial-dashboard-user "ceph-admin" --initial-dashboard-password "ADMIN_123" --dashboard-password-noupdate --cluster-network=172.91.0.0/24 --allow-fqdn-hostname
ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph1
ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph2
ceph orch host add ceph1.kdinesh.in 172.90.0.31
ceph orch host add ceph2.kdinesh.in 172.90.0.32
ceph orch apply mon --placement="ceph0.kdinesh.in,ceph1.kdinesh.in,ceph2.kdinesh.in"
ceph orch apply mgr --placement="ceph0.kdinesh.in,ceph1.kdinesh.in,ceph2.kdinesh.in"
ceph orch host label add ceph0.kdinesh.in osd-node
ceph orch host label add ceph1.kdinesh.in osd-node
ceph orch host label add ceph2.kdinesh.in osd-node
ceph orch host label add ceph0.kdinesh.in mon
ceph orch host label add ceph1.kdinesh.in mon
ceph orch host label add ceph2.kdinesh.in mon
ceph orch host label add ceph0.kdinesh.in mgr
ceph orch host label add ceph1.kdinesh.in mgr
ceph orch host label add ceph2.kdinesh.in mgr
ceph orch apply osd --all-available-devices
ceph osd pool create iscsi
rbd pool init iscsi
apt install targetcli-fb ceph-iscsi python3-rtslib-fb tcmu-runner -y
nano /etc/ceph/iscsi-gateway.cfg
---
[config]
cluster_name = ceph
gateway_keyring = ceph.client.admin.keyring
pool = iscsi
api_secure = false
trusted_ip_list = 0.0.0.0
---
systemctl daemon-reload
systemctl start rbd-target-gw
systemctl enable rbd-target-gw
systemctl status rbd-target-gw
ceph osd blacklist ls
ceph osd blacklist clear
systemctl enable rbd-target-api
systemctl start rbd-target-api
systemctl status rbd-target-api
ceph dashboard set-iscsi-api-ssl-verification false
ceph dashboard iscsi-gateway-list
nano gw1
---
http://admin:admin@ceph0.kdinesh.in:5000
---
nano gw2
---
http://admin:admin@ceph1.kdinesh.in:5000
---
nano gw3
---
http://admin:admin@ceph2.kdinesh.in:5000
---
ceph dashboard iscsi-gateway-add -i gw1
ceph dashboard iscsi-gateway-add -i gw2
ceph dashboard iscsi-gateway-add -i gw3
- https://www.reddit.com/r/ceph/comments/eavquh/current_freenas_iscsi_vs_new_ceph_iscsi_see/
- https://www.youtube.com/watch?v=Qx6lxotzI0k&ab_channel=DanielPersson
- https://kdinesh.in/deploying-ceph-storage-cluster-using-cephadm/
- https://github.com/Dineshk1205/Ceph/blob/main/cephpreq.sh
- https://shonpaz.medium.com/deploy-a-ceph-cluster-within-minutes-using-cephadm-53e3b915416f
- https://achchusnulchikam.medium.com/deploy-production-ready-openstack-using-kolla-ansible-9cd1d1f210f1
- https://docs.ceph.com/en/latest/cephadm/install/
- https://docs.ceph.com/en/latest/releases/
- https://croit.io/blog/integrating-ceph-with-iscsi
- https://www.flamingbytes.com/blog/how-to-uninstall-ceph-storage-cluster/
- https://docs.ceph.com/en/latest/cephadm/install/#:~:text=To%20deploy%20a%20Ceph%20cluster,generally%20not%20suitable%20for%20production.&text=For%20more%20information%20on%20these,in%20ceph%2Dmgr%20administrator's%20guide.