溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

發(fā)布時間:2020-07-23 19:00:12 來源:網(wǎng)絡(luò) 閱讀:904 作者:loong576 欄目:云計算

環(huán)境說明:

主機(jī)名
操作系統(tǒng)版本
IP地址
說明
centos7
centos7
172.27.9.181NFS服務(wù)器,掛載點(diǎn)為/backup
openstack-controllerUbuntu 16.04.5172.27.34.37openstack控制節(jié)點(diǎn),本地nfs掛載點(diǎn)為cinder_backup



ubuntu安裝詳見:Ubuntu16.04.5以lvm方式安裝全記錄

openstack安裝詳見:OpenStack實踐(一):Ubuntu16.04下DevStack方式搭建p版OpenStack

nfs服務(wù)器搭建詳見:Centos7下NFS服務(wù)器搭建及客戶端連接配置


目標(biāo):

  1. 備份卷vol-002至遠(yuǎn)程nfs服務(wù)器;

  2. 從nfs服務(wù)器上恢復(fù)已備份的卷;


1.修改配置文件

修改控制節(jié)點(diǎn)的cinder.conf文件

stack@openstack-controller:~$?view?/etc/cinder/cinder.conf
backup_driver?=?cinder.backup.drivers.nfs
backup_mount_point_base?=?/cinder_backup
backup_share?=?172.27.9.181:/backup


2.啟動備份服務(wù)

手動啟動cinder-backup服務(wù)

root@openstack-controller:~#?source?/opt/stack/devstack/openrc?admin?admin
root@openstack-controller:/#?/usr/bin/python?/usr/local/bin/cinder-backup?--config-file?/etc/cinder/cinder.conf

掛載點(diǎn)查看

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

遠(yuǎn)程的172.27.9.181:/backup目錄被掛載到本地/cinder_backup/25456d92e2f8d55a830c3f5211266302


3.查看volume

查看被backup的卷

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

將要被backup的卷vol-002已經(jīng)被連接到實例cirros06上。


4.執(zhí)行備份

root@openstack-controller:~#?cinder?backup-create?vol-002?--force

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

由于vol-002已經(jīng)被連接到實例,所以強(qiáng)制備份。


5.查看已備份的卷

備份卷查看

root@openstack-controller:~#?cinder?backup-list

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

nfs共享目錄查看

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

目標(biāo)1完成


6.恢復(fù)卷

root@openstack-controller:~#?cinder?backup-restore?34ff4ba3-e175-481a-b578-800d4948dcb7

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

查看正在恢復(fù)的卷

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

已恢復(fù)

OpenStack實踐(六):Cinder模塊Backup and Restore Volume

目標(biāo)2完成。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI