Filesystem operations (rescan- create- resize- xfs)
Disks
Rescan existing disks:
echo 1 > /sys/class/scsi_device/1\:0\:1\:0/device/rescan
Check new disk:
fdisk -l /dev/sdb
Quick new disk
Create new disk of physical volume if you see it with ‘fdisk -l’
pvcreate /dev/sdb
Extend existing volume group with new disk
vgextend rl /dev/sdb
Extend existing logical volume to the max
lvextend -l +100%FREE /dev/rl/root
Grow existing files system
xfs_growfs /dev/rl/root
Volumes
Physical / Logical Volumes
Create physical volumepvcreate /dev/sda3 Physical volume "/dev/sda3" successfully created.Resize physical volume (e.g. extended in VMware)
pvresize /dev/sdb
pvdisplayExtend physical volume group
vgextend centos /dev/sda3 Volume group "centos" successfully extended​
vgdisplayExtend logical volume
in G'igs
lvextend -L +8G /dev/system/volumeor full (using everything)
lvextend -l 100%FREE /dev/mapper/volumeGrow filesystem
xfs_growfs /dev/system/volumeCreate new logical volume
mkfs.xfs /dev/centos/volumesee: CentOS New Partition on existing disk