项目作者: milabsit

项目描述 :
Ceph backup web panel
高级语言:
项目地址: git://github.com/milabsit/backup-ceph.git
创建时间: 2017-04-28T15:50:57Z
项目社区:https://github.com/milabsit/backup-ceph

开源协议:Apache License 2.0

下载


Ceph backup

Web panel for managing backup routines in a Ceph cluster

Up & running the cluster with Vagrant

Please follow instruction from this repository https://github.com/carmstrong/multinode-ceph-vagrant

Modified Ceph deployment

  1. vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-1 "sudo mkdir /var/local/osd0 && sudo chown ceph:ceph /var/local/osd0"
  2. vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-2 "sudo mkdir /var/local/osd1 && sudo chown ceph:ceph /var/local/osd1"
  3. vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-3 "sudo mkdir /var/local/osd2 && sudo chown ceph:ceph /var/local/osd2"
  4. vagrant@ceph-admin:~/test-cluster$ ceph-deploy osd prepare ceph-server-1:/var/local/osd0 ceph-server-2:/var/local/osd1 ceph-server-3:/var/local/osd2
  5. vagrant@ceph-admin:~/test-cluster$ ceph-deploy osd activate ceph-server-1:/var/local/osd0 ceph-server-2:/var/local/osd1 ceph-server-3:/var/local/osd2

Modified block device creation, found in issue https://github.com/carmstrong/multinode-ceph-vagrant/issues/17

  1. $ vagrant ssh ceph-client
  2. vagrant@ceph-client:~$ sudo rbd create foo --size 4096 -m ceph-server-1
  3. vagrant@ceph-client:~$ sudo rbd create foo --size 4096 --image-feature layering -m ceph-server-1
  4. vagrant@ceph-client:~$ sudo mkfs.ext4 -m0 /dev/rbd/rbd/foo
  5. vagrant@ceph-client:~$ sudo mkdir /mnt/ceph-block-device
  6. vagrant@ceph-client:~$ sudo mount /dev/rbd/rbd/foo /mnt/ceph-block-device

Generate random data file

  1. sudo dd if=/dev/urandom of=tempfile1 bs=1M count=1000

Ceph maintenance command

Check status of monitor on ceph-server-3 node

  1. vagrant@ceph-server-3:~$ sudo systemctl status ceph-mon@ceph-server-3

Start monitor

  1. vagrant@ceph-server-3:~$ sudo systemctl start ceph-mon@ceph-server-3

License

Copyright 2017 MiLabs

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.