484 bytes added ,  2 April 2018
→‎Volume group: width 50%
Line 52: Line 52:
! Command
! Command
|-
|-
| Create a volume group.
| style="width: 50%;" | Create a volume group.
| <code>vgcreate vg1 /dev/sdb1 /dev/sdc1</code>
| style="width: 50%;" | <code>vgcreate vg1 /dev/sdb1 /dev/sdc1</code>
|-
|-
| Add a physical volume to a volume group.
| style="width: 50%;" | Add a physical volume to a volume group.
| <code>vgextend vg1 /dev/sdd1</code>
| style="width: 50%;" | <code>vgextend vg1 /dev/sdd1</code>
|-
|-
| Display volume group.
| style="width: 50%;" | Display volume group.
| <code>vgdisplay new_vg</code>
| style="width: 50%;" | <code>vgdisplay new_vg</code>
|-
|-
| Scan disks for volume groups.
| style="width: 50%;" | Scan disks for volume groups.
| <code>vgscan</code>
| style="width: 50%;" | <code>vgscan</code>
|-
|-
| Remove a physical volume from a volume group.
| style="width: 50%;" | Remove a physical volume from a volume group.
| <code>vgreduce group_name /dev/sdc1</code>
| style="width: 50%;" | <code>vgreduce group_name /dev/sdc1</code>
|-
|-
| 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.
| <code>vgchange -l 128 /dev/vg00</code>
| style="width: 50%;" | <code>vgchange -l 128 /dev/vg00</code>
|-
|-
| Activate or deactivate a volume group.
| style="width: 50%;" | Activate or deactivate a volume group.
| <code>vgchange -a n my_volume_group</code>
| style="width: 50%;" | <code>vgchange -a n my_volume_group</code>
|-
|-
| Remove a volume group.
| style="width: 50%;" | Remove a volume group.
| <code>vgremove officevg</code>
| style="width: 50%;" | <code>vgremove officevg</code>
|-
|-
| 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.
| <code>$ vgsplit bigvg smallvg /dev/ram15<br>Volume group "smallvg" successfully split from "bigvg"</code>
| style="width: 50%;" | <code>$ vgsplit bigvg smallvg /dev/ram15<br>Volume group "smallvg" successfully split from "bigvg"</code>
|-
|-
| 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.
| <code>vgmerge -v databases my_vg</code>
| style="width: 50%;" | <code>vgmerge -v databases my_vg</code>
|-
|-
| Change the name of a volume group.
| style="width: 50%;" | Change the name of a volume group.
| <code>vgrename vg02 my_volume_group</code>
| style="width: 50%;" | <code>vgrename vg02 my_volume_group</code>
|}
|}