{"id":165,"date":"2024-07-28T10:40:03","date_gmt":"2024-07-28T09:40:03","guid":{"rendered":"https:\/\/horrillo.eu\/?p=165"},"modified":"2025-09-21T10:07:03","modified_gmt":"2025-09-21T09:07:03","slug":"logical-volume-management-lvm-en-ubuntu-server","status":"publish","type":"post","link":"https:\/\/horrillo.eu\/?p=165","title":{"rendered":"Logical Volume Management (LVM) en Ubuntu Server"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"1024\" src=\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\" alt=\"\" class=\"wp-image-168\" style=\"width:879px;height:auto\" srcset=\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp 1024w, https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown-300x300.webp 300w, https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown-150x150.webp 150w, https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown-768x768.webp 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>LVM es una alternativa flexible a la gesti\u00f3n tradicional de particiones de disco en Linux. Proporciona una capa de abstracci\u00f3n entre el sistema de archivos y los dispositivos de almacenamiento subyacentes, lo que facilita la administraci\u00f3n de discos, particiones y sistemas de archivos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Instalaci\u00f3n de LVM en Ubuntu Server<\/h2>\n\n\n\n<p>Para instalar LVM en Ubuntu Server, ejecute los siguientes comandos:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo apt-get update<br>sudo apt-get install lvm2<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Creaci\u00f3n de un nuevo volumen LVM<\/h2>\n\n\n\n<p>Supongamos que desea crear un nuevo volumen LVM con dos discos duros adicionales, \/dev\/sdb y \/dev\/sdc, cada uno con 10 GB de capacidad.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Inicialice los discos duros:<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo fdisk \/dev\/sdb<br>sudo fdisk \/dev\/sdc<\/p>\n<\/blockquote>\n\n\n\n<p>En cada sesi\u00f3n de fdisk, cree una nueva partici\u00f3n con el comando <code>n<\/code>, seleccione el tipo de partici\u00f3n predeterminado con <code>p<\/code>, y acepte los valores predeterminados para el primer y \u00faltimo sector. Guarde los cambios y salga de fdisk con <code>w<\/code>.<\/p>\n\n\n\n<p>2.  Formatee las nuevas particiones como Physical Volumes (PV):<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo pvcreate \/dev\/sdb1<br>sudo pvcreate \/dev\/sdc1<\/p>\n<\/blockquote>\n\n\n\n<p>3.  Cree un nuevo Grupo de Vol\u00famenes (VG) llamado \u00abvgdata\u00bb y agregue los PV reci\u00e9n creados:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo vgcreate vgdata \/dev\/sdb1 \/dev\/sdc1<\/p>\n<\/blockquote>\n\n\n\n<p>4.  Cree un nuevo Volumen L\u00f3gico (LV) llamado \u00ablvdata\u00bb con un tama\u00f1o de 5 GB dentro del VG \u00abvgdata\u00bb:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo lvcreate -L 5G -n lvdata vgdata<\/p>\n<\/blockquote>\n\n\n\n<p>5.  Formatee el nuevo LV como ext4:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo mkfs.ext4 \/dev\/vgdata\/lvdata<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Montaje del volumen LVM<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Cree un directorio para montar el nuevo volumen LVM:<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo mkdir \/mnt\/lvmdata<\/p>\n<\/blockquote>\n\n\n\n<p>2.  Monte el nuevo volumen LVM en el directorio reci\u00e9n creado:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo mount \/dev\/vgdata\/lvdata \/mnt\/lvmdata<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Extensi\u00f3n del volumen LVM<\/h2>\n\n\n\n<p>Para extender el tama\u00f1o del volumen LVM, siga estos pasos:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Agregue m\u00e1s espacio al VG \u00abvgdata\u00bb mediante la adici\u00f3n de un nuevo disco duro o mediante la extensi\u00f3n de un disco duro existente.<\/li>\n\n\n\n<li>Extienda el LV \u00ablvdata\u00bb al nuevo espacio disponible:<\/li>\n<\/ol>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo lvextend -L +5G \/dev\/vgdata\/lvdata<\/p>\n<\/blockquote>\n\n\n\n<p>3.  Redimensione el sistema de archivos ext4 para aprovechar el espacio adicional:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo resize2fs \/dev\/vgdata\/lvdata<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusi\u00f3n<\/h2>\n\n\n\n<p>LVM es una herramienta potente y flexible para la gesti\u00f3n de almacenamiento en Ubuntu Server. Le permite administrar f\u00e1cilmente discos, particiones y sistemas de archivos, y proporciona funciones de escalado y flexibilidad adicionales. Al seguir los pasos descritos en este art\u00edculo, podr\u00e1 crear, configurar y administrar vol\u00famenes LVM en Ubuntu Server.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>LVM es una alternativa flexible a la gesti\u00f3n tradicional de particiones de disco en Linux. Proporciona una capa de abstracci\u00f3n entre el sistema de archivos y los dispositivos de almacenamiento subyacentes, lo que facilita la administraci\u00f3n de discos, particiones y sistemas de archivos. Instalaci\u00f3n de LVM en Ubuntu Server Para instalar LVM en Ubuntu Server, [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[9,20],"class_list":["post-165","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux","tag-lvm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Logical Volume Management (LVM) en Ubuntu Server - Mi blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/horrillo.eu\/?p=165\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Logical Volume Management (LVM) en Ubuntu Server - Mi blog\" \/>\n<meta property=\"og:description\" content=\"LVM es una alternativa flexible a la gesti\u00f3n tradicional de particiones de disco en Linux. Proporciona una capa de abstracci\u00f3n entre el sistema de archivos y los dispositivos de almacenamiento subyacentes, lo que facilita la administraci\u00f3n de discos, particiones y sistemas de archivos. Instalaci\u00f3n de LVM en Ubuntu Server Para instalar LVM en Ubuntu Server, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/horrillo.eu\/?p=165\" \/>\n<meta property=\"og:site_name\" content=\"Mi blog\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-28T09:40:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-21T09:07:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Juan Antonio Horrillo de Haro\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Juan Antonio Horrillo de Haro\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/horrillo.eu\/?p=165#article\",\"isPartOf\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165\"},\"author\":{\"name\":\"Juan Antonio Horrillo de Haro\",\"@id\":\"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec\"},\"headline\":\"Logical Volume Management (LVM) en Ubuntu Server\",\"datePublished\":\"2024-07-28T09:40:03+00:00\",\"dateModified\":\"2025-09-21T09:07:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165\"},\"wordCount\":403,\"commentCount\":2,\"image\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165#primaryimage\"},\"thumbnailUrl\":\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\",\"keywords\":[\"Linux\",\"LVM\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/horrillo.eu\/?p=165#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/horrillo.eu\/?p=165\",\"url\":\"https:\/\/horrillo.eu\/?p=165\",\"name\":\"Logical Volume Management (LVM) en Ubuntu Server - Mi blog\",\"isPartOf\":{\"@id\":\"https:\/\/horrillo.eu\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165#primaryimage\"},\"image\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165#primaryimage\"},\"thumbnailUrl\":\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\",\"datePublished\":\"2024-07-28T09:40:03+00:00\",\"dateModified\":\"2025-09-21T09:07:03+00:00\",\"author\":{\"@id\":\"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec\"},\"breadcrumb\":{\"@id\":\"https:\/\/horrillo.eu\/?p=165#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/horrillo.eu\/?p=165\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/horrillo.eu\/?p=165#primaryimage\",\"url\":\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\",\"contentUrl\":\"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp\",\"width\":1024,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/horrillo.eu\/?p=165#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/horrillo.eu\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Logical Volume Management (LVM) en Ubuntu Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/horrillo.eu\/#website\",\"url\":\"https:\/\/horrillo.eu\/\",\"name\":\"Mi blog\",\"description\":\"Blog de inform\u00e1tica\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/horrillo.eu\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec\",\"name\":\"Juan Antonio Horrillo de Haro\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\/\/horrillo.eu\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/79ee3e66414c28cf98f6cc347c7ef785b422e524406a3103c77ee923bdc738e8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/79ee3e66414c28cf98f6cc347c7ef785b422e524406a3103c77ee923bdc738e8?s=96&d=mm&r=g\",\"caption\":\"Juan Antonio Horrillo de Haro\"},\"url\":\"https:\/\/horrillo.eu\/?author=3\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Logical Volume Management (LVM) en Ubuntu Server - Mi blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/horrillo.eu\/?p=165","og_locale":"es_ES","og_type":"article","og_title":"Logical Volume Management (LVM) en Ubuntu Server - Mi blog","og_description":"LVM es una alternativa flexible a la gesti\u00f3n tradicional de particiones de disco en Linux. Proporciona una capa de abstracci\u00f3n entre el sistema de archivos y los dispositivos de almacenamiento subyacentes, lo que facilita la administraci\u00f3n de discos, particiones y sistemas de archivos. Instalaci\u00f3n de LVM en Ubuntu Server Para instalar LVM en Ubuntu Server, [&hellip;]","og_url":"https:\/\/horrillo.eu\/?p=165","og_site_name":"Mi blog","article_published_time":"2024-07-28T09:40:03+00:00","article_modified_time":"2025-09-21T09:07:03+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp","type":"image\/webp"}],"author":"Juan Antonio Horrillo de Haro","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Juan Antonio Horrillo de Haro","Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/horrillo.eu\/?p=165#article","isPartOf":{"@id":"https:\/\/horrillo.eu\/?p=165"},"author":{"name":"Juan Antonio Horrillo de Haro","@id":"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec"},"headline":"Logical Volume Management (LVM) en Ubuntu Server","datePublished":"2024-07-28T09:40:03+00:00","dateModified":"2025-09-21T09:07:03+00:00","mainEntityOfPage":{"@id":"https:\/\/horrillo.eu\/?p=165"},"wordCount":403,"commentCount":2,"image":{"@id":"https:\/\/horrillo.eu\/?p=165#primaryimage"},"thumbnailUrl":"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp","keywords":["Linux","LVM"],"articleSection":["Linux"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/horrillo.eu\/?p=165#respond"]}]},{"@type":"WebPage","@id":"https:\/\/horrillo.eu\/?p=165","url":"https:\/\/horrillo.eu\/?p=165","name":"Logical Volume Management (LVM) en Ubuntu Server - Mi blog","isPartOf":{"@id":"https:\/\/horrillo.eu\/#website"},"primaryImageOfPage":{"@id":"https:\/\/horrillo.eu\/?p=165#primaryimage"},"image":{"@id":"https:\/\/horrillo.eu\/?p=165#primaryimage"},"thumbnailUrl":"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp","datePublished":"2024-07-28T09:40:03+00:00","dateModified":"2025-09-21T09:07:03+00:00","author":{"@id":"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec"},"breadcrumb":{"@id":"https:\/\/horrillo.eu\/?p=165#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/horrillo.eu\/?p=165"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/horrillo.eu\/?p=165#primaryimage","url":"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp","contentUrl":"https:\/\/horrillo.eu\/wp-content\/uploads\/2024\/07\/Unknown.webp","width":1024,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/horrillo.eu\/?p=165#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/horrillo.eu\/"},{"@type":"ListItem","position":2,"name":"Logical Volume Management (LVM) en Ubuntu Server"}]},{"@type":"WebSite","@id":"https:\/\/horrillo.eu\/#website","url":"https:\/\/horrillo.eu\/","name":"Mi blog","description":"Blog de inform\u00e1tica","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/horrillo.eu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/horrillo.eu\/#\/schema\/person\/56d9626d9bb38bf236909b6750326bec","name":"Juan Antonio Horrillo de Haro","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/horrillo.eu\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/79ee3e66414c28cf98f6cc347c7ef785b422e524406a3103c77ee923bdc738e8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/79ee3e66414c28cf98f6cc347c7ef785b422e524406a3103c77ee923bdc738e8?s=96&d=mm&r=g","caption":"Juan Antonio Horrillo de Haro"},"url":"https:\/\/horrillo.eu\/?author=3"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/horrillo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165"}],"version-history":[{"count":2,"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":169,"href":"https:\/\/horrillo.eu\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions\/169"}],"wp:attachment":[{"href":"https:\/\/horrillo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/horrillo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/horrillo.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}