Site Tools


linux:general:lvm

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:general:lvm [2019/07/31 11:50] lunetikklinux:general:lvm [2020/11/16 17:39] (current) lunetikk
Line 159: Line 159:
 |  lvextend -L+5G /dev/data/backup  |  extend by 5GB  |\\ |  lvextend -L+5G /dev/data/backup  |  extend by 5GB  |\\
 |  lvextend -L 10G /dev/data/backup  |  extend to 10GB total  |\\ |  lvextend -L 10G /dev/data/backup  |  extend to 10GB total  |\\
 +|  lvcreate -L20G -n backuplv datavg  |  create LV with 20GB total  |\\
 +|  lvresize -r -L+5G /dev/data/backup  |  extend by 5GB and do resize2fs/ xfs_growfs  |\\
  
 === Useful links === === Useful links ===
Line 200: Line 202:
  
 <code>mount <PATH></code> <code>mount <PATH></code>
 +
 \\ \\
 +
 +=== New added disk doesnt appear in /proc/partitions ===
 +
 +__**Description**__
 +
 +After adding a new disk to your VM the disk doesnt appear in /proc/partition
 +
 +__**Reason**__
 +
 +The VM didnt rescan the scsi devices
 +
 +__**Fix**__
 +
 +Run the following command rescan the scsi hosts for new devices
 +<code>for host in /sys/class/scsi_host/*; do echo "- - -" | sudo tee $host/scan; lsblk -S ; done</code>
 +
 \\ \\
 ~~DISCUSSION:closed~~ ~~DISCUSSION:closed~~
linux/general/lvm.1564566633.txt.gz · Last modified: 2019/07/31 11:50 by lunetikk