Changes

Jump to: navigation, search

Logical Volume Management

430 bytes added, 16:26, 10 February 2011
Reducing filesystem size
If a system is installed with all of the VG space in use, it will be necessary to add a PV or reduce the size of an LV in order to add any more LVs or to grow one of the existing LVs. '''It's therefore a much better idea to create small LVs initially, leaving some unused space in the VG which can be assigned as needed'''.
 
=== Adding a Physical Volume ===
 
To add a physical volume to the system:
# Add the disk (if not already attached) -- for this example, let's assume the disk is <code>/dev/sdb</code>
# Create a partition with <code>fdisk</code> - let's assume the partition is <code>/dev/sdb1</code>
# Format the partition: <code>pvcreate /dev/''sdb1''</code>
# Add the partition to your volume group: <code>vgextend vg_main /dev/''sdb1''</code>

Navigation menu