如题,本文演示如何通过Symantec BE备份Linux系统。
一、获取Linux端的BE agents:
适应于Linux环境的Symantec BE agent程序可以从BE的安装介质中获取。
具体如下:
如上,RALUS_RMALS_RAMS-1180.1162.tar.gz,就是我们需要在Linux上安装的Agent程序。
二、Linux安装BE Agent。
上传服务器:
[root@linuxme ~]# cd /software [root@linuxme software]# ls -ltr --time-style="+|%Y-%m-%d|%H:%M:%S|" total 172852 -rw-r--r-- 1 root root 15403727 |2016-08-14|17:00:06| zabbix-3.0.4.tar.gz -rw-r--r-- 1 root root 938045 |2016-08-15|20:52:53| nginx-1.11.3.tar.gz drwxr-xr-x 9 1001 1001 4096 |2016-08-15|20:59:36| nginx-1.11.3 -rw-r--r-- 1 root root 18998880 |2016-08-15|21:17:19| php-7.0.9.tar.gz drwxr-xr-x 17 1000 1000 4096 |2016-08-16|10:11:15| php-7.0.9 drwxr-xr-x 13 1000 1000 4096 |2016-08-16|12:07:48| zabbix-3.0.4 -rw-r--r-- 1 root root 2326 |2016-08-16|13:45:43| setup.php?save_config=1 -rw-r--r-- 1 root root 141633926 |2016-09-02|16:55:58| RALUS_RMALS_RAMS-1180.1162.tar.gz [root@linuxme software]# [root@linuxme software]# du -sh RALUS_RMALS_RAMS-1180.1162.tar.gz 136M RALUS_RMALS_RAMS-1180.1162.tar.gz [root@linuxme software]#
解压:
[root@linuxme software]# pwd /software [root@linuxme software]# ls -ltr --time-style="+|%Y-%m-%d|%H:%M:%S|" total 172852 -rw-r--r-- 1 root root 15403727 |2016-08-14|17:00:06| zabbix-3.0.4.tar.gz -rw-r--r-- 1 root root 938045 |2016-08-15|20:52:53| nginx-1.11.3.tar.gz drwxr-xr-x 9 1001 1001 4096 |2016-08-15|20:59:36| nginx-1.11.3 -rw-r--r-- 1 root root 18998880 |2016-08-15|21:17:19| php-7.0.9.tar.gz drwxr-xr-x 17 1000 1000 4096 |2016-08-16|10:11:15| php-7.0.9 drwxr-xr-x 13 1000 1000 4096 |2016-08-16|12:07:48| zabbix-3.0.4 -rw-r--r-- 1 root root 2326 |2016-08-16|13:45:43| setup.php?save_config=1 -rw-r--r-- 1 root root 141633926 |2016-09-02|16:55:58| RALUS_RMALS_RAMS-1180.1162.tar.gz [root@linuxme software]# [root@linuxme software]# tar -xzf RALUS_RMALS_RAMS-1180.1162.tar.gz [root@linuxme software]# [root@linuxme software]# ls -ltr --time-style="+|%Y-%m-%d|%H:%M:%S|" total 172948 drwxr-xr-x 13 10001 110 4096 |2014-09-02|01:19:46| messages drwxr-xr-x 8 10001 110 4096 |2014-09-02|01:19:48| tools drwxr-xr-x 15 10001 110 4096 |2014-10-20|23:42:29| VxIF -rwxr-xr-x 1 10001 110 693 |2015-04-14|03:25:38| installralus.pl -rwxr-xr-x 1 10001 110 690 |2015-04-14|03:25:38| installralus.cmd -rwxr-xr-x 1 10001 110 918 |2015-04-14|03:25:38| installralus -rwxr-xr-x 1 10001 110 694 |2015-04-14|03:25:40| uninstallrmal.pl -rwxr-xr-x 1 10001 110 1100 |2015-04-14|03:25:40| uninstallrmal -rwxr-xr-x 1 10001 110 694 |2015-04-14|03:25:40| uninstallrams.pl -rwxr-xr-x 1 10001 110 933 |2015-04-14|03:25:40| uninstallrams -rwxr-xr-x 1 10001 110 695 |2015-04-14|03:25:40| uninstallralus.pl -rwxr-xr-x 1 10001 110 700 |2015-04-14|03:25:40| uninstallralus.cmd -rwxr-xr-x 1 10001 110 1519 |2015-04-14|03:25:40| uninstallralus -rwxr-xr-x 1 10001 110 692 |2015-04-14|03:25:40| installrmal.pl -rwxr-xr-x 1 10001 110 794 |2015-04-14|03:25:40| installrmal -rwxr-xr-x 1 10001 110 692 |2015-04-14|03:25:40| installrams.pl -rwxr-xr-x 1 10001 110 709 |2015-04-14|03:25:40| installrams drwxr-xr-x 6 10001 110 4096 |2015-07-02|02:35:47| scripts -rwxr-xr-x 1 10001 110 262 |2015-07-02|02:35:55| rmalinst.conf -rwxr-xr-x 1 10001 110 232 |2015-07-02|02:35:55| ralusinst.conf drwxr-xr-x 3 10001 110 4096 |2015-07-02|02:35:55| pkgs -rwxr-xr-x 1 10001 110 256 |2015-07-02|02:37:06| ramsinst.conf drwxr-xr-x 3 10001 110 4096 |2015-07-02|02:37:06| RALUSx86 drwxr-xr-x 3 10001 110 4096 |2015-07-02|02:37:17| RALUS64 -rw-r--r-- 1 root root 15403727 |2016-08-14|17:00:06| zabbix-3.0.4.tar.gz -rw-r--r-- 1 root root 938045 |2016-08-15|20:52:53| nginx-1.11.3.tar.gz drwxr-xr-x 9 1001 1001 4096 |2016-08-15|20:59:36| nginx-1.11.3 -rw-r--r-- 1 root root 18998880 |2016-08-15|21:17:19| php-7.0.9.tar.gz drwxr-xr-x 17 1000 1000 4096 |2016-08-16|10:11:15| php-7.0.9 drwxr-xr-x 13 1000 1000 4096 |2016-08-16|12:07:48| zabbix-3.0.4 -rw-r--r-- 1 root root 2326 |2016-08-16|13:45:43| setup.php?save_config=1 -rw-r--r-- 1 root root 141633926 |2016-09-02|16:55:58| RALUS_RMALS_RAMS-1180.1162.tar.gz [root@linuxme software]#
执行安装:
[root@linuxme software]# ls | grep --color installralus installralus installralus.cmd installralus.pl uninstallralus uninstallralus.cmd uninstallralus.pl [root@linuxme software]# [root@linuxme software]# ./installralus Symantec Backup Exec Agent for Linux 14.2.1180-1162 Enter the system names separated by spaces on which to install RALUS: (linuxme) Checking system communication: Checking OS version on linuxme ....................................... Linux 2.6.32-279.el6.x86_64 Checking system support for linuxme ............... Linux 2.6.32-279.el6.x86_64 supported by RALUS Initial system check completed successfully. Press [Return] to continue: Symantec Backup Exec Agent for Linux 14.2.1180-1162 installralus will install the following RALUS packages on Linux target system: linuxme VRTSralus Symantec Backup Exec Agent for Linux Press [Return] to continue: Symantec Backup Exec Agent for Linux 14.2.1180-1162 Checking system installation requirements: Checking RALUS installation requirements on Linux target systems: linuxme Checking RALUS installation requirements on linuxme: Checking file system space ........................................... required space is available Installation requirements checks completed successfully. Press [Return] to continue: Checking for port 10000 ..................................................................... Done Agent User Group Configuration To perform backups, you must have a 'beoper' user group configured with root account priviledges on the system. The 'beoper' user group can be created on all systems except NIS Servers. After pressing [Return], the system 'linuxme' will be scanned to detect a 'beoper' user group with root account privileges. It will also scan for a NIS server. Press [Return] to continue: Checking for NIS server: ..................................................................... No Checking for 'beoper' user group: ...................................................... Not Found Checking for 'root' user membership in 'beoper' user group: ............................ Not Found You can create 'beoper' user group manually or you can choose to have it created automatically. Do you want installer to create 'beoper' user group on 'linuxme'? [y, n] (y)y Do you want to use specific group ID when creating 'beoper' user group? [y, n] (n) Creating group 'beoper': .................................................................... Done Do you want to add the 'root' user to 'beoper' user group? [y, n] (y) Adding 'root' user to 'beoper' user group: ................................................. Done Press [Return] to continue: Symantec Backup Exec Agent for Linux 14.2.1180-1162 Checking Symantec Backup Exec Agent for Linux on linuxme: Checking VRTSralus package ......................................................... not installed Press [Return] to continue: Symantec Backup Exec Agent for Linux 14.2.1180-1162 Installing Symantec Backup Exec Agent for Linux on linuxme: Installing VRTSralus 14.2.1180-1162 on linuxme ................................. done 1 of 1 steps Symantec Backup Exec Agent for Linux installation completed successfully. Press [Return] to continue: Copying new initialization scripts .......................................................... Done Updating files for beoper group ............................................................. Done Installing SymSnap driver ................................................................. Failed Symantec Backup Exec Agent for Linux 14.2.1180-1162 Configuring Symantec Backup Exec Agent for Linux: Creating configuration files on linuxme ..................................................... Done The agent installer can automatically start the agent after the installation completes. Do you want to automatically start the agent on 'linuxme'? [y, n] (y)y Starting agent on linuxme ................................................................... Done To establish a trust between the Backup Exec server and the agent, move to the Backup Exec server and add the agent computer to the list of servers. To add the agent computer, click Add on the Backup and Restore tab. Symantec Backup Exec Agent for Linux configured successfully. Press [Return] to continue: The response file is saved at: /var/tmp/vxif/installralus902171258/installralus902171258.response The installralus log is saved at: /var/tmp/vxif/installralus902171258/installralus.log [root@linuxme software]#
可以看到,安装完成后,立即启动了BE Agent的服务。
确认服务启动:
[root@linuxme software]# ps -ef | grep beremote root 3964 1 0 17:18 pts/1 00:00:01 /opt/VRTSralus/bin/beremote root 4023 31136 0 17:21 pts/1 00:00:00 grep beremote [root@linuxme software]# [root@linuxme software]# netstat -tupln | grep --color beremote tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 3964/beremote tcp 0 0 :::10000 :::* LISTEN 3964/beremote [root@linuxme software]#
接下来的操作是在BE Server上完成的。
添加一个Linux的Server。
在执行这一步的时候,如果目标服务器上没有打开BE Agent程序,将会出现如下的错误:
如果Agent运行正常,将会成功添加服务器,如下:
到这里,BE添加Linux服务器就完成了。
三、 添加一个备份任务,感受下BE备份Linux。
验证登陆信息(Test/Edit Credentials):
选择备份目标(Edit):
设置备份任务时间:
这样,备份任务就创建好了:
四、测试备份:
当前备份集状态:
立即执行上面创建的备份:
最后,执行成功:
查看下备份集:
————————————————
Done。