Lvm Flashcards

1
Q

Como se extiende un volume group

A

[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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Como se reduce un volume group

A

pvmove /dev/vdb3

vgreduce vg01 /dev/vdb3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como se extiende un logical volume

A

lvextend -L +300M /dev/vg01/lv01

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Como se extiende por segmentos un logical volume

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como se extiende un filesystem xfs

A

xfs_growfs /mnt/data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Extender filesystem ext4

A

lvextend -l +extents /dev/vgname/lvname

resize2fs /dev/vg01/lv01

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Extend swap

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Crear partición para Windows

A

Extender msdos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly