Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)