pvremove


Description:

[ Version ( since = "1.0.13" ) ]
public bool pvremove (string device) throws Error

remove an LVM physical volume

This wipes a physical volume device so that LVM will no longer recognise it.

The implementation uses the pvremove command which refuses to wipe physical volumes that contain any volume groups, so you have to remove those first.

This function depends on the feature "lvm2". See also feature_available.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error