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
  5. PHP Memory Usage

    PHP memory utilization is always an issue with web applications. As of version 5.2.0 there are two useful functions available to help determine application memory usage.

    The functions are memory_get_peak_usage() and memory_get_usage().  The documentation is rather sparse but the usage of the functions is simple and straightforward.  The ...

    read more
  6. Plesk PCI Compliance

    PCI Compliance Scans are becoming more and more common as more credit card processors require them. Most of the scans use a tool like Nessus and the scan results often contain many false positives. For example, the scans do not take into account practices such as back porting security fixes ...

    read more

blogroll

social