code: def deactivate(self):
          
          self.open()
          d = lvm_lv_deactivate(self.handle)
          self.close()
          if d != 0:
              raise CommitError("Failed to deactivate LV.")
docs: Deactivates the logical volume.
  
          *Raises:*
  
          *       HandleError