PSM(Primary Storage Manager)是仅有基本的备份/恢复功能(相对于Netbackup等来说),当前的版本中也仅支持文件系统设备。
以下是简单的配置步骤:
准备工作,使用gbasedbt用户,准备足够大的文件系统(目录)用于存储备份。
1,修改ONCONFIG配置文件参数
BAR_BSALIB_PATH为$GBASEDBTDIR/lib/libbsapsm.so,该参数是动态参数,可使用onmode -wf修改
[gbasedbt@bd ~]$ onmode -wf BAR_BSALIB_PATH=$GBASEDBTDIR/lib/libbsapsm.so
Value of BAR_BSALIB_PATH has been changed to /opt/gbase/lib/libbsapsm.so.
修改ALARMPROGRAM为$GBASEDBTDIR/etc/log_full.sh,该配置参数启用逻辑日志备份onbar -b -l
该参数在GBase 8s中也是动态参数,可使用onmode -wf修改
[gbasedbt@bd ~]$ onmode -wf ALARMPROGRAM=$GBASEDBTDIR/etc/log_full.sh
Value of ALARMPROGRAM has been changed to /opt/gbase/etc/log_full.sh.
修改LTAPEDEV为非/dev/null,启动逻辑日志备份,而不是丢弃逻辑日志备份。
[gbasedbt@bd ~]$ onmode -wf LTAPEDEV=/opt/gbase/backups/logs
Value of LTAPEDEV has been changed to /opt/gbase/backups/logs.
阅读全文»