JNA(Java Native Access) provides Java programs easy access to native shared libraries without writing anything but Java code - no JNI or native code is required. This functionality is comparable to Windows’ Platform/Invoke and Python’s ctypes.
############# config ################## # # set base_path /var/spool/apt-mirror # # set mirror_path $base_path/mirror # set skel_path $base_path/skel # set var_path $base_path/var # set cleanscript $var_path/clean.sh # set defaultarch <running host architecture> # 默认架构与镜像主机的架构一致,这里是amd64 # set postmirror_script $var_path/postmirror.sh # set run_postmirror 0 set nthreads 20 set _tilde 0 # ############# end config ##############
deb http://ftp.cn.debian.org/debian jessie main contrib non-free deb http://ftp.cn.debian.org/debian/ jessie-backports main contrib non-free deb http://ftp.cn.debian.org/debian/ jessie-proposed-updates main contrib non-free deb http://ftp.cn.debian.org/debian/ jessie-updates main contrib non-free deb http://ftp.cn.debian.org/debian-security/ jessie/updates main contrib non-free #deb-src http://ftp.us.debian.org/debian unstable main contrib non-free
# mirror additional architectures #deb-alpha http://ftp.us.debian.org/debian unstable main contrib non-free #deb-amd64 http://ftp.us.debian.org/debian unstable main contrib non-free #deb-armel http://ftp.us.debian.org/debian unstable main contrib non-free #deb-hppa http://ftp.us.debian.org/debian unstable main contrib non-free #deb-i386 http://ftp.us.debian.org/debian unstable main contrib non-free #deb-ia64 http://ftp.us.debian.org/debian unstable main contrib non-free #deb-m68k http://ftp.us.debian.org/debian unstable main contrib non-free #deb-mips http://ftp.us.debian.org/debian unstable main contrib non-free #deb-mipsel http://ftp.us.debian.org/debian unstable main contrib non-free #deb-powerpc http://ftp.us.debian.org/debian unstable main contrib non-free #deb-s390 http://ftp.us.debian.org/debian unstable main contrib non-free #deb-sparc http://ftp.us.debian.org/debian unstable main contrib non-free
FATAL: hot standby is not possible because max_connections = 100 is a lower setting than on the master server (its value was 500) FATAL: hot standby is not possible because max_prepared_transactions = 0 is a lower setting than on the master server (its value was 50)
当所有的归档WAL恢复完毕,无法读取到其他更新的归档日志后,恢复就会自动结束,并且recovery.conf会被更名为recovery.done,防止意外重新进入restore过程。 恢复完毕后,可以允许客户端连接到服务器。 注意,恢复的最后阶段,日志中会出现No such file or directory字样的提示,这是正常的,因为恢复过程已经无法读取到其他的归档日志文件或时间线history文件。
1 2 3 4 5 6 7 8 9 10 11 12
2015-12-0709:24:42 CST \[4906-5\] LOG: consistent recovery state reached at 1/86008798 cp: cannot stat ‘/var/backups/postgresql/archive/000000010000000100000087’: No such file or directory 2015-12-0709:24:42 CST \[4906-6\] LOG: redo done at 1/86008798 2015-12-0709:24:42 CST \[4906-7\] LOG: last completed transaction was at log time 2015-12-0708:57:51.075265+08 2015-12-0709:24:42 CST \[4906-8\] LOG: restored log file "000000010000000100000086"from archive cp: cannot stat ‘/var/backups/postgresql/archive/00000002.history’: No such file or directory 2015-12-0709:24:42 CST \[4906-9\] LOG: selected new timeline ID: 2 cp: cannot stat ‘/var/backups/postgresql/archive/00000001.history’: No such file or directory 2015-12-0709:24:42 CST \[4906-10\] LOG: archive recovery complete 2015-12-0709:24:42 CST \[4906-11\] LOG: MultiXact member wraparound protections are now enabled 2015-12-0709:24:42 CST \[4924-1\] LOG: autovacuum launcher started 2015-12-0709:24:42 CST \[4905-1\] LOG: database system is ready to accept connections