Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Issue with creating a migration backup on CentOS 6

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Issue with creating a migration backup on CentOS 6


Chronological Thread 
  • From: Szymon Trocha <>
  • To: Simon Peter Green <>
  • Cc:
  • Subject: Re: [perfsonar-user] Issue with creating a migration backup on CentOS 6
  • Date: Mon, 7 Jan 2019 14:53:28 +0100
  • Ironport-phdr: 9a23:TeoJUhAs6Os04W0eY/zGUyQJP3N1i/DPJgcQr6AfoPdwSPX/ocbcNUDSrc9gkEXOFd2Cra4c26yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglUhzexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Qiqp4bt1RxD0iScHLz85/3/Risxsl6JQvRatqwViz4LIfI2ZMfxzdb7fc9wHX2pMRttfWTJPAo28aIsBDOQPMuhXoIb/u1QDtgG+CRW2Ce711jNFiH370Ksn2OohCwHG2wkgEsoTvnXVrNT1MaASUeaox6fW1zXDaO9Z2Tfn54PVdR0huvCNXLJ1ccrWz0kjDR/Fjk+XqYP5PzOazP8As22B4OpmT+6vk2knqgB3oje1wMcgkJHJhoYMx13C6C53zoE1JdiiR056Z96pCINQtzqcN4RqWM8iW2VotD4iyrIYo567cjMKyJMhxxHFcfyLaY6I7Qz/VOqJOTd3mGlleKmlixaq9UitzPD3WMqs0FtSsCZJjsXAum0I2hHQ9sSKSf5w80K81TuN2Q3e7/xILV0smabGK5Mt3qQ8moQTvEnMBCP6hUf7gLOMekgl+uWl7fnsbK/8qZ+GLYB0jxnzMqQwlcy7BuQ1KhMBUHaB+eSh0L3s51f1QLBQgf0wiKXZqJfaJMUdpqGjBQ9ZyJ4j6xKnAzen1tQXg2UHIUpbdB6bk4TlJlTDLfPkAfq8hlmhlSpnyvLIM7DkH5nBM2DPkLL7crZ8705cxhAzzdda559MEbEAIfLyWkr2tNzeFBM5Lxa0w+H7B9V9zIwTQmePDbWfMK/IqV+I4eMuI++Wa48Tojr9M/wl6+b0jXAlgV8dYbWp3ZwPZXCgAPtmOUuZYWHrgtcHC2gKpBMyTPHxiFKcSz5efHKyX6Mn5jEnE4KqE53PRoGrgLydwii7BJtWaX5aClySC3vnaZiLW+pfIB6Vd/RglzsCHYCsV4I7nT60uQL8g+58L+/T/DUVqZ/528J46uv7jhA0+jVuAsLb1WyRCXp7yDAmXTgziZttsEl6zB+/y69zg/UQQcdB9vZOVEEmL5nXz+VSDtn0HBrGbNGAThC+RoP1UnkKUtstzopWMA5GENK4g0WGhnLyDg==
  • Organization: PCSS

W dniu 07.01.2019 o 07:23, Simon Peter Green pisze:

Hi everyone,

I'm following the steps at https://docs.perfsonar.net/install_migrate_centos7.html to migrate our current CentOS 6 PS node including our measurement archive data to CentOS 7.

I ran the following ps-migrate-backup.sh script with the --data flag and have received the following error when it tries to backup pScheduler.

$ sudo /usr/lib/perfsonar/scripts/ps-migrate-backup.sh   --data  ~/ps-backup_$(date +%Y%m%d).tgz
Backing-up users...[SUCCESS]
Backing-up groups...[SUCCESS]
Backing-up passwords...[SUCCESS]
Backing-up perfsonar configuration...[SUCCESS]
Backing-up bwctl-server configuration...[SUCCESS]
Backing-up owamp-server configuration...[SUCCESS]
Backing-up NTP configuration...[SUCCESS]
Backing-up MaDDash configuration...[SUCCESS]
Backing-up cassandra data for esmond...[SUCCESS]
Backing-up postgresql data for esmond...[SUCCESS]
Creating pScheduler backup:
    Version Information... Done.
    System Configuration... Done.
    Database...pg_dump: unrecognized option '--serializable-deferrable'
Try "pg_dump --help" for more information.
Unable to create pScheduler backup

OS, Kernel and Toolkit Information for Node:

PostgreSQL Version: PostgreSQL 8.4.20

It seems that the --serializable-deferrable option doesn't exist until PostgreSQL version 9.1 and greater. Is there anyway way to get around this problem?

Cheers,

Simon


Hi Simon,

You probably have both postgresql 8 and postgresql 9 installed, but current pScheduler backup script expects only postgresql9.

Try adding this patach to /usr/libexec/pscheduler/commands/backup:
Remove line:

pg_dump \

Add in this place these three lines:

PG_DUMP=pg_dump                                                                                                                                                                                                                         
[ -x /usr/pgsql-9.5/bin/pg_dump ] && PG_DUMP=/usr/pgsql-9.5/bin/pg_dump
$PG_DUMP \

And rerun the backup script

Regards,

--
Szymon Trocha
Poznań Supercomputing & Networking Center
General NOC phone +48 61-858-2015 | noc.pcss.pl
Personal desk phone +48 61-858-2022
Wysłaliśmy do Ciebie ten e-mail w odpowiedzi na Twoje zapytanie lub w związku z oferowaną usługą. Przesłanie korespondencji do Centrum Zarządzania PCSS lub zgłoszenie telefoniczne jest równoznaczne z wyrażeniem zgody na przetwarzanie danych osobowych przez Instytut Chemii Bioorganicznej Polskiej Akademii Nauk w Poznaniu adres: ul. Z. Noskowskiego 12/14, 61-704 Poznań. Szczegółowe informacje znajdują się w naszej Polityce prywatności. | This message has been sent as a part of communication with PSNC NOC or your service request sent to us. For more information read our Privacy Policy.



Archive powered by MHonArc 2.6.19.

Top of Page