stop-pool-user-space.sh 350 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. KVM_POOL1=pool-user-space
  3. LUKS_MNT1=luks-698534b3-a45e-4758-9623-b0c5977b62f2
  4. UNLOCK_MNT1=/mnt/unlock-luks-698534b3-a45e-4758-9623-b0c5977b62f2
  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