Installation guide
LVM-based storage pools
217
A directory-based storage pool is now available.
26.1.4. LVM-based storage pools
This chapter covers using LVM volume groups as storage pools.
LVM-based storage groups provide flexibility of
Warning
LVM-based storage pools require a full disk partition. This partition will be formatted and all
data presently stored on the disk device will be erased. Back up the storage device before
commencing the procedure.
26.1.4.1. Creating an LVM-based storage pool with virt-manager
LVM-based storage pools can use existing LVM volume groups or create new LVM volume groups on
a blank partition.
1. Optional: Create new partition for LVM volumes
These steps describe how to create a new partition and LVM volume group on a new hard disk
drive.
Warning
This procedure will remove all data from the selected storage device.
a. Create a new partition
Use the fdisk command to create a new disk partition from the command line. The following
example creates a new partition that uses the entire disk on the storage device /dev/sdb.
# fdisk /dev/sdb
Command (m for help):
Press n for a new partition.
b. Press p for a primary partition.
Command action
e extended
p primary partition (1-4)
c. Choose an available partition number. In this example the first partition is chosen by entering
1.
Partition number (1-4): 1
d. Enter the default first cylinder by pressing Enter.
First cylinder (1-400, default 1):