OpenStack Caracal : Cinder बैकअप सेवा2024/10/09 |
Cinder ब्लॉक स्टोरेज के लिए Cinder बैकअप सेवा कॉन्फ़िगर करें।
यह उदाहरण बैकअप स्टोरेज के लिए NFS बैकएंड को कॉन्फ़िगर करना दिखाता है। ------------+--------------------------+--------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] | | (Control Node) | | (Network Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached Nginx | | Neutron Server | | Nova Compute | | Keystone httpd | | OVN-Northd | | Open vSwitch | | Glance Nova API | | Nginx iSCSI Target | | OVN Metadata Agent | | Cinder API | | Cinder Volume/Backup | | OVN-Controller | +-----------------------+ +-----------------------+ +-----------------------+ -----------+------------------------------------------------------------------- eth0|10.0.0.35 +----------+-----------+ | [ nfs.srv.world ] | | NFS Server | +----------------------+ |
[1] |
NFS सर्वर का आपके स्थानीय नेटवर्क पर चलना आवश्यक है, यहां देखें |
[2] | संग्रहण नोड कॉन्फ़िगर करें। |
root@network:~#
apt -y install cinder-backup nfs-common
root@network:~#
vi /etc/idmapd.conf # पंक्ति 5: टिप्पणी हटाएं और स्वयं के डोमेन नाम में बदलें Domain = srv.world
root@network:~#
vi /etc/cinder/cinder.conf # [DEFAULT] अनुभाग में अनुसरण जोड़ें
backup_driver = cinder.backup.drivers.nfs.NFSBackupDriver
backup_mount_point_base = $state_path/backup_nfs backup_share = nfs.srv.world:/var/lib/cinder-backup systemctl restart cinder-backup root@network:~# chown -R cinder:cinder /var/lib/cinder/backup_nfs |
[3] | अपने Cinder वॉल्यूम के लिए बैकअप प्राप्त करें। किसी भी नोड पर काम करना ठीक है. (नीचे उदाहरण नियंत्रण नोड पर है) |
ubuntu@dlp ~(keystone)$ openstack volume list +----------------------------------+----------+-----------+------+-------------+ | ID | Name | Status | Size | Attached to | +----------------------------------+----------+-----------+------+-------------+ | 1944c7fb-7e03-4e4f-838c- | disk-nfs | available | 10 | | | 18821f2606ac | | | | | | d51ac6e9-be19-4aac-b599- | disk-lvm | available | 10 | | | c524184a8f35 | | | | | +----------------------------------+----------+-----------+------+-------------+ # [disk-nfs] के लिए नए नाम [bk-disk-nfs] के रूप में एक बैकअप बनाएं ubuntu@dlp ~(keystone)$ openstack volume backup create --name bk-disk-nfs disk-nfs +-----------+--------------------------------------+ | Field | Value | +-----------+--------------------------------------+ | id | 468ad319-217b-4d6c-8e0f-4b0cd474263f | | name | bk-disk-nfs | | volume_id | 1944c7fb-7e03-4e4f-838c-18821f2606ac | +-----------+--------------------------------------+ # निर्माण के दौरान, [Status] है [creating] ubuntu@dlp ~(keystone)$ openstack volume backup list +--------------+-------------+-------------+----------+------+-------------+ | ID | Name | Description | Status | Size | Incremental | +--------------+-------------+-------------+----------+------+-------------+ | 468ad319- | bk-disk-nfs | None | creating | 10 | False | | 217b-4d6c- | | | | | | | 8e0f- | | | | | | | 4b0cd474263f | | | | | | +--------------+-------------+-------------+----------+------+-------------+ # निर्माण समाप्त करने के बाद, [Status] [available] में बदल जाता है ubuntu@dlp ~(keystone)$ openstack volume backup list +--------------+-------------+-------------+-----------+------+-------------+ | ID | Name | Description | Status | Size | Incremental | +--------------+-------------+-------------+-----------+------+-------------+ | 468ad319- | bk-disk-nfs | None | available | 10 | False | | 217b-4d6c- | | | | | | | 8e0f- | | | | | | | 4b0cd474263f | | | | | | +--------------+-------------+-------------+-----------+------+-------------+ |
[4] | यदि लक्ष्य भंडारण की कोई बैकअप फ़ाइल है जिसे आप बैकअप प्राप्त करना चाहते हैं, तो वृद्धिशील बैकअप प्राप्त करना संभव है। इसके अलावा, यदि लक्ष्य भंडारण जिसे आप बैकअप प्राप्त करना चाहते हैं, अब एक इंस्टेंस पर संलग्न है, तो बलपूर्वक बैकअप प्राप्त करने के लिए [--force] विकल्प निर्दिष्ट करें। |
ubuntu@dlp ~(keystone)$ openstack volume backup list +--------------+-------------+-------------+-----------+------+-------------+ | ID | Name | Description | Status | Size | Incremental | +--------------+-------------+-------------+-----------+------+-------------+ | 468ad319- | bk-disk-nfs | None | available | 10 | False | | 217b-4d6c- | | | | | | | 8e0f- | | | | | | | 4b0cd474263f | | | | | | +--------------+-------------+-------------+-----------+------+-------------+ubuntu@dlp ~(keystone)$ openstack volume list +----------------------------------+----------+-----------+------+-------------+ | ID | Name | Status | Size | Attached to | +----------------------------------+----------+-----------+------+-------------+ | 1944c7fb-7e03-4e4f-838c- | disk-nfs | available | 10 | | | 18821f2606ac | | | | | | d51ac6e9-be19-4aac-b599- | disk-lvm | available | 10 | | | c524184a8f35 | | | | | +----------------------------------+----------+-----------+------+-------------+ubuntu@dlp ~(keystone)$ openstack volume backup create --name bk-disk-nfs-01 --incremental --force disk-nfs +-----------+--------------------------------------+ | Field | Value | +-----------+--------------------------------------+ | id | 26e1da57-dd66-430d-81c2-f06a099927c4 | | name | bk-disk-nfs-01 | | volume_id | 1944c7fb-7e03-4e4f-838c-18821f2606ac | +-----------+--------------------------------------+ubuntu@dlp ~(keystone)$ openstack volume backup list +--------------+--------------+-------------+-----------+------+-------------+ | ID | Name | Description | Status | Size | Incremental | +--------------+--------------+-------------+-----------+------+-------------+ | 26e1da57- | bk-disk- | None | available | 10 | True | | dd66-430d- | nfs-01 | | | | | | 81c2- | | | | | | | f06a099927c4 | | | | | | | 468ad319- | bk-disk-nfs | None | available | 10 | False | | 217b-4d6c- | | | | | | | 8e0f- | | | | | | | 4b0cd474263f | | | | | | +--------------+--------------+-------------+-----------+------+-------------+ |
[5] | बैकअप से पुनर्स्थापित करने के लिए, निम्नानुसार कमांड चलाएँ। पुनर्स्थापित करने के लिए, लक्ष्य वॉल्यूम को किसी भी उदाहरण से अलग किया जाना चाहिए। |
ubuntu@dlp ~(keystone)$ openstack volume backup list +--------------+--------------+-------------+-----------+------+-------------+ | ID | Name | Description | Status | Size | Incremental | +--------------+--------------+-------------+-----------+------+-------------+ | 26e1da57- | bk-disk- | None | available | 10 | True | | dd66-430d- | nfs-01 | | | | | | 81c2- | | | | | | | f06a099927c4 | | | | | | | 468ad319- | bk-disk-nfs | None | available | 10 | False | | 217b-4d6c- | | | | | | | 8e0f- | | | | | | | 4b0cd474263f | | | | | | +--------------+--------------+-------------+-----------+------+-------------+ubuntu@dlp ~(keystone)$ openstack volume list +----------------------------------+----------+-----------+------+-------------+ | ID | Name | Status | Size | Attached to | +----------------------------------+----------+-----------+------+-------------+ | 1944c7fb-7e03-4e4f-838c- | disk-nfs | available | 10 | | | 18821f2606ac | | | | | | d51ac6e9-be19-4aac-b599- | disk-lvm | available | 10 | | | c524184a8f35 | | | | | +----------------------------------+----------+-----------+------+-------------+ # पुनर्स्थापना चलाएँ ubuntu@dlp ~(keystone)$ openstack volume backup restore bk-disk-nfs-01 disk-nfs-restore # पुनर्स्थापना के दौरान, स्थिति है [restoreing-backup] ubuntu@dlp ~(keystone)$ openstack volume list +------------------+------------------+------------------+------+-------------+ | ID | Name | Status | Size | Attached to | +------------------+------------------+------------------+------+-------------+ | e521acf6-8bc2- | disk-nfs-restore | restoring-backup | 10 | | | 4770-99f7- | | | | | | ecad9a25ea35 | | | | | | 1944c7fb-7e03- | disk-nfs | available | 10 | | | 4e4f-838c- | | | | | | 18821f2606ac | | | | | | d51ac6e9-be19- | disk-lvm | available | 10 | | | 4aac-b599- | | | | | | c524184a8f35 | | | | | +------------------+------------------+------------------+------+-------------+ # पुनर्स्थापना समाप्त करने के बाद, स्थिति [available] में बदल जाती है ubuntu@dlp ~(keystone)$ openstack volume list +----------------------+------------------+-----------+------+-------------+ | ID | Name | Status | Size | Attached to | +----------------------+------------------+-----------+------+-------------+ | 0e0ac6ed-a037-42e6- | disk-nfs-restore | available | 10 | | | ab53-05750d49299b | | | | | | 049a641b-4340-4158- | disk-nfs | available | 10 | | | bace-139533f7a759 | | | | | | 142acb22-d62a-4307- | disk-lvm | available | 10 | | | b31f-d0cdfa357b45 | | | | | +----------------------+------------------+-----------+------+-------------+ |
Sponsored Link |
|