Linux Storage Management Flashcards

1
Q

How do you list the block devices?

A

lsblk

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

What are the layers of lvm2, describe them?

A

Physical volumes - Actual physical storage, disks, partitions and raw files
Volume groups - Aggregates physical volumes
Logical volumes - Dev mapper devices which are formatted and presented to the consumer as a block device

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

What is a dev-mapper?

A

A dev-mapper is a framework for mapping physical block devices onto virtual ones. They work by passing data from the virtual block devices onto the physical ones.

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

What command allows you to create a file storage?

A

fallocate -l 500M /tmp/file1

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

For each of the lvm layers what commands do you use to list, create and remove entities?

A

physical volume - pvcreate, pvremove, pvs
volume group - vgcreate, vgremove, vgs
logical volume - lvcreate, lvremove, lvs

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

How to you attatch a file to a loop device to be used as block storage?

A

losetup -f /path/to/file

The -f option allocates the file to the next available loop device

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