Saltar al contenido principal
Soporte
0
Contacta con nosotros
English
Nederlands
Deutsch
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareers
Cloud Compute

Con Cloud Compute, tendrás acceso a un portal desde el que podrás configurar todo tu entorno informático en cualquier momento y desde cualquier lugar del mundo.

Almacenamiento en la nube

Acceso fiable a tus archivos, infraestructura y aplicaciones en todo momento, sin interrupciones ni retrasos. En Worldstream, ofrecemos una gran variedad de soluciones de almacenamiento.

Flexible cloud icon
Nube flexible
Private cloud icon
Nube privada
Bare metal icon
Bare Metal Compute
Hollow cube icon
Almacenamiento de objetos
Hollow cube icon
Almacenamiento de archivos
Block storage icon
Almacenamiento en bloque
Backup storage icon
Almacenamiento de copias de seguridad
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Soporte
Todos los servidores

Elige tu servidor dedicado ahora. Configuración personalizada o entrega inmediata. Servidores potentes diseñados para tu caso de uso.

Casos de uso

Sea cual sea tu caso de uso, te ayudamos a encontrar la solución adecuada.

Deal servers icon
Ofertas
AMD servers icon
Servidores AMD
AI servers icon
Servidores Intel
Hollow cube icon
Virtualización, Contenerización y Orquestación
Hollow cube icon
Sitios web y aplicaciones
Hollow cube icon
Infraestructura para gaming y streaming

Soporte 24/7/365 con un tiempo medio de respuesta de solo 7 minutos. Gracias a nuestros propios centros de datos, nuestros ingenieros pueden acceder directamente a tu servidor para ofrecer soporte rápido y directo. Contáctanos por correo o teléfono en cualquier momento.

Soporte
Externalización inteligente

Algunos aspectos de la TI crean valor añadido, mientras que otros sirven de apoyo. Aprovéchalo como punto de partida para la externalización.

Rentabilidad

Los paquetes informáticos completos pueden parecer la opción segura, pero al considerar los costes, otras opciones suelen tener más sentido.

Flexibilidad y control informáticos

Externalizar no implica perder el control; en realidad proporciona más flexibilidad y control.

Repatriación desde la nube

La nube no es el destino final: debes evaluar y ajustar tu entorno de nube continuamente a medida que cambian las necesidades.

Servicios financieros
Logística y transporte
Venta minorista y comercio electrónico
Medios de comunicación y entretenimiento
Tecnología y desarrollo de software
Seguridad
Proveedores de servicios gestionados
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Habla con nosotrosContacta con nosotros
Acerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientos
Quiénes somosConoce al equipoTrabaja con nosotrosHazte distribuidorcertificacionesNuestros centros de datosNuestra redProtección DDoSServidores AMD EPYCPartners tecnológicosAcerca de los servidores dedicadosTodos los casosEasyTerraDutch Drone CompanyPerfGridArtículosPreguntas frecuentesNoticias y blogsProductos y servicios
Contacta con nosotros

Llama al +31 (0) 174 – 712 117 Industriestraat 53, Naaldwijk

Contacta con nosotros
Worldstream Portal
English
Nederlands
Deutsch
0
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareersAcerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientosMy Worldstream
Contact
Soporte
EnglishNederlandsDeutsch
  1. InicioInicio
  2. Base de conocimientos
  3. Dedicated Servers
  4. LVM basics: managing and recovering logical volumes

LVM basics: managing and recovering logical volumes

Se aplica a Dedicated Servers, Bare Metal Compute (Linux)Audiencia Server administratorsÚltima revisión September 2026

Respuesta rápida

LVM (Logical Volume Manager) sits between your raw disks and your filesystems. Physical disks become physical volumes, physical volumes are pooled into a volume group, and the volume group is carved into logical volumes that you actually format and mount. Inspect the stack with pvs, vgs and lvs. If a volume group doesn't show up after booting into a rescue environment, it usually just needs activating: run vgscan followed by vgchange -ay.

En esta página
  • The LVM stack, layer by layer
  • Why bother with LVM
  • Inspecting the stack
  • Recovering a volume group that isn't showing up

The LVM stack, layer by layer

