This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
linux:general:lvm [2019/04/16 16:21] – lunetikk | linux:general:lvm [2019/10/23 17:50] – 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 168: | Line 171: | ||
=== Cant mount a logical volume === | === Cant mount a logical volume === | ||
- | == Description | + | __**Description**__ |
Mounting the device leads to the following error | Mounting the device leads to the following error | ||
Line 181: | Line 184: | ||
</ | </ | ||
- | == Reason | + | __**Reason**__ |
Its deactivated. | Its deactivated. | ||
Line 191: | Line 194: | ||
</ | </ | ||
- | == Fix == | + | __**Fix**__ |
Run the following command to activate it | Run the following command to activate it |