LVM

From braindump
Revision as of 02:59, 11 February 2011 by Uroesch (talk | contribs)
Jump to navigation Jump to search

Notes on LVM

  1. PV commands => working on physical disk
  2. VG commands => virtual groups
  3. LV commands => logical volumes

Test environment

DISK_DIR=/var/tmp/disks
mkdir -p ${DISK_DIR} &&
for i in 1 2 3 4 5; do
    dd if=/dev/zero of=${DISK_DIR}/disk${i} bs=100M count=1 &&
    losetup /dev/loop${i} ${DISK_DIR}/disk${i} &&
    pvcreate /dev/loop${i}
done