@error.context_aware
def lv_umount(vg_name, lv_name, mount_loc):
 error.context('Unmounting the logical volume', logging.info)
 try:
  utils.run(('umount /dev/%s/%s' % (vg_name, lv_name)))
 except error.CmdError as ex:
  logging.warning(ex)
  return False
 return True

@ error . context_aware def lv_umount ( vg_name , lv_name , mount_loc ) : error . context ( 'Unmounting the logical volume' , logging . info ) try : utils . run ( ( 'umount /dev/%s/%s' % ( vg_name , lv_name ) ) ) except error . CmdError as ex : logging . warning ( ex ) return False return True
unmount a logical volume from a mount location .