LVM adds a layer of abstraction between physical storage and the filesystems you actually use. Instead of formatting a partition directly, you build the stack in three steps:

  • Physical volume (PV). A disk or partition initialised for use by LVM. This is the raw material.
  • Volume group (VG). A pool made up of one or more physical volumes. Capacity from every physical volume in the group is combined into one pool of space.
  • Logical volume (LV). A chunk of space carved out of a volume group. A logical volume is what you format with a filesystem and mount, in the same way you'd otherwise mount a plain partition.

The chain runs one way: physical volumes make up a volume group, and a volume group is divided into logical volumes. Nothing above the volume group cares which physical disk a given block actually lives on, that indirection is the whole point.

Why bother with LVM

A plain partition is fixed the moment it's created: its size, and which physical disk it lives on, are both set in stone unless you repartition. LVM removes both constraints:

  • Resize without repartitioning. As long as a volume group has free space, a logical volume can be grown (and, depending on the filesystem, shrunk) without touching partition tables at all.
  • Span multiple physical disks. A volume group can pool space from several physical volumes, so a logical volume can be larger than any single underlying disk.
  • Snapshot a volume. LVM can take a point-in-time snapshot of a logical volume, useful for taking a consistent backup of a volume that's still being written to, or for having a rollback point before a risky change.

The trade-off is an extra layer to reason about when something goes wrong, which is exactly the recovery scenario covered below.

Inspecting the stack

Each layer has a short summary command and a detailed one. Start with the summary commands to get your bearings:

LayerSummary commandDetail command
Physical volumespvspvdisplay
Volume groupsvgsvgdisplay
Logical volumeslvslvdisplay

The summary commands (pvs, vgs, lvs) list one line per item, which is usually enough to see what exists and how much space is used or free. The *display commands print a full attribute block per item, useful when you need specifics like a volume group's exact extent size or a logical volume's full device path.

Recovering a volume group that isn't showing up

A common situation after booting into a rescue environment (see What is rescue mode, and when do you need it): the server's normal disks are visible at the block-device level, but vgs or lvs comes back empty, or the volume group you expect just isn't listed. This is expected, not necessarily a sign of corruption. Rescue mode boots a separate, minimal environment that doesn't automatically know about or activate a volume group living on another disk, in the same way it doesn't automatically assemble a software RAID array or unlock encrypted storage.

1

Scan for volume groups

vgscan reads the physical volumes it can see and rebuilds LVM's knowledge of what volume groups exist on them:

vgscan
2

Activate the volume group

Scanning makes the volume group visible but not necessarily active. Activate every volume group vgscan found:

vgchange -ay

To activate a single named volume group instead of all of them, pass its name:

vgchange -ay vg_data
3

Confirm and mount

Run lvs again to confirm the logical volumes are now visible, then mount the one you need as you would any other block device. See Mounting a disk in Linux for that step.

lvs
mount /dev/vg_data/lv_data /mnt/recovery

If the volume group still doesn't appear after vgscan, check that the underlying physical volumes are actually visible with pvs first. A volume group can only be found if every physical volume it depends on is reachable, a disk that failed to come up, or a RAID array that hasn't been assembled yet, will keep the volume group hidden regardless of how many times you scan.

Related articles

  • What is rescue mode, and when do you need it
  • Mounting a disk in Linux
  • RAID levels explained: RAID 1 vs. RAID 5 vs. RAID 10
  • Checking and repairing a Linux filesystem with fsck
¿Te ha resultado útil este artículo?

Informática sólida. Sin sorpresas

Tu socio para la madurez informática
Eliminamos barreras para que puedas correr
Costes previsibles y transparentes

Contacto

  • Industriestraat 53, Naaldwijk
Contacta con nosotros
Worldstream Portal (opens in a new tab)
  • Métodos de pago
  • Abuso
  • Recursos para desarrolladores
  • Centro de operaciones de red
  • Quiénes somos
  • Conoce al equipo
  • Trabaja con nosotros
  • Hazte distribuidor
  • certificaciones
  • Nuestros centros de datos
  • Nuestra red
  • Protección DDoS
  • Servidores AMD EPYC
  • Partners tecnológicos
  • Sistemas operativos
  • Vista general
  • Preguntas frecuentes
  • Casos
  • Noticias y blogs
  • Use Cases
English
Nederlands
Deutsch
English
Nederlands
Deutsch
  • Legal
  • Notificación de vulnerabilidades