---
title: 配置Cinder_backup集成Ceph
description: "需要在OpenStack上修改Cinder_backup配置文件，从而配置Cinder_backup集成Ceph。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengcpfs/ecosystemEnable/OpenStack/kunpengopenstackwallabyceph_04_012.html
sourcePath: /source/zh/kunpengcpfs/ecosystemEnable/OpenStack/kunpengopenstackwallabyceph_04_012.html
indexId: 8860be0b7011060779c353f7dc5ff2cc8ecb6cabd39e8828e2f265851c49088a88
---
# 配置Cinder_backup集成Ceph

需要在OpenStack上修改Cinder_backup配置文件，从而配置Cinder_backup集成Ceph。

1. 在OpenStack存储节点（Cinder节点）上，修改配置文件“/etc/cinder/cinder.conf”。

  a. 打开文件。

```
vi /etc/cinder/cinder.conf
```


  b. 按“i”进入编辑模式，修改并新增以下内容。

```
[DEFAULT]
#backup_driver = cinder.backup.drivers.swift.SwiftBackupDriver
backup_driver = cinder.backup.drivers.ceph.CephBackupDriver
backup_ceph_conf = /etc/ceph/ceph.conf
backup_ceph_user = cinder-backup
backup_ceph_chunk_size = 4194304
backup_ceph_pool = backups
backup_ceph_stripe_unit = 0
backup_ceph_stripe_count = 0
restore_discard_excess_bytes = true
```


    在配置参数backup_driver时需要注释或者删除其他backup_driver的配置项。


  c. 按“Esc”键退出编辑模式，输入:wq!，按“Enter”键保存并退出文件。
2. 在OpenStack存储节点（Cinder节点）上，重启cinder-backup服务进程。

```
systemctl restart openstack-cinder-backup.service
```
