การเปลี่ยนไอพีใน Ceph Node ใน Proxmox VE Cluster

Published on October 24, 2024
การเปลี่ยนไอพีใน Ceph Node ใน Proxmox VE Cluster

การเปลี่ยนแปลงไอพีของ Ceph Storage ใน Proxmox VE Cluster

สำหรับการเปลี่ยนแปลง IP ของ Proxmox VE Cluster Nodes นั้น หากท่านได้ทำการ configure nodes ต่างๆ ไว้เป็นส่วนหนึ่งของ shared storage ด้วย Ceph เมื่อท่านทำการเปลี่ยนแปลง IP ในระบบ Cluster ตามที่เราสอนไว้แล้ว และ Cluster nodes กลับมาใช้งานได้แล้ว ท่านจะพบว่า shared storage ของท่าน จะขึ้นเครื่องหมายตกใจ (!) ซึ่งหมายถึงว่าระบบ ceph นั้นยังมีปัญหา อยู่ดังนี้ขอให้ท่านทำการแก้ไขด้วยขั้นตอนดังต่อไปนี้

การเช็คว่า node ในระบบ cluster ของท่านชื่ออะไรนั้นทำได้ง่ายๆ โดยชื่อของแต่ละ node จะปรากฏใน web UI ซึ่งจากรูปด้านล่าง ท่านจะเห็นว่า ชื่อ node ของท่านคือ
node1, node2 และ node3

1. ทำการหยุด service ceph monitor โดยการพิมพ์

systemctl stop ceph-mon@node1

2. ทำการดึงข้อมูลเกี่ยวกับ ceph monitor ไปเก็บไว้ในไฟล์ ซึ่งจะเป็นไฟล์อะไรก็ได้ที่ท่านต้องการ ตามตัวอย่างคือ /tmp/monmap

ceph-mon -i node1 --extract-monmap /tmp/monmap

3. ทำการแสดงข้อมูลจากไฟล์ที่ดึงจากระบบด้วยคำสั่ง

monmaptool --print /tmp/monmap

หลังจากนั้นท่านจะได้ข้อมูลเช่นที่แสดงในรูป

4. ทำการลบ ข้อมูลเดิมโดยการพิมพ์

monmaptool --rm node1 --rm node2 --rm node3 /tmp/monmap

5. ทำการเพิ่มข้อมูล IP ใหม่ให้กับระบบเช่น

monmaptool --add node1 10.88.99.11:3300 --add node2 10.88.99.12:3300 --add node3 10.88.99.13:3300 /tmp/monmap

6. ทำการเรียกใช้งานสิ่งที่เราเพิ่มไปด้วยคำสั่ง

ceph-mon -i node1 --inject-monmap /tmp/monmap

7. ทำการรีบูตโหนด

reboot

ท่านจะต้องทำแบบนี้ในทุกโหนด ในระบบ โดยการเปลี่ยนเฉพาะ node name ในแต่ละเครื่อง หลังจากนั้น ระบบจะกลับมาใช้งานได้ตามปกติ

Proxmox Backup Server (PBS): The Ideal Backup Solution for Proxmox VE

Proxmox Backup Server (PBS) คืออะไร ทำไมผู้ใช้ Proxmox VE ควรพิจารณาใช้อย่างยิ่ง ในปัจจุบันหลายองค์กรเลือกใช้...

Read more »

What is Extended Detection and Response XDR

Extended Detection and Response (XDR) XDR หรือ Extended Detection and...

Read more »

ตัวเลือกที่ดีในการมาใช้แทน Backup Exec

ทางเลือกสำหรับ Backup Exec หลังเข้าสู่ช่วง End-of-Life Backup Exec ได้เข้าสู่ช่วง End-of-Life (EOL)...

Read more »

เตรียมตัวรับ End-of-Life ใน Backup Exec ได้อย่างไรบ้าง

อย่างที่ท่านอาจจะทราบอยู่แล้ว ว่า เมื่อวันที่ 31 มีนาคม 2026 ที่ผ่านมาบริษัทแม่ของ Backup Exec ได้ประกาศ...

Read more »

Introduction to Apache Cassandra

Apache Cassandra คืออะไร? Apache Cassandra หรืออาจจะเรียกย่อๆ ว่า Cassandra  คือฐานข้อมูล NoSQL...

Read more »

Introduction to ElasticSearch

Elasticsearch คืออะไร? Elasticsearch คือ Search and Analytics Engine แบบกระจายศูนย์ (Distributed)...

Read more »