3-2 Create and Remove PV, Assign PVs to Vs and Create and Delete LVs Flashcards

1
Q

after partitioning (picking linux lvm partition in gpt if using for lvm)

pvcreate /dev/xvda

A

after partioning

creates physical volume

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

pvdisplay

A

Show available physical volumes

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

Which filesystems can extend and/or reduce?

xfs

ext4

A

xfs can increase and cant reduce?

ext can both increase and decrease

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

vgcreate newvgname /dev/disks

A

Create volume group and add /dev/disks to it

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

vgdisplay

A

Show available volume groups

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

lvcreate -n newlogicalvolume1 -L 100M VGname

lvcreate -n newlogicalvolume2 -L 400M VGname

afterwards

mkfs -t xfs /dev/VGname/newlogicalvolume1

mount /dev/VGname/newlogicalvolume1 /mnt/newdir

A

Create logical volume

  • n • Volume name
  • L • Size in bytes (1M, 1G, etc)
  • l (lowercase l) size in extents (ex if PE size was 4 mb, then -l 2 means 8mb)

One volume group can have more than one LVM using diff amounts of it assigned when making LVM

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

lvdisplay

A

Display logical volumes

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

lvremove /dev/vgroup/lvolume

A

Remove logical volume

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

pvremove /dev/disk

A

Remove physical volume

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

vgremove /dev/vgroup

A

remove volume group

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

partition with fdisk or gdisk

initialize partitions or new device (as whole) as physical volumes, with pvcreate /dev/xvda

make volume group, vgcreate

add physical volumes together into volume groups

make lvm on volume groups

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

how to add to a volume group that already exists

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

vgdisplay

PE Size: Number

A

size of physical extents in volume group

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