Logical Volume Management Flashcards
1
Q
What steps are needed to create a usable logical volume?
A
- Prepare the physical device(s); create an LVM partition
]# fdisk /dev/sdb
]# partprobe /dev/sdb - Create a physical volume
]# pvcreate /dev/sdb1 /dev/sdb2 - Create a volume group
]# vgcreate vg-alpha /dev/sdb1 /dev/sdb2 - Create a logical volume
]# lvcreate -n Hercules -L 2G vg-alpha - Add the file system
]# mkfs.xfs /dev/vg-alpha/Hercules
]# mkdir /mnt/Hercules
]# echo (mount directives)»_space; /etc/fstab
]# mount -a
2
Q
What command is used to create a physical volume for LVM?
A
■ pvcreate
3
Q
What command is used to create a volume group for LVM?
A
■ vgcreate
4
Q
What command is used to create a logical volume for LVM?
A
■ lvcreate
5
Q
What is the command theme for LVM?
A
■ create/remove/display
■ pvcreate/pvremove/pvdisplay
■ vgcreate/vgremove/vgdisplay
■ lvcreate/lvremove/lvdisplay