Posts tagged ‘备份’

Veeam Backup & Replication试用(二):前期准备,配置备份存储空间和VMware vSphere虚拟化平台

===========================================================
Veeam Backup & Replication安装/配置系列:

1、Veeam Backup & Replication试用(一):安装及配置
2、Veeam Backup & Replication试用(二):前期准备,配置备份存储空间和VMware vSphere虚拟化平台
3、Veeam Backup & Replication试用(三):配置备份(Backup Job)与恢复(Restore)
4、Veeam Backup & Replication试用(四):配置同步(Replication Job)与恢复(Restore)

===========================================================

上次讲到过Veeam Backup & ReplicationVMwareHyper-V虚拟化平台的支持非常好,本例将进行备份或同步前的准备工作,首先需添加备份存储空间目录,备份目录可以是WINDOWS、或LINUX,也可以是网络上的CIFS或者NAS空间。其次要将需要备份的虚拟机添加进软件系统中,本例将为VMware vSphere 平台为例,可以添加vCenter,也可以单独添加ESXi主机。添加vCenter后,vCenter下的所有ESXi和虚拟机都会添加进来。

1、添加备份存储位置

这里,将选择Veeam Backup Server本机的X盘的backupfiles文件夹作为备份的目录,首先在X盘上创建目录backupfiles,接着打开备份软件,如下图,右边菜单栏中选择“Backup Infrastructure”,在“Backup Repositories”

veeam27

veeam28

类型选择windows,如下图

veeam32

选择本机服务器“This server”,如下图

veeam31

选择本地X盘的backupfiles文件夹作为备份空间,如下图

veeam33

完成后,开始创建,如下图

veeam34

新创建的Repository,如下图

veeam35

 

2、添加vSphere虚拟化平台

可以添加单个ESXi主机,也可以直接添加vCenter服务器,这里直接添加vCenter,如下图,切换至“Virtual Machines”,在VMware vSphere上右键,选择“Add server…”

veeam36

输入vCenter地址

veeam37

点击Add,在弹出的对话框中输入vCenter服务器系统的用户名和密码,如下图

veeam39

完成添加。

veeam38

完成后,在VMware vSphere的树形结构图中,就可以看到刚才添加的192.200.200.200的VC服务器,默认会将vCenter服务器下的所有ESXi主机及虚拟机都添加进来,如下图

veeam41

这样,就可以对192.200.200.200 VC下的虚拟机进行备份(Backup Job)、同步(Replication Job)等操作,如下图。

veeam42

Symantec NetBackup6.5在win下的常用命令

写下WIN下常用的NETBACKUP6.5命令:

1、默认安装位置:C:Program FilesVERITASNetBackup

2、启动及停止netbackup

(1)停止

C:Program FilesVERITASNetBackupbin>bpdown

NetBackup 6.5 — Shutdown Utility

NetBackup software will be shutdown.  This may cause backups to fail.
Do you wish to proceed? (y/n) y
Shutting down services
Calling nbproxyreq to cleanup nbproxy processes.

Shutdown completed successfully.

(2)启动

C:Program FilesVERITASNetBackupbin>bpup

NetBackup 6.5 — Startup Utility

NetBackup services are about to be started.
Do you wish to proceed? (y/n) y
Starting services

Start up completed successfully.

3、列出可用磁带信息

C:Program FilesVERITASNetBackupbingoodies>available_media.cmd

media   media   robot   robot   robot   side/   ret    size     status
ID     type    type      #     slot    face    level  KBytes
—————————————————————————-
CatalogBackup pool

DataStore pool

NetBackup pool

0401L3  HCART3   TLD      0       2      –       –     –        AVAILABLE
0402L3  HCART3   TLD      0       3      –       –     –        AVAILABLE
0403L3  HCART3   TLD      0       4      –       –     –        AVAILABLE
0404L3  HCART3   TLD      0       5      –       –     –        AVAILABLE
0405L3  HCART3   TLD      0       6      –       –     –        AVAILABLE
0406L3  HCART3   TLD      0       7      –       –     –        AVAILABLE
0407L3  HCART3   TLD      0       8      –       –     –        AVAILABLE
0408L3  HCART3   TLD      0       9      –       –     –        AVAILABLE
0409L3  HCART3   TLD      0       10     –       –     –        AVAILABLE

