Skip to content

milabsit/backup-ceph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-1 "sudo mkdir /var/local/osd0 && sudo chown ceph:ceph /var/local/osd0"
vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-2 "sudo mkdir /var/local/osd1 && sudo chown ceph:ceph /var/local/osd1"
vagrant@ceph-admin:~/test-cluster$ ssh ceph-server-3 "sudo mkdir /var/local/osd2 && sudo chown ceph:ceph /var/local/osd2"
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
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 carmstrong/multinode-ceph-vagrant#17

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

Generate random data file

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

Ceph maintenance command

Check status of monitor on ceph-server-3 node

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

Start monitor

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.

Releases

No releases published

Packages

No packages published