Partition and Align a SAN LUN for LVM

Published: Thu 19 September 2013
By admin

In Notes.

  1. parted /dev/emcpowerX mklabel <- Yes, gpt (interactive - bug in cmdline version)
  2. parted -s -- /dev/emcpowerX mkpart primary ext3 56s -1s
  3. parted /dev/emcpowerX set 1 lvm on
  4. parted /dev/emcpowerX unit s print
  5. pvcreate --metadatasize 250k /dev/emcpowerX1
  6. vgcreate vgsan00 /dev/emcpowerX1
  7. lvcreate -n lvsan00 -l 100%FREE vgsan00
  8. mkfs.ext3 -v -m1 /dev/vgsan00/lvsan00

blogroll

social