wxgadpt pool

0420L3  HCART3   TLD      0       73     –       3     55693440 ACTIVE
041YL3  HCART3   TLD      0       71     –       –     –        AVAILABLE
041ZL3  HCART3   TLD      0       72     –       –     –        AVAILABLE
0421L3  HCART3   TLD      0       74     –       –     –        AVAILABLE
0422L3  HCART3   TLD      0       75     –       –     –        AVAILABLE
0423L3  HCART3   TLD      0       76     –       –     –        AVAILABLE
0424L3  HCART3   TLD      0       77     –       –     –        AVAILABLE
0425L3  HCART3   TLD      0       78     –       –     –        AVAILABLE
0426L3  HCART3   TLD      0       79     –       –     –        AVAILABLE
0427L3  HCART3   TLD      0       80     –       –     –        AVAILABLE
040AL3  HCART3   TLD      0       11     –       3     356334144        FULL
040BL3  HCART3   TLD      0       12     –       3     356334144        FULL
040CL3  HCART3   TLD      0       13     –       3     356334240        FULL
040DL3  HCART3   TLD      0       14     –       3     356334240        FULL
040EL3  HCART3   TLD      0       15     –       3     356333888        FULL
040FL3  HCART3   TLD      0       16     –       3     356333888        FULL
040GL3  HCART3   TLD      0       17     –       3     356333984        FULL
040HL3  HCART3   TLD      0       18     –       3     356334240        FULL
040IL3  HCART3   TLD      0       19     –       3     356334240        FULL
040JL3  HCART3   TLD      0       20     –       3     356334240        FULL

wxgajwpt pool

040UL3  HCART3   TLD      0       31     –       3     5679104  ACTIVE
040VL3  HCART3   TLD      0       32     –       3     22806528 ACTIVE
040WL3  HCART3   TLD      0       33     –       3     8496672  ACTIVE
040YL3  HCART3   TLD      0       35     –       –     –        AVAILABLE
0410L3  HCART3   TLD      0       37     –       –     –        AVAILABLE
0411L3  HCART3   TLD      0       38     –       –     –        AVAILABLE
0412L3  HCART3   TLD      0       39     –       –     –        AVAILABLE
0413L3  HCART3   TLD      0       40     –       –     –        AVAILABLE
040XL3  HCART3   TLD      0       34     –       3     0        FROZEN
040ZL3  HCART3   TLD      0       36     –       3     0        FROZEN

wxgaqbpt pool

040TL3  HCART3   TLD      0       30     –       3     284681952        ACTIVE
040PL3  HCART3   TLD      0       26     –       –     –        AVAILABLE
040QL3  HCART3   TLD      0       27     –       –     –        AVAILABLE
040KL3  HCART3   TLD      0       21     –       3     356330752        FULL
040LL3  HCART3   TLD      0       22     –       3     356330464        FULL
040ML3  HCART3   TLD      0       23     –       3     356330976        FULL
040NL3  HCART3   TLD      0       24     –       3     356330752        FULL
040OL3  HCART3   TLD      0       25     –       3     356331008        FULL
040RL3  HCART3   TLD      0       28     –       3     356330752        FULL
040SL3  HCART3   TLD      0       29     –       3     356330848        FULL

4、单盘磁带信息

C:Program FilesVERITASNetBackupbinadmincmd>bpmedialist -m 040JL3
Server Host = p570b01

id                rl     images      allocated                    last updated                 density     kbytes     restores
vimages    expiration                     last read                        <——- STATUS ——->
——————————————————————————–
040JL3   3          22            2010-06-18 02:19   2010-06-19 02:48   hcart3   356334240     0
22            2010-07-20 02:48        N/A                                               FULL

5、解除冻结(FROZEN)的磁带

C:Program FilesVERITASNetBackupbinadmincmd>bpmedia -unfreeze -m 040XL3

6、使磁带过期及可写

C:Program FilesVERITASNetBackupbinadmincmd>bpexpdate -m 040ZL3 -d 0

7、列出备份文件目录

C:Program FilesVERITASNetBackupbin>bplist -C p570b01 -t 4 -R /

cntrl_236_1_722661541:
al_235_1_722661254:
al_234_1_722661063:
al_233_1_722661063:
bk_232_1_722660906:
bk_231_1_722660580:
bk_230_1_722660175:
bk_229_1_722659849:

同有飞骥VTL150G3虚拟带库恢复“出厂设置”

在配置同有飞骥 VTL150G3的虚拟带库时,如果前期配置不顺利,想将整个系统恢复成“出厂设置”,可以telnet至vtl系统,再进行如下操作:

1、停止vtl系统

[root@VTL150G3 ~]# vtl stop

NetStor VTL Server v5.10 (Build 2030)
Copyright (c) 2003-2009 FalconStor Software. All Rights Reserved.

Detaching all Virtual Devices
We recommend stopping all VTL client services prior to shutdown.
Otherwise, data loss may occur.
Are you sure you want to continue? (y/n) [n]: y
Continuing with Detaching all Virtual Devices
Stopping VTL Self Monitor Module [  OK  ]
Stopping VTL Server RDE Daemon [  OK  ]
Stopping VTL Server IMA Daemon [  OK  ]
Stopping VTL FSVSHOST Module [  OK  ]
Stopping VTL Statistic Module [  OK  ]
Stopping VTL Logger Module [  OK  ]
Stopping VTL Target Module [  OK  ]
Stopping VTL Server VTL Upcall (32 bit) Daemon [  OK  ]
Stopping VTL Server VTL Upcall Daemon [  OK  ]
Stopping VTL Server VTL Upcall Module [  OK  ]
Stopping VTL Server VTL Module [  OK  ]
Stopping VTL CLI Proxy Module [  OK  ]
Stopping VTL Communication Module [  OK  ]
Stopping VTL Server (Application) [  OK  ]
Stopping VTL Server (Path Manager) Module [  OK  ]
Stopping VTL Server (Event) Module [  OK  ]
Stopping VTL Server (Transport) [  OK  ]
Stopping VTL Server (Upcall) Module [  OK  ]
Stopping VTL Server (FSNBase) Module [  OK  ]
Stopping VTL Server (Compression) Module [  OK  ]
Stopping VTL Server (HiFn HW Compression) Module [  OK  ]
Stopping VTL Authentication Module [  OK  ]
Stopping VTL SNMPD Module [  OK  ]

2、初始化设置

[root@VTL150G3 ~]# vtl setup

TOYOU FEIJI ELECTRONICS CO. Virtual Tape Library Server v5.10 (Build 2030) Setup
Copyright (c) 2003-2009 FalconStor Software. All Rights Reserved.

WARNING: Configuration file already exists: /usr/local/vtl/etc/VTL150G3/ipstor.conf
Overwrite? (y/n) y //键入y,回车确认
Supported SCSI device(s) found: 16

3、启动vtl虚拟库库系统

[root@VTL150G3 ~]# vtl start

NetStor VTL Server v5.10 (Build 2030)
Copyright (c) 2003-2009 FalconStor Software. All Rights Reserved.

Starting VTL Configuration Module [RUNNING]
Starting VTL Base Module [RUNNING]
Starting VTL HBA Module [RUNNING]
Starting VTL SNMPD Module [  OK  ]
Starting VTL Authentication Module [  OK  ]
Starting VTL Server (Compression) Module [  OK  ]
Starting VTL Server (HiFn HW Compression) Module [  OK  ]
Starting VTL Server (FSNBase) Module [  OK  ]
Starting VTL Server (Upcall) Module [  OK  ]
Starting VTL Server (Transport) [  OK  ]
Starting VTL Server (Event) Module [  OK  ]
Starting VTL Server (Path Manager) Module [  OK  ]
Starting VTL Server (Application) [  OK  ]
Starting VTL Target Module [  OK  ]
Starting VTL FSVSHOST Module [  OK  ]
Loading  VTL Resources [  OK  ]
Starting VTL Server IMA Daemon [  OK  ]
Starting VTL Server RDE Daemon [  OK  ]
Starting VTL Communication Module [  OK  ]
Starting VTL CLI Proxy Module [  OK  ]
Starting VTL Logger Module [  OK  ]
Starting VTL Self Monitor Module [  OK  ]

部分截图: