chuleta_lvm
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| chuleta_lvm [2018/03/21 10:05] – creado etfiat | chuleta_lvm [2023/04/26 11:12] (current) – etfiat | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| lvmdiskscan | lvmdiskscan | ||
| lvs | lvs | ||
| + | #crear volumen físico | ||
| pvcreate /dev/sdb | pvcreate /dev/sdb | ||
| + | #asignar volumen físico a grupo de volúmenes | ||
| vgcreate vg_datos /dev/sdb | vgcreate vg_datos /dev/sdb | ||
| + | |||
| vgs | vgs | ||
| + | # | ||
| lvcreate -l100%FREE vg_datos -n lv_upload | lvcreate -l100%FREE vg_datos -n lv_upload | ||
| lvs | lvs | ||
| Line 11: | Line 15: | ||
| mkdir mnt | mkdir mnt | ||
| mount / | mount / | ||
| + | |||
| + | |||
| + | |||
| + | #Borrar vg | ||
| + | vgremove | ||
| + | |||
| + | Do you really want to remove volume group " | ||
| + | Do you really want to remove active logical volume ceph-010c4622-2dd1-44d7-bc93-8fd6ef7bf411/ | ||
| + | Logical volume " | ||
| + | Volume group " | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | #Borrar pv | ||
| + | | ||
| + | Labels on physical volume "/ | ||
| + | |||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | < | ||
| + | #Estirar pv | ||
| + | pvresize /dev/sdx | ||
| + | |||
| + | #estirar lv | ||
| + | |||
| + | lvextend -r -l +100%FREE / | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
chuleta_lvm.1521626758.txt.gz · Last modified: by etfiat
