Last active
June 24, 2016 09:37
-
-
Save oprypin/397b616850e99cf306fcec7724a89454 to your computer and use it in GitHub Desktop.
Run ceph test cluster by creating a btrfs file system in a file in RAM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -e | |
cd /tmp | |
dd if=/dev/zero of=ceph_fs bs=1024 count=3145728 # 3 GiB | |
sudo losetup /dev/loop0 || sudo losetup /dev/loop0 ceph_fs | |
sudo mkfs.btrfs -f /dev/loop0 | |
cd /path/to/ceph/src/ | |
sudo mount /dev/loop0 dev | |
sudo mount /dev/loop0 run | |
sudo chown -R $USER: dev run | |
# ./vstart.sh -d -n -x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment