Create and Extend Logical Volumes Flashcards

1
Q

What command makes a partition in a single line for setting them to Linux LVM?

A

parted /dev/<device> mkpart <partition> <Starting> <Ending></Ending></Starting></partition></device>

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

What command sets a partition o Linux LVM type?

A

parted dev/<device> set <partition#> lvm on</device>

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

What command registers a new partition with the kernel?

A

udevadm settle

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

What command labels partitions as physical volumes?

A

pvcreate /dev/<partition></partition>

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

What command creates a volume group from a physical volume?

A

vgcreate <volume> /dev/<physical></physical></volume>

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

What command creates a logical volume with a specified size?

A

lvcreate -n <name> -L <Length/size> <Volume></Volume></name>

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

What command formats a logical volume with the XFS file system?

A

mkfs -t xfs /dev/<volume_group>/<logical_volume></logical_volume></volume_group>

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

What command views Physical Volume status information?

A

pvdisplay /dev/<physical_volume></physical_volume>

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

What command views the status of a Volume group?

A

vgdispaly <volume_group></volume_group>

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

What command displays logical volume information?

A

lvdisplay /dev/<volume_group/<logical_volume></logical_volume>

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

What command view the free disk space in human-readable units?

A

df -h /<mountpoint></mountpoint>

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

What command extends a volume group by using a physical volume?

A

vgextend <volume_group> /dev/<physical_volume></physical_volume></volume_group>

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

What command extends a logical volume a specified length?

A

lvextend -L 700M /dev/<volume_group/<logical_volume></logical_volume>

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

What command extends an XFS file system to use the free space on a logical volume?

A

xfs_growfs </mountpoint>

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