Logical Volume Management Flashcards

1
Q

What steps are needed to create a usable logical volume?

A
  1. Prepare the physical device(s); create an LVM partition
    ]# fdisk /dev/sdb
    ]# partprobe /dev/sdb
  2. Create a physical volume
    ]# pvcreate /dev/sdb1 /dev/sdb2
  3. Create a volume group
    ]# vgcreate vg-alpha /dev/sdb1 /dev/sdb2
  4. Create a logical volume
    ]# lvcreate -n Hercules -L 2G vg-alpha
  5. Add the file system
    ]# mkfs.xfs /dev/vg-alpha/Hercules
    ]# mkdir /mnt/Hercules
    ]# echo (mount directives)&raquo_space; /etc/fstab
    ]# mount -a
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command is used to create a physical volume for LVM?

A

■ pvcreate

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

What command is used to create a volume group for LVM?

A

■ vgcreate

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

What command is used to create a logical volume for LVM?

A

■ lvcreate

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

What is the command theme for LVM?

A

■ create/remove/display
■ pvcreate/pvremove/pvdisplay
■ vgcreate/vgremove/vgdisplay
■ lvcreate/lvremove/lvdisplay

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