Sometimes infrastructure servers are physical and directly connected to storage and not virtual ones. In virtualization cases, one has to assign a new virtual disk on the virtual server and proceed with the expand. In case of a physical server one should do the following in order to assign more space on a partition or a lvm.
Find storage adapters and rescan them:
1 |
ls /sys/class/scsi_host/ |

1 |
echo "- - -" > /sys/class/scsi_host/hostX/scan |
where X is 0 to 10 in my system (some online and some offline)
After re scanning storage adapters a new multipath device will be visible and ready to be used.
1 |
multipath -ll |

Initialize your disk and use it appropriately.
1 |
pvcreate /dev/mapper/mpathm |