return 'This command needs to be executed with sudo or as root'
-class MultiplePVsError(Exception):
-
- def __init__(self, pv_name):
- self.pv_name = pv_name
-
- def __str__(self):
- msg = "Got more than 1 result looking for physical volume: %s" % self.pv_name
- return msg
-
-
-class MultipleLVsError(Exception):
-
- def __init__(self, lv_name, lv_path):
- self.lv_name = lv_name
- self.lv_path = lv_path
-
- def __str__(self):
- msg = "Got more than 1 result looking for %s with path: %s" % (self.lv_name, self.lv_path)
- return msg
-
-
-class MultipleVGsError(Exception):
-
- def __init__(self, vg_name):
- self.vg_name = vg_name
-
- def __str__(self):
- msg = "Got more than 1 result looking for volume group: %s" % self.vg_name
- return msg
-
-
class SizeAllocationError(Exception):
def __init__(self, requested, available):