Tools and advanced techniques how works with multipaths on storage.
scsitools
multipath-tools
If you want to check status of multipath connected to server use command multipath -ll
. For rescan connection you can use rescan-scsi-bus
.
fdisk -l multipath -ll
fdisk -l /dev/mapper/3600000e00d2800000028213000000000
pvcreate /dev/mapper/3600000e00d2800000028213000000000p1
you can use pvscan
to check statusvgcreate vol_instance /dev/disk/by-id/dm-name-3600000e00d2800000028213000000000p1
you can use vgs
to check statuslvcreate -L 1T -n images vol_instance
lvcreate -l 100%FREE -n yourlv testvg
you can use lvs
check status lvmmkfs.ext4 /dev/mapper/vol_instance-images
file systemmount /dev/mapper/vol_instance-images /var/lib/libvirt/images/
Dont forget to add fstab (/etc/fstab
)!!!
for example /dev/mapper/vol_cmp02-cmp /var/lib/nova/instances ext4 defaults 0 0
http://www.solutionsatexperts.com/how-to-reduce-lvm-partition-size/