4,461
edits
→File: add a User section |
|||
Line 55: | Line 55: | ||
! Command | ! Command | ||
|- | |- | ||
| style="width: 50%;" | Create a volume group. | | style="width: 50%;" class="cli" | Create a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgcreate vg1 /dev/sdb1 /dev/sdc1 | ||
|- | |- | ||
| style="width: 50%;" | Add a physical volume to a volume group. | | style="width: 50%;" class="cli" | Add a physical volume to a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgextend vg1 /dev/sdd1 | ||
|- | |- | ||
| style="width: 50%;" | Display volume group. | | style="width: 50%;" class="cli" | Display volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgdisplay new_vg | ||
|- | |- | ||
| style="width: 50%;" | Scan disks for volume groups. | | style="width: 50%;" | Scan disks for volume groups. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgscan | ||
|- | |- | ||
| style="width: 50%;" | Remove a physical volume from a volume group. | | style="width: 50%;" | Remove a physical volume from a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgreduce group_name /dev/sdc1 | ||
|- | |- | ||
| style="width: 50%;" | Change the maximum number of logical volumes of volume group vg00 to 128. | | style="width: 50%;" | Change the maximum number of logical volumes of volume group vg00 to 128. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgchange -l 128 /dev/vg00 | ||
|- | |- | ||
| style="width: 50%;" | Activate or deactivate a volume group. | | style="width: 50%;" | Activate or deactivate a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgchange -a n my_volume_group | ||
|- | |- | ||
| style="width: 50%;" | Remove a volume group. | | style="width: 50%;" | Remove a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgremove officevg | ||
|- | |- | ||
| style="width: 50%;" | Split the physical volumes of a volume group and create a new volume group. | | style="width: 50%;" | Split the physical volumes of a volume group and create a new volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | $ vgsplit bigvg smallvg /dev/ram15<br>Volume group "smallvg" successfully split from "bigvg" | ||
|- | |- | ||
| style="width: 50%;" | Merge the inactive volume group my_vg into the active or inactive volume group databases giving verbose runtime information. | | style="width: 50%;" | Merge the inactive volume group my_vg into the active or inactive volume group databases giving verbose runtime information. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgmerge -v databases my_vg | ||
|- | |- | ||
| style="width: 50%;" | Change the name of a volume group. | | style="width: 50%;" | Change the name of a volume group. | ||
| style="width: 50%;" | | | style="width: 50%;" class="cli" | vgrename vg02 my_volume_group | ||
|} | |} | ||