Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXoOC-0005II-LY for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 15:29:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iXoOB-0008EG-Dl for pgsql-general@arkaria.postgresql.org; Thu, 21 Nov 2019 15:28:59 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXoOB-0008E7-3f for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 15:28:59 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iXoO8-0003O9-II for pgsql-general@lists.postgresql.org; Thu, 21 Nov 2019 15:28:58 +0000 Received: by mail-wr1-x444.google.com with SMTP id z7so1501130wrl.13 for ; Thu, 21 Nov 2019 07:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=beUjt/f8sIK6joA+P4ECdQqTotg+vN4cRvZVYdrkwVA=; b=k183g540XpxjP5gJV2LIFPehUk37CQV/hXbMybSGp9i0hJ/AGDxkIzRCdrmnGsUH3d BaBeKgYZYxdhoJjbeZpoQzGnbXhT16kCiu+nh4YQ2kAwvTgJP0f2rlExBtyJNRwNJACK WGLlrP3S+Eh2Gyl1AYFruA35yzjDM6vc7e5pN+TyYpE56lHkM/r+uZ+3JvfjxD6knBCW vfZiqSDTkWRBWLsDH3dWknjrxKA90iVcVpWlv23sFdjrdif3QnwvEcDVGEhLYb025l+E ZccOLROmbSqtW4NAzSlKbUlERMiTokziC/bHS2+pEzG21FJAq/ny86oDcp/DYXpr4nqf Z2Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=beUjt/f8sIK6joA+P4ECdQqTotg+vN4cRvZVYdrkwVA=; b=V2SFReUdWEG6oIIybF0lfNgQ2fT7GPAk5SHw9WeJG/u5Bb/1QIkclR3l6h6xYLdGPX U4/I8cnmGEeDQLMqo8+TNEFsoLCxjzJQgOLgbW1+T2ZfulNpfxQy8kL9o8L+NN1QlHgJ FQ8aGmdgwe4hDilen4b3TRM1zgU5ajTtIrHIbhMzYG7e8V2tJ2XMzJiYHf+Jo0T0JtTV Hqm9E65ajMbSlXtllCbqbxSwtSKw5kxQKEzjC9NmK/Ns4JQ3GShEcgFykotjul+mH9VT xudxiCvZtCA+ImVF0u1uhdcKV26MTnA94P6+pcT7zB6SaIjt7gT8Ee6KtMHPK4D+764E ZtGQ== X-Gm-Message-State: APjAAAU298ZT2dQUjiuYfq5+6Gy+fQmRX+dkS1+WYupx1kQ0flT/6e3M DNhDB5DyH2ejw2aKa682Sec+Ug== X-Google-Smtp-Source: APXvYqz/LpamEcOJZbyq2aCria1egvILfSHu9BmRcpy6JOgFNYqlkcQU4Nu4xWDlJ1lPAmj38DCpkA== X-Received: by 2002:a5d:558b:: with SMTP id i11mr10741301wrv.379.1574350135588; Thu, 21 Nov 2019 07:28:55 -0800 (PST) Received: from localhost.localdomain (217-149-171-82.nat.highway.telekom.at. [217.149.171.82]) by smtp.gmail.com with ESMTPSA id m3sm3613192wrw.20.2019.11.21.07.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 07:28:55 -0800 (PST) Message-ID: <5ca0e395f1234e7edf9e19dca3788ff4e22a0539.camel@cybertec.at> Subject: Re: Tablespace setup issue From: Laurenz Albe To: Ron , pgsql-general@lists.postgresql.org Date: Thu, 21 Nov 2019 16:28:54 +0100 In-Reply-To: <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com> References: <734fcddec1c9c75316f81657294d3f5274f6d344.camel@cybertec.at> <1b00f9ad-535a-6c67-b8c8-0a0237167e7a@gmail.com> <6cd665d763b22de54422718cbd616a520868e258.camel@cybertec.at> <8997b55f-d9d1-9d38-fbc0-3bb335e0dc8a@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2019-11-21 at 09:11 -0600, Ron wrote: > After adding another 350GB to the data/base filesystem, the storage team > said that the virtual LUN on our ESX host is full. No more expansion of > this database until and unless they create a new LUN (on storage replicated > to a different DC using SRM). > > Thus, to enlarge the database on this VM, we either... > > 1. create a tablespace on a different (modest sized) LUN, or > 2. create a completely new 10TB LUN and migrate the whole db (including > backups) to that new LUN. > > Honestly, using a new tablespace seems simpler. Ok, that is a valid use case :^) Change into the directory with the new file system. Create a subdirectory and "chown" it to "postgres". Become operating system user "postgres" and verify that you can write to that directory. If not, fix the permissions of the directories on the path. If you can write to the directory, you will be able to create a tablespace there. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com