Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAXAC-0007q1-J3 for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2017 07:45:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dAXAC-0004Uo-5k for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2017 07:45:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAX8P-0000gs-5b for pgsql-admin@postgresql.org; Tue, 16 May 2017 07:43:09 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAX8I-0001JL-ES for pgsql-admin@postgresql.org; Tue, 16 May 2017 07:43:08 +0000 Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id 2CB19420C0E1E for ; Tue, 16 May 2017 00:43:02 -0700 (MST) Date: Tue, 16 May 2017 00:43:02 -0700 (MST) From: rakesh-eltropy To: pgsql-admin@postgresql.org Message-ID: <1494920582184-5961821.post@n3.nabble.com> Subject: Postgres Data Encryption Using LUKS with dm-crypt MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org 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