stop-pool-crm-crypt-u.sh 351 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. KVM_POOL1=pool-crm-crypt-u
  3. LUKS_MNT1=luks-c53ad491-52e5-46f4-9fc8-578f62770c04
  4. UNLOCK_MNT1=/mnt/unlock-luks-c53ad491-52e5-46f4-9fc8-578f62770c04
  5. #
  6. #
  7. # stop pool
  8. echo "stopping pool..."
  9. virsh pool-destroy $KVM_POOL
  10. echo "umounting..."
  11. sudo umount $UNLOCK_MNT1
  12. echo "locking crypt vol"
  13. sudo cryptsetup luksClose /dev/mapper/$LUKS_MNT1