Re: Postgres storage migration
От | Ron Johnson |
---|---|
Тема | Re: Postgres storage migration |
Дата | |
Msg-id | CANzqJaB5fC30F6JWcaToK9RaH+CWy-oc_Hf=v+2FJkF-OfuQUA@mail.gmail.com обсуждение исходный текст |
Ответ на | Postgres storage migration (Rajesh Kumar <rajeshkumar.dba09@gmail.com>) |
Ответы |
Re: Postgres storage migration
Re: Postgres storage migration |
Список | pgsql-admin |
On Fri, Dec 8, 2023 at 4:44 AM Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:
HiWe are using openshift environment and postgres version 15.2. We want to change storage from ceph to local storage. So, Storage team made default storage as local. Now, I created a new cluster with same postgres version and I am planning to take backup from old cluster to new cluster. Size is 100gb. Ram 24gb, cpu 2.My question is, is there a combination of pg_dump and pg_restore that takes less time to complete the task?Last time it took more than 8hours. We were taking schema only dump using dumpall . Then data only backup using pg_dump in directory format.
8 hours is really slow for just 100GB of database. What exact command are you using?
Paul Smith is right, though: Just shut down the instance, copy the files, and start up the instance with new "-D" location.
(Will need to edit postgresql.conf if it defines file locations.)
В списке pgsql-admin по дате отправления: