Other articles


  1. Resize LVM

    Published: Thu 19 September 2013
    By admin

    In Notes.

    lvextend -l +100%FREE  /dev/vgSan00/lvMysqlData

    resize2fs /dev/vgSan00/lvMysqlData
    resize2fs /dev/vgSan00/lvMysqlData 740G
    e2fsck -f /dev/vgSan00/lvMysqlData
    resize2fs /dev/vgSan00/lvMysqlData 740G
    lvreduce -L -30G /dev/vgSan00/lvMysqlData
    resize2fs /dev/vgSan00/lvMysqlData
    read more
  2. 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 ...
    read more
  3. Partition a LUN presented from a DAS

    Published: Thu 19 September 2013
    By admin

    In Notes.

    1\. Use multipath command to find the device:
    multipath -ll
    2\. Partition the LUN using fdisk
    fdisk /dev/mapper/mpathX
    3\. Create device map from the partition table
    kpartx -a /dev/mapper/mpathX
    read more
  4. Resize a Physical Disk

    Published: Thu 19 September 2013
    By admin

    In Notes.

    Sometimes this will save a reboot after resizing a physical partition with fdisk and partprobe doesn't cut it:

     echo 1 > /sys/class/scsi_device/<device>/device/rescan
    
    read more

blogroll

social