
Sé que esta pregunta puede ser de naturaleza muy elemental, así que si alguien puede mostrarme una guía para hacerlo y cree que este hilo es repetitivo, edítelo según le convenga. Descubrí que en mi sistema Redhat, está /home
montado en un LVM con un sistema de archivos xfs en /dev/mapper/rhel_home/
una partición de aproximadamente 200 GB de tamaño. El problema ahora es que quiero separar esta partición en 4 particiones grandes de 50 GB y montarla /home
en una de ellas y montar algún otro directorio en las otras particiones. ¿Cómo voy a hacer eso? No puedo usarlo gparted
, así que preferiría hacerlo a través del shell.
Aquí está el resultado del comando:
[root@localhost ~]# vgdisplay -v
Using volume group(s) on command line.
--- Volume group ---
VG Name rhel
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 3
Max PV 0
Cur PV 1
Act PV 1
VG Size 232.34 GiB
PE Size 4.00 MiB
Total PE 59479
Alloc PE / Size 59463 / 232.28 GiB
Free PE / Size 16 / 64.00 MiB
VG UUID 400oqQ-ClvP-Vdmi-D8Nh-ib4t-Knhs-fAhPjP
--- Logical volume ---
LV Path /dev/rhel/swap
LV Name swap
VG Name rhel
LV UUID b9IZNi-zMmG-angt-slI7-WYIg-0pJZ-bOARHT
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2016-09-21 09:58:47 -0700
LV Status available
# open 2
LV Size 15.75 GiB
Current LE 4032
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
--- Logical volume ---
LV Path /dev/rhel/home
LV Name home
VG Name rhel
LV UUID LoxHKf-atFU-Q246-cfMq-3ToY-o0jX-POnZg0
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2016-09-21 09:58:48 -0700
LV Status available
# open 1
LV Size 166.53 GiB
Current LE 42631
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:2
--- Logical volume ---
LV Path /dev/rhel/root
LV Name root
VG Name rhel
LV UUID eQdCo3-fPr0-Nh0y-8HAy-VBEE-uZyr-3qBsSs
LV Write Access read/write
LV Creation host, time localhost.localdomain, 2016-09-21 09:58:50 -0700
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
--- Physical volumes ---
PV Name /dev/sda2
PV UUID JGq039-2zfz-RJms-UI20-xVM9-R0xZ-LfRQ7S
PV Status allocatable
Total PE / Free PE 59479 / 16
Respuesta1
No hay manera dedividirel volumen lógico (LV) /dev/mapper/rhel_home
. Podrías reducirlo a 50G y luego crear otros 3 LV (cada uno de 50G).
Pero antes de reducir el LV original, necesitaría reducir su sistema de archivos. Esto esno es posible con XFS. Si todavía tiene espacio no utilizado en su grupo de volúmenes (VG), simplemente puede agregar un nuevo LV, copiar archivos al nuevo LV y eliminar el original.
Verifique la salida de vgdisplay
espacio no utilizado (PE libre). De lo contrario, deberá agregar otro HD temporalmente para realizar su tarea.