{"id":3405,"date":"2020-08-10T13:54:48","date_gmt":"2020-08-10T19:54:48","guid":{"rendered":"https:\/\/ugit.siua.ac.cr\/?p=3405"},"modified":"2020-08-11T13:59:49","modified_gmt":"2020-08-11T19:59:49","slug":"proxmox-6-instalacion-y-configuracion-de-ceph","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=3405","title":{"rendered":"Proxmox 6: Instalaci\u00f3n y configuraci\u00f3n de ceph"},"content":{"rendered":"\n<p>En esta gu\u00eda vamos a explicar como instalar y configurar Ceph en un cluster con proxmox 6<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ELIMINAR ceph en caso necesario<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl stop ceph-mon.target\nsystemctl stop ceph-mgr.target\nsystemctl stop ceph-mds.target\nsystemctl stop ceph-osd.target\nrm -rf \/etc\/systemd\/system\/ceph*\nrm \/etc\/ceph\/*\nrm \/etc\/pve\/ceph.conf\nkillall -9 ceph-mon ceph-mgr ceph-mds\nrm -rf \/var\/lib\/ceph\/mon\/  \/var\/lib\/ceph\/mgr\/  \/var\/lib\/ceph\/mds\/\napt purge ceph-mon ceph-osd ceph-mgr ceph-mds\npveceph purge<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Estado actual<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Lo primero que vamos hacer es ejecutar el comando lsblk en cada nodo para obtener un inventario de los discos que podemos utilizar en el ceph<\/li><li>Obtenemos<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img fetchpriority=\"high\" decoding=\"async\" width=\"546\" height=\"321\" src=\"\/wp-content\/uploads\/2020\/08\/apolo.png\" alt=\"\" data-id=\"3414\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/apolo.png\" data-link=\"\/?attachment_id=3414\" class=\"wp-image-3414\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/apolo.png 546w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/apolo-300x176.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"556\" height=\"309\" src=\"\/wp-content\/uploads\/2020\/08\/ares.png\" alt=\"\" data-id=\"3415\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/ares.png\" data-link=\"\/?attachment_id=3415\" class=\"wp-image-3415\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/ares.png 556w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/ares-300x167.png 300w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img decoding=\"async\" width=\"518\" height=\"378\" src=\"\/wp-content\/uploads\/2020\/08\/hades.png\" alt=\"\" data-id=\"3416\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/hades.png\" data-link=\"\/?attachment_id=3416\" class=\"wp-image-3416\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/hades.png 518w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/hades-300x219.png 300w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"555\" height=\"227\" src=\"\/wp-content\/uploads\/2020\/08\/hestia.png\" alt=\"\" data-id=\"3417\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/hestia.png\" data-link=\"\/?attachment_id=3417\" class=\"wp-image-3417\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/hestia.png 555w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/hestia-300x123.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"517\" src=\"\/wp-content\/uploads\/2020\/08\/metis.png\" alt=\"\" data-id=\"3418\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/metis.png\" data-link=\"\/?attachment_id=3418\" class=\"wp-image-3418\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/metis.png 496w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/metis-288x300.png 288w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"241\" src=\"\/wp-content\/uploads\/2020\/08\/poseidon.png\" alt=\"\" data-id=\"3419\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/poseidon.png\" data-link=\"\/?attachment_id=3419\" class=\"wp-image-3419\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/poseidon.png 493w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/poseidon-300x147.png 300w\" sizes=\"(max-width: 493px) 100vw, 493px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"532\" height=\"261\" src=\"\/wp-content\/uploads\/2020\/08\/selene.png\" alt=\"\" data-id=\"3420\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/selene.png\" data-link=\"\/?attachment_id=3420\" class=\"wp-image-3420\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/selene.png 532w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/selene-300x147.png 300w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure><\/li><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"244\" src=\"\/wp-content\/uploads\/2020\/08\/zeus-1024x244.png\" alt=\"\" data-id=\"3421\" data-full-url=\"\/wp-content\/uploads\/2020\/08\/zeus.png\" data-link=\"\/?attachment_id=3421\" class=\"wp-image-3421\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/zeus-1024x244.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/zeus-300x71.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/zeus-768x183.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/zeus.png 1274w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Nodo principal: Metis<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora instalamos ceph <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"530\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_005.png\" alt=\"\" class=\"wp-image-3429\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_005.png 715w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_005-300x222.png 300w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"527\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_006.png\" alt=\"\" class=\"wp-image-3430\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_006.png 721w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_006-300x219.png 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"730\" height=\"533\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_007.png\" alt=\"\" class=\"wp-image-3431\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_007.png 730w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_007-300x219.png 300w\" sizes=\"(max-width: 730px) 100vw, 730px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Crear resto de monitores<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora en el resto de nodos creamos los dem\u00e1s monitores<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"626\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_009-1024x626.png\" alt=\"\" class=\"wp-image-3432\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_009-1024x626.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_009-300x183.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_009-768x470.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_009.png 1058w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"246\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_010.png\" alt=\"\" class=\"wp-image-3433\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_010.png 509w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_010-300x145.png 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Resultado<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"347\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011-1024x347.png\" alt=\"\" class=\"wp-image-3435\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011-1024x347.png 1024w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011-300x102.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011-768x260.png 768w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011-1536x520.png 1536w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_011.png 1568w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Apolo<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Si vemos apolo con el comando lsblk tenemos<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"591\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_012.png\" alt=\"\" class=\"wp-image-3437\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_012.png 593w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_012-300x300.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_012-150x150.png 150w\" sizes=\"(max-width: 593px) 100vw, 593px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Como vemos en:<ul><li>sde esta instalado el proxmox<\/li><li>sda tiene 2 particiones sda1 y sda9<\/li><li>sdb tiene 2 particiones sdb1 y sdb9<\/li><li>sdc tiene 2 particiones sdc1 y sdc9<\/li><\/ul><\/li><li>Entonces para eliminarlas seleccionamos el disco a trabajar<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk \/dev\/sda<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Eliminamos la partici\u00f3n 9 con los comando \u00abd\u00bb y \u00ab9\u00bb<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>elcome to fdisk (util-linux 2.33.1).\nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\n\nCommand (m for help): d\nPartition number (1,9, default 9): 9\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Luego eliminamos la partici\u00f3n 1<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): d\nPartition number (1,9, default 9): 9<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Y finalmente escribimos los cambios con el comando \u00abw\u00bb<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): w\nThe partition table has been altered.\nCalling ioctl() to re-read partition table.\nSyncing disks.<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Ahora aplicamos los cambios a todos los discos, quedando as\u00ed:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"539\" height=\"467\" src=\"\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_013.png\" alt=\"\" class=\"wp-image-3438\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_013.png 539w, https:\/\/sada.services\/wp-content\/uploads\/2020\/08\/Selecci\u00f3n_013-300x260.png 300w\" sizes=\"(max-width: 539px) 100vw, 539px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>En esta gu\u00eda vamos a explicar como instalar y configurar Ceph en un cluster con proxmox 6 ELIMINAR ceph en caso necesario Estado actual Lo primero que vamos hacer es ejecutar el comando lsblk en cada nodo para obtener un inventario de los discos que podemos utilizar en el ceph Obtenemos Nodo principal: Metis Ahora [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3405","post","type-post","status-publish","format-standard","hentry","category-sin-categoria"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3405"}],"version-history":[{"count":7,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3405\/revisions"}],"predecessor-version":[{"id":3439,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/3405\/revisions\/3439"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}