You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i recover a standby node pg216(old primary) using pcp_recovery_node command, if there were too many archived log files in $ARCHIVEDIR,the command failed.
could the command that cleans archived log files can change from "rm -rf ${ARCHIVEDIR}/" to "find ${ARCHIVEDIR}/ -name "0" -exec rm -f {} ;" in recovery_1st_stage and follow_primary.sh ?
The text was updated successfully, but these errors were encountered:
when i recover a standby node pg216(old primary) using pcp_recovery_node command, if there were too many archived log files in $ARCHIVEDIR,the command failed.
[root@pg216 ~]# pcp_recovery_node -h pgvip -p 9898 -U pgpool -n 0
Password:
ERROR: executing recovery, execution of command failed at "1st stage"
DETAIL: command:"recovery_1st_stage"
then i tried to remove these archived log files using rm command, it failed
[root@pg216 ~]# rm -f /data/archivedir/*
/bin/rm: cannot execute [Argument list too long]
then i removed these archived log file using find + rm commands, it succeeded.
[root@pg216 ~]#find /data/archivedir/ -name "0*" -exec rm -f {} ;
and then pcp_recovery_node command succeeded.
[root@pg216 ~]# ls /data/archivedir/
[root@pg216 ~]# pcp_recovery_node -h pgvip -p 9898 -U pgpool -n 0
Password:
pcp_recovery_node -- Command Successful
could the command that cleans archived log files can change from "rm -rf ${ARCHIVEDIR}/" to "find ${ARCHIVEDIR}/ -name "0" -exec rm -f {} ;" in recovery_1st_stage and follow_primary.sh ?
The text was updated successfully, but these errors were encountered: