This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:general:lvm [2019/05/06 14:15] – lunetikk | linux:general:lvm [2020/11/16 17:39] (current) – lunetikk | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| < | < | ||
| pvcreate /dev/sdb1 | pvcreate /dev/sdb1 | ||
| - | vgcreate | + | vgcreate |
| lvcreate -l 100%FREE -n backuplv datavg | lvcreate -l 100%FREE -n backuplv datavg | ||
| mkfs.ext3 -Lbackup / | mkfs.ext3 -Lbackup / | ||
| Line 156: | Line 156: | ||
| | lvdisplay | | lvdisplay | ||
| | vgchange -ay < | | vgchange -ay < | ||
| + | | vgextend datavg / | ||
| | lvextend -L+5G / | | lvextend -L+5G / | ||
| | lvextend -L 10G / | | lvextend -L 10G / | ||
| + | | lvcreate -L20G -n backuplv datavg | ||
| + | | lvresize -r -L+5G / | ||
| === Useful links === | === Useful links === | ||
| Line 199: | Line 202: | ||
| < | < | ||
| + | |||
| \\ | \\ | ||
| + | |||
| + | === New added disk doesnt appear in / | ||
| + | |||
| + | __**Description**__ | ||
| + | |||
| + | After adding a new disk to your VM the disk doesnt appear in / | ||
| + | |||
| + | __**Reason**__ | ||
| + | |||
| + | The VM didnt rescan the scsi devices | ||
| + | |||
| + | __**Fix**__ | ||
| + | |||
| + | Run the following command rescan the scsi hosts for new devices | ||
| + | < | ||
| + | |||
| \\ | \\ | ||
| ~~DISCUSSION: | ~~DISCUSSION: | ||