Lvm Flashcards
Como se extiende un volume group
[root@host ~]# parted -s /dev/vdb mkpart primary 1027MiB 1539MiB
[root@host ~]# parted -s /dev/vdb set 3 lvm on
[root@host ~]# pvcreate /dev/vdb3
vgextend vg01 /dev/vdb3
vgdisplay vg01
Como se reduce un volume group
pvmove /dev/vdb3
vgreduce vg01 /dev/vdb3
Como se extiende un logical volume
lvextend -L +300M /dev/vg01/lv01
Como se extiende por segmentos un logical volume
lvextend -l 128
Resize the logical volume to exactly 128 extents in size.
lvextend -l +128
Add 128 extents to the current size of the logical volume.
lvextend -L 128M
Resize the logical volume to exactly 128 MiB.
lvextend -L +128M
Add 128 MiB to the current size of the logical volume.
lvextend -l +50%FREE
Add 50 percent of the current free space in the VG to the LV.
Como se extiende un filesystem xfs
xfs_growfs /mnt/data
Extender filesystem ext4
lvextend -l +extents /dev/vgname/lvname
resize2fs /dev/vg01/lv01
Extend swap
lvextend -l +extents /dev/vgname/lvname
lvextend -l +extents /dev/vgname/lvname extends the logical volume /dev/vgname/lvname by the extents value.
Format the logical volume as swap space.
mkswap /dev/vgname/lvname formats the entire logical volume as swap space.
Activate the swap space.
Use swapon -va /dev/vgname/lvname to
Crear partición para Windows
Extender msdos