Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAXWx-0000uM-Sw for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2017 08:08:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dAXWx-0000fN-B1 for pgsql-admin@arkaria.postgresql.org; Tue, 16 May 2017 08:08:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAXVB-0005xJ-4G for pgsql-admin@postgresql.org; Tue, 16 May 2017 08:06:41 +0000 Received: from nsstlmta20p.bpe.bigpond.com ([203.38.21.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dAXV6-0001VW-2H for pgsql-admin@postgresql.org; Tue, 16 May 2017 08:06:40 +0000 Received: from smtp.telstra.com ([10.10.24.4]) by nsstlfep20p-svc.bpe.nexus.telstra.com.au with ESMTP id <20170516080625.HZTI15335.nsstlfep20p-svc.bpe.nexus.telstra.com.au@smtp.telstra.com>; Tue, 16 May 2017 18:06:26 +1000 X-RG-Spam: Unknown X-Junkmail-Premium-Raw: score=8/83,refid=2.7.2:2017.5.16.75116:17:8.129,ip=,rules=__HAS_FROM, FROM_NAME_ONE_WORD, __TO_MALFORMED_2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __HAS_CC_HDR, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __SUBJ_ALPHA_END, __HAS_MSGID, __SANE_MSGID, __REFERENCES, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __CD, __IN_REP_TO, __USER_AGENT, __ANY_URI, __DAILY_DEAL_URI, __URI_WITH_PATH, __URI_NO_MAILTO, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, __URI_IN_BODY, __URI_NOT_IMG, __FORWARDED_MSG, __NO_HTML_TAG_RAW, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_900_999, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __URI_NS, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, IN_REP_TO, MSG_THREAD, __TO_REAL_NAMES, MULTIPLE_REAL_RCPTS, LEGITIMATE_SIGNS, __SINGLE_URI_TEXT, SINGLE_URI_IN_BODY, BODY_SIZE_1000_LESS, BODY_SIZE_2000_LESS, __MIME_TEXT_P, REFERENCES, NO_URI_HTTPS, BODY_SIZE_7000_LESS, URI_WITH_PATH_ONLY X-RG-Spam: Unknown Received: from bunyip.billabong.weebeastie.net (121.209.109.122) by smtp.telstra.com (9.0.019.16-1) id 5910852502B3C08C; Tue, 16 May 2017 18:06:25 +1000 Received: from hogarth by bunyip.billabong.weebeastie.net with local (Exim 4.89) (envelope-from ) id 1dAXUu-00061Y-Tu; Tue, 16 May 2017 18:06:24 +1000 Date: Tue, 16 May 2017 18:06:24 +1000 From: Cat To: rakesh-eltropy Cc: pgsql-admin@postgresql.org Subject: Re: Postgres Data Encryption Using LUKS with dm-crypt Message-ID: <20170516080624.rxl4unuwjzszefhd@zip.com.au> References: <1494920582184-5961821.post@n3.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494920582184-5961821.post@n3.nabble.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -1.4 (-) 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 On Tue, May 16, 2017 at 12:43:02AM -0700, rakesh-eltropy wrote: > */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* Looks fair. You did a lazy unmount whilst postgres is still using it (lsof -n will confirm) THEN you tried to tell it to stop the encryption processing, which it wont let you do as the mount is still in use (though detached from the filesystem tree). -- "A search of his car uncovered pornography, a homemade sex aid, women's stockings and a Jack Russell terrier." - http://www.dailytelegraph.com.au/news/wacky/indeed/story-e6frev20-1111118083480 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin