Linux: Difference between revisions

Jump to navigation Jump to search
7 bytes removed ,  3 April 2018
Line 28: Line 28:
|-
|-
| style="width: 50%;" | Initialize for use as LVM physical volume.
| style="width: 50%;" | Initialize for use as LVM physical volume.
| style="width: 50%;" | <code>pvcreate /dev/sdb1</code>
| style="width: 50%;" class="cli" | pvcreate /dev/sdb1
|-
|-
| style="width: 50%;" | Scanning for block devices.
| style="width: 50%;" | Scanning for block devices.
| style="width: 50%;" | <code>lvmdiskscan</code>
| style="width: 50%;" class="cli" | lvmdiskscan
|-
|-
| style="width: 50%;" | Display the physical volumes.
| style="width: 50%;" | Display the physical volumes.
| style="width: 50%;" | <code>pvdisplay</code>
| style="width: 50%;" class="cli" | pvdisplay
|-
|-
| style="width: 50%;" | Show all physical devices.
| style="width: 50%;" | Show all physical devices.
| style="width: 50%;" | <code>pvscan</code>
| style="width: 50%;" class="cli" | pvscan
|-
|-
| style="width: 50%;" | Prevent allocation of physical extents on the free space of one or more physical volumes.
| style="width: 50%;" | Prevent allocation of physical extents on the free space of one or more physical volumes.
| style="width: 50%;" | <code>pvchange -x n /dev/sdb1</code>
| style="width: 50%;" class="cli" | pvchange -x n /dev/sdb1
|-
|-
| style="width: 50%;" | Resize.
| style="width: 50%;" | Resize.
| style="width: 50%;" | <code>pvresize</code>
| style="width: 50%;" class="cli" | pvresize
|-
|-
| style="width: 50%;" | Remove LVM label.
| style="width: 50%;" | Remove LVM label.
| style="width: 50%;" | <code>pvremove</code>
| style="width: 50%;" class="cli" | pvremove
|}
|}


Navigation menu