def reduce(self, newSize): """Reduce a logical volume 'newSize' - new size in blocks """ self.log.info( "Request to reduce LV %s of image %s in VG %s with " "size = %s", self.volUUID, self.imgUUID, self.sdUUID, newSize) sizemb = (newSize + SECTORS_TO_MB - 1) / SECTORS_TO_MB lvm.reduceLV(self.sdUUID, self.volUUID, sizemb)
def reduce(self, newSize): """Reduce a logical volume 'newSize' - new size in blocks """ self.log.info("Request to reduce LV %s of image %s in VG %s with " "size = %s", self.volUUID, self.imgUUID, self.sdUUID, newSize) sizemb = (newSize + SECTORS_TO_MB - 1) / SECTORS_TO_MB lvm.reduceLV(self.sdUUID, self.volUUID, sizemb)