Working With LVM In Linux

Creating a new volume group, adding a disk to it and making it usable Scan HBA for new LUN’s: #echo ‘- – -‘ > /sys/class/scsi_host/hostX/scan #fdisk /dev/sda5 (or /dev/mapper/mpathx if multipathing) … create new partition, type lvm (8e), write changes to disk #partprobe #pvscan #pvdisplay #kpartx -a /dev/mapper/mpathX if it’s a multipathed device using dm-mulipath,…