vg_activate
Description:
[ Version ( since = "1.0.26" ) ]
public bool vg_activate (bool activate, string[] volgroups) throws Error
public bool vg_activate (bool activate, string[] volgroups) throws Error
activate or deactivate some volume groups
This command activates or (if activate
is false) deactivates all logical volumes in the listed volume groups volgroups
.
This command is the same as running "vgchange -a y|n volgroups..."
Note that if volgroups
is an empty list then all volume groups are activated or deactivated.
This function depends on the feature "lvm2". See also feature_available.
Parameters:
this |
A GuestfsSession object |
volgroups |
an array of strings |
Returns:
true on success, false on error |