quickreference:lvm2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| quickreference:lvm2 [2020/10/30 01:00] – rodolico | quickreference:lvm2 [2024/12/07 13:36] (current) – [Too Much Information] rodolico | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| <code python> | <code python> | ||
| + | # only check RAID volumes (/dev/md0), ignore everything else | ||
| filter=[ " | filter=[ " | ||
| + | # only check /dev/sda, nothing else | ||
| + | filter = [ " | ||
| + | # Finally, accept sda, sdb, any md, then ignore anything else | ||
| + | filter = [ " | ||
| + | </ | ||
| + | |||
| + | To determine which drives are actually local, you can use the **mount** command. For example: | ||
| + | <code bash> | ||
| + | mount | grep ' | ||
| + | </ | ||
| + | will show all mounted drives which are local, ignoring nfs, tmpfs, etc... | ||
| + | |||
| + | After making the change, rescan LVM with one of the following commands | ||
| + | <code bash> | ||
| + | # yes, start, not reload, not restart, start | ||
| + | vgscan | ||
| + | # OR | ||
| + | service lvm2 start | ||
| + | # OR | ||
| + | lvm vgchange -aay --sysinit | ||
| </ | </ | ||
| Line 132: | Line 153: | ||
| - If you had no problems and want the machine in the new state permanently, | - If you had no problems and want the machine in the new state permanently, | ||
| - be sure you don't delete the wrong one, that is why I precede snapshots with " | - be sure you don't delete the wrong one, that is why I precede snapshots with " | ||
| - | - Please note: running an LV with a snapshot decreases efficiency. | + | - Please note: running an LV with a snapshot decreases efficiency. |
quickreference/lvm2.1604037618.txt.gz · Last modified: 2020/10/30 01:00 by rodolico
