From: rakesh-eltropy <goyal.nitj@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Postgres Data Encryption Using LUKS with dm-crypt
Date: Tue, 16 May 2017 00:43:02 -0700 (MST)
Message-ID: <1494920582184-5961821.post@n3.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
We have encrypted volume using LUKS.
*cryptsetup luksOpen /root/test1 volume1*
and mounted on
*mount /dev/mapper/volume1 /mnt/files*
We created postgres data directory inside /mnt/files and able to start the
postgres database.
*/usr/local/pgsql/bin/pg_ctl -D /mnt/files/postgres/ -l
/var/logs/postgres/postgrs.log start*
Even though we unmounted /mnt/files
*sudo umount -l /mnt/files*
When we try to close volume using LUKS.
*sudo cryptsetup luksClose volume1*
Getting following errors:
*device-mapper: remove ioctl on volume1 failed: Device or resource busy*
--
View this message in context: http://www.postgresql-archive.org/Postgres-Data-Encryption-Using-LUKS-with-dm-crypt-tp5961821.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: goyal.nitj@gmail.com
Subject: Re: Postgres Data Encryption Using LUKS with dm-crypt
In-Reply-To: <1494920582184-5961821.post@n3.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox