lvm_scan


Description:

[ Version ( since = "1.39.8" ) ]
public bool lvm_scan (bool activate) throws Error

scan for LVM physical volumes, volume groups and logical volumes

This scans all block devices and rebuilds the list of LVM physical volumes, volume groups and logical volumes.

If the activate parameter is true then newly found volume groups and logical volumes are activated, meaning the LV /dev/VG/LV devices become visible.

When a libguestfs handle is launched it scans for existing devices, so you do not normally need to use this API. However it is useful when you have added a new device or deleted an existing device (such as when the luks_open API is used).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org