Skip to content

Instantly share code, notes, and snippets.

@harobed
Created March 15, 2017 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harobed/0c24a772e9731c2772caca53f829d751 to your computer and use it in GitHub Desktop.
Save harobed/0c24a772e9731c2772caca53f829d751 to your computer and use it in GitHub Desktop.
-bash-4.2# docker exec -it origin-node bash
[root@atomic-test-node-1 origin]# rbd --id admin -m 172.29.20.10:6789 --key=SECRET list
2017-03-15 10:22:35.928695 7f68b68a07c0 -1 did not load config file, using default settings.
image1
image10
image11
image12
image13
image14
image15
image16
image17
image18
image2
image3
image4
image5
image6
image7
image8
image9
[root@atomic-test-node-1 origin]# rbd --id admin -m 172.29.20.10:6789 --key=SECRET map rbd/image5
2017-03-15 10:24:06.484089 7f639b8ee7c0 -1 did not load config file, using default settings.
/dev/rbd0
[root@atomic-test-node-1 origin]# mkdir /mnt/image5
[root@atomic-test-node-1 origin]# mount /dev/rbd0 /mnt/image5/
[root@atomic-test-node-1 origin]# ls /mnt/image5/
lost+found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment