This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cephtest:testing_ceph [2016/06/02 16:57] moliver |
cephtest:testing_ceph [2020/04/10 17:38] (current) |
||
---|---|---|---|
Line 39: | Line 39: | ||
deb http://repos.uclv.edu.cu/ubuntu trusty-security multiverse | deb http://repos.uclv.edu.cu/ubuntu trusty-security multiverse | ||
EoT | EoT | ||
+ | |||
+ | |||
+ | # conectado a internet | ||
+ | cat >> /etc/apt/sources.list << 'EoT' | ||
+ | deb http://download.ceph.com/debian/ jessie main | ||
+ | EoT | ||
+ | apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E84AC2C0460F3994 | ||
Line 313: | Line 320: | ||
</code> | </code> | ||
+ | |||
+ | Para usar un bloque | ||
+ | |||
+ | <code> | ||
+ | ceph@ceph-admin:~/cluster$ rbd create mirepo --size 20480 | ||
+ | |||
+ | ceph@ceph-admin:~/cluster$ rbd ls | ||
+ | mirepo | ||
+ | |||
+ | ceph@ceph-admin:~/cluster$ rbd --image mirepo info | ||
+ | rbd image 'mirepo': | ||
+ | size 20480 MB in 5120 objects | ||
+ | order 22 (4096 kB objects) | ||
+ | block_name_prefix: rb.0.102d.2ae8944a | ||
+ | format: 1 | ||
+ | |||
+ | |||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | Luego en la maquina donde se desea mapear ese bloque creado: | ||
+ | <code> | ||
+ | root@net-test:~# | ||
+ | root@net-test:~# modprobe rbd | ||
+ | root@net-test:~# | ||
+ | root@net-test:~# echo "10.12.1.154,10.12.1.155,10.12.1.156 name=admin,secret=AQDBYlBX8CiSHRAAVGYor8pmE2oGIQk7YO3Tig== rbd mirepo" > /sys/bus/rbd/add | ||
+ | 10.12.1.154,10.12.1.155,10.12.1.156 name=admin,secret=AQDBYlBX8CiSHRAAVGYor8pmE2oGIQk7YO3Tig== rbd mirepo /sys/bus/rbd/add | ||
+ | |||
+ | root@net-test:~# ll /dev/rbd* | ||
+ | brw-rw---- 1 root disk 254, 0 Jun 2 13:18 /dev/rbd0 | ||
+ | |||
+ | /dev/rbd: | ||
+ | total 0 | ||
+ | drwxr-xr-x 3 root root 60 Jun 2 13:18 . | ||
+ | drwxr-xr-x 18 root root 3020 Jun 2 13:18 .. | ||
+ | drwxr-xr-x 2 root root 60 Jun 2 13:18 rbd | ||
+ | root@net-test:~# | ||
+ | |||
+ | |||
+ | </code> | ||
+ | |||
+ | el secret se busca en un monitor en el archivo : | ||
+ | <code> | ||
+ | root@mon1:~# cat /etc/ceph/ceph.client.admin.keyring | ||
+ | [client.admin] | ||
+ | key = AQDBYlBX8CiSHRAAVGYor8pmE2oGIQk7YO3Tig== | ||
+ | root@mon1:~# | ||
+ | </code> | ||
+ | |||
Line 319: | Line 376: | ||
http://www.virtualtothecore.com/en/adventures-with-ceph-storage-part-5-install-ceph-in-the-lab/ | http://www.virtualtothecore.com/en/adventures-with-ceph-storage-part-5-install-ceph-in-the-lab/ | ||
+ | [[addrmosd|Breve guia para Quitar/Adicionar un OSD]] | ||
+ | [[disk4pool|Asignando solo un grupo de discos a un pool]] | ||