4,461
edits
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%;" | | | 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%;" | | | style="width: 50%;" class="cli" | lvmdiskscan | ||
|- | |- | ||
| style="width: 50%;" | Display the physical volumes. | | style="width: 50%;" | Display the physical volumes. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | pvdisplay | ||
|- | |- | ||
| style="width: 50%;" | Show all physical devices. | | style="width: 50%;" | Show all physical devices. | ||
| style="width: 50%;" | | | 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%;" | | | style="width: 50%;" class="cli" | pvchange -x n /dev/sdb1 | ||
|- | |- | ||
| style="width: 50%;" | Resize. | | style="width: 50%;" | Resize. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | pvresize | ||
|- | |- | ||
| style="width: 50%;" | Remove LVM label. | | style="width: 50%;" | Remove LVM label. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | pvremove | ||
|} | |} | ||