
Veeam衛(wèi)盟是什么?Veeam在 Gartner 2021年“企業(yè)備份與恢復軟件解決方案”魔力象限,同時也是Veeam 第五次入選領導者象限,實力和地位毋庸置疑。
Veeam的官網為 https://www.veeam.com/cn/
Veeam與其他備份軟件的對比 https://www.veeam.com/cn/backup-software-comparison-for-small-business.html
勒索軟件猖獗,備份非常重要

實驗目標:
1、windows平臺+linux存儲庫架構部署
2、虛擬機備份還原
3、物理機完全崩潰還原
4、應用感知、數據庫備份還原
5、SAP數據庫插件安裝
實驗環(huán)境:
windows2022+Alma8搭建備份系統
vSphere7下進行windows2016虛擬機備份還原
Centos7系統進行rm -rf /*,模擬系統完全崩潰,物理機恢復
windows2016系統安裝sqlserver2014進行數據庫感知、備份、還原
centos7安裝SAP備份插件
一、windows2022+Alma8搭建備份系統
從官網下載Veeam Backup & Replication 11 其中免費社區(qū)版提供10個工作負載,而企業(yè)版購買后授權50個起步,本次實驗使用社區(qū)免費版搭建
https://www.veeam.com/cn/downloads.html
windows2022配置為 8cpu 16Gram 200G硬盤
Alma8配置為 8cpu 16Gram 200G系統盤+1T存儲盤
1、安裝windows平臺軟件,Veeam安全包包含所需的全部組件,按提示下一步直至安裝完成



2、部署Alma8存儲庫
查看當前磁盤信息,1T的硬盤是我們的目標
[root@alma8 ~]# fdisk -l
Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 Sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: A2B91132-AE20-4646-8C52-9DACFD8A31AF
Device Start End Sectors Size Type
/dev/sda1 2048 1230847 1228800 600M EFI System
/dev/sda2 1230848 3327999 2097152 1G Linux Filesystem
/dev/sda3 3328000 419428351 416100352 198.4G Linux LVM
Disk /dev/sdb: 1 TiB, 1099511627776 bytes, 2147483648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
創(chuàng)建分區(qū)
[root@alma8 ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xf70aaad4.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-2147483647, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-2147483647, default 2147483647):
Created a new partition 1 of type 'Linux' and of size 1024 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
查看創(chuàng)建后的分區(qū)
[root@alma8 ~]# fdisk -l /dev/sdb
Disk /dev/sdb: 1 TiB, 1099511627776 bytes, 2147483648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf70aaad4
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 2147483647 2147481600 1024G 83 Linux
創(chuàng)建文件系統
[root@alma8 ~]# mkfs.XFS -b size=4096 -m reflink=1,crc=1 /dev/sdb1
meta-data=/dev/sdb1 isize=512 agcount=4, agsize=67108800 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=268435200, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=131071, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Discarding blocks...Done.
創(chuàng)建掛載目錄,掛載,設置開機啟動掛載,重啟確認掛載是否正常
[root@alma8 ~]# mkdir /mnt/veeamRepo
[root@alma8 ~]# mount /dev/sdb1 /mnt/veeamRepo/
[root@alma8 ~]# df -hT /dev/sdb1
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 xfs 1.0T 7.2G 1017G 1% /mnt/veeamRepo
[root@alma8 ~]# blkid /dev/sdb1
/dev/sdb1: UUID="b805dd02-9105-4ddc-ad64-1004e01d10cb" BLOCK_SIZE="512" TYPE="xfs" PARTUUID="f70aaad4-01"
[root@alma8 ~]# vi /etc/fstab
UUID=b805dd02-9105-4ddc-ad64-1004e01d10cb /mnt/veeamRepo xfs defaults 0 0
添加Veeam專屬用戶,為目標目錄配置權限
[root@alma8 ~]# useradd -d /home/VeeamRepo -m VeeamRepo
[root@alma8 ~]# passwd VeeamRepo
Changing password for user VeeamRepo.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
[root@alma8 ~]# chown VeeamRepo:VeeamRepo /mnt/veeamRepo/
[root@alma8 ~]# chmod 700 /mnt/veeamRepo/
[root@alma8 ~]# ls -l /mnt/
total 0
drwx------. 2 VeeamRepo VeeamRepo 6 Jun 24 19:44 veeamRepo
為VeeamRepo用戶配置sudo權限,此權限是為了安裝veeam存儲庫軟件,后面安裝完會取消
[root@alma8 ~]# visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
VeeamRepo ALL=(ALL) ALL
3、在veeam平臺添加Backup Repository存儲庫

存儲庫系統類型linux

存儲庫命名

添加服務器

目標IP

目標用戶名密碼


保存ssh指紋


點擊Populate可查看分區(qū)情況

選擇保存位置、開啟XFS fast cloning、開啟7天內防刪除

添加完成

4、關閉linux sudo用戶
[root@alma8 ~]# visudo
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
#VeeamRepo ALL=(ALL) ALL
查看linux上veeam進程信息
[root@alma8 ~]# ps aux | grep veeam
VeeamRe+ 8874 0.0 0.1 1348496 19640 ? Ssl 20:01 0:00 /opt/veeam/transport/veeamtransport --run-service
root 8878 0.0 0.0 100212 7168 ? Sl 20:01 0:00 /opt/veeam/transport/veeamtransport --run-environmentsvc 7:6
root 8880 0.1 0.0 167304 4600 ? Sl 20:01 0:00 /opt/veeam/transport/veeamimmureposvc --subprocess --log /var/log/VeeamBackup --stdio 9:7
root 9657 0.0 0.0 221928 1152 pts/0 S+ 20:10 0:00 grep --color=auto veeam
備份系統配置完成
添加linux存儲庫后,可將windows上默認的存儲庫刪除
二、vSphere7下進行windows2016虛擬機備份還原
1、接入vCenter,按提示下一步即可

添加完成

2、創(chuàng)建備份計劃




配置定時執(zhí)行策略

我這里僅執(zhí)行一次

備份中

備份完成可查看備份報告

3、快速恢復
veeam快速恢復功能,可以在通過掛載備份庫的方式直接拉起虛擬機,快速恢復業(yè)務

可以選擇要恢復的時間點,默認為最后一次備份

覆蓋原虛擬機還是新建虛擬機


如果原虛擬機還在線,那么快速恢復的虛擬機不要同時連接網絡,防止IP沖突

虛擬機已經快速上線

此時我們可以在veeam選擇將所有文件遷移到虛擬化,或者關閉這個虛擬機

三、物理機Centos7系統進行rm -rf /*模擬系統完全崩潰備份還原
對物理機centos7系統進行完全備份,此時需要添加物理機備份組和策略


對系統執(zhí)行破壞操作,重啟后無法進入系統
rm -rf /*


恢復方案一:將備份掛載到虛擬化快速恢復業(yè)務

掛載到虛擬機后需要重新配置網絡

恢復方案二:通過恢復鏡像對物理機進行完全恢復
物理機制作 veeam-recovery-media-5.0.2.4567_x86_64.iso 啟動盤并啟動

同意協議

設置網絡


選擇卷還原,鏈接到veeam平臺


選擇還原點


還原中


還原完成,移除啟動盤,此時業(yè)務已經完全恢復

四、windows2016系統安裝sqlserver2014進行數據庫感知備份還原

添加2016系統,并開啟應用感知,接入虛擬化和物理機都可以
如果系統管理員也是數據庫管理員,那么只需要配置系統管理員賬號密碼;如果系統管理員不是數據庫管理員,那么還需要單獨配置sa用戶

立即進行備份

模擬黑客攻擊,刪除3個數據庫

通過veeam進行sql數據庫單獨恢復,需要開放數據庫1433端口


快速掛載成功


五、centos7安裝SAP備份agent(僅安裝插件)
進行SAP備份時需要將存儲庫的訪問設置為管理員訪問


上傳、安裝、配置SAP插件
[root@hfish ~]# yum localinstall VeeamPluginforSAPHANA-11.0.1.1261-1.x86_64.rpm
已加載插件:fastestmirror
正在檢查 VeeamPluginforSAPHANA-11.0.1.1261-1.x86_64.rpm: VeeamPluginforSAPHANA-11.0.1.1261-1.x86_64
VeeamPluginforSAPHANA-11.0.1.1261-1.x86_64.rpm:不更新已安裝的軟件包。
無須任何處理
[root@hfish ~]# SapBackintConfigTool --wizard
Enter backup server name or IP address: 172.16.21.130
Enter backup server port number [10006]:
Enter username: administrator
Enter password for administrator:
Available backup repositories:
1. Backup Repository linux
Enter repository number: 1
Configuration result:
完畢
好了,這篇文章的內容發(fā)貨聯盟就和大家分享到這里,如果大家網絡推廣引流創(chuàng)業(yè)感興趣,可以添加微信:80709525 備注:發(fā)貨聯盟引流學習; 我拉你進直播課程學習群,每周135晚上都是有實戰(zhàn)干貨的推廣引流技術課程免費分享!