LVM

From braindump
Revision as of 02:57, 11 February 2011 by Uroesch (talk | contribs) (Created page with "Notes on LVM # PV commands => working on physical disk # VG commands => virtual groups # LV commands => logical volumes Test environment DISK_DIR=/var/tmp/disks mkdir -p ${DI...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ${DISK_DIR}/disk${i} &&
done