Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Nos enfocaremos en aumentar las particiones nvme1n1p1->vg_data-lv_data y NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
nvme1n1             259:0    0  140G  0 disk
└─nvme1n1p1         259:4    0   40G  0 part
  /var a 100GB y / a 40GB que a continuación se muestran en 19GB y 20GB respectivamente.

Code Block
NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
nvme1n1             259:0    0  140G  0 disk
└─nvme1n1p1         259:1    0  140G  0 part
  └─vg_data-lv_data 253:2    0

...

  140G  0 lvm  /data

...


nvme0n1             259:

...

2    0  140G  0 disk

...


├─nvme0n1p1         259:

...

3    0    1G  0 part /boot

...


└─nvme0n1p2         259:

...

4    0   39G  0 part

...


  ├─vg_nmis-lv_root 253:0    0   19G  0 lvm  /

...


  └─vg_nmis-var     253:1    0   20G  0 lvm  /var


  • Accedemos a la herramienta fdisk y eliminamos la partición 2 (sda2nvme0n1p2), que es la que vamos a redimensionar. Presionamos d (delete) para borrar y luego el número 2 (sda2) para seleccionar esa partición.
Code Block
[root@nmis9 ~]# fdisk /dev/

...

nvme0n1

Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Partition number (1,2, default 2): 2

Partition 2 has been deleted.


  • Agregamos una nueva partición con la letra n (new), seguido de la letra p (primary); en las siguientes dos opciones de los sectores simplemente damos Enter y en la última opción del signature, presionamos la tecla N (No).
Code Block
Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector : 
Last sector, +sectors or +size{K,M,G,T,P} :

Created a new partition 2 of type 'Linux' and of size 139 GiB.
Partition #2 contains a LVM2_member signature.

Do you want to remove the signature? [Y]es/[N]o: N