Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:cmd:lvm [2021/08/24 11:35] jslinux:cmd:lvm [2022/12/21 09:21] (current) js
Line 26: Line 26:
  
 === resize physical volume === === resize physical volume ===
 +You can use gparted live ios - do the partition magic .... and after that, resize the logical volume and extent the filesystem.
 +
 Rescan Host: Rescan Host:
 <code bash>[root@centos ~]# echo "- - -" >/sys/class/scsi_host/host0/scan</code> <code bash>[root@centos ~]# echo "- - -" >/sys/class/scsi_host/host0/scan</code>
Line 42: Line 44:
 /dev/sda2        411648   8800255   8388608    4G 82 Linux swap / Solaris /dev/sda2        411648   8800255   8388608    4G 82 Linux swap / Solaris
 /dev/sda3       8800256 209715199 200914944 95.8G 8e Linux LVM</code> /dev/sda3       8800256 209715199 200914944 95.8G 8e Linux LVM</code>
 +
 +or user cfdisk / parted:
 +<code bash>cfdisk</code>
 +
 +Get MB of free space:
 +<code bash>parted</code>
 +<code>unit MB</code>
 +<code>print</code>
 +Get the size of the disk in MB
 +<code bash>parted /dev/sda resizepart 2</code>
 +Enter size in MB - e.g. 24242MB
  
 resize resize