Kết Quả Học Tập
- Cấu hình S3-compatible Object Storage repository trong Veeam (MinIO, AWS S3)
- Tích hợp Azure Blob Storage làm Capacity Tier trong Scale-Out Backup Repository
- Hiểu và cấu hình Veeam Cloud Connect (backup tới Cloud Gateway của provider)
- Phân tích chi phí cloud backup (AWS S3 vs Azure Blob vs MinIO on-prem)
- Thiết kế kiến trúc 3-2-1-1-0 với cloud tier và compliance requirements
- Hiểu data sovereignty requirements — lựa chọn cloud provider phù hợp cho VN
1 Lý Thuyết: Cloud Backup Architecture
Kiến Trúc Tổng Quan
┌─────────────────────────────────────────────────────────────────────┐
│ ON-PREMISE │
│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │
│ │ Production │ │ Veeam │ │ Local Backup Repo │ │
│ │ VMs │──▶│ Server │──▶│ (Performance Tier) │ │
│ │ (ESXi/HV) │ │ + Proxy │ │ Fast disk, 7-30 days │ │
│ └─────────────┘ └──────────────┘ └────────────┬─────────────┘ │
└─────────────────────────────────────────────────────┼───────────────┘
│ WAN / Internet
┌───────────────────────▼───────────────┐
│ CLOUD TIER │
│ ┌──────────┐ ┌─────────┐ ┌────────┐ │
│ │ AWS S3 │ │ Azure │ │ GCS │ │
│ │ Standard │ │ Blob │ │Standard│ │
│ │ Infreq. │ │ Cool │ │Nearline│ │
│ │ Glacier │ │ Archive │ │Coldline│ │
│ └──────────┘ └─────────┘ └────────┘ │
└───────────────────────────────────────┘
3 Mô Hình Cloud Backup
Model 1: Direct to Cloud
Backup thẳng lên cloud, không lưu local
Tiết kiệm local storage
Phụ thuộc internet, restore chậm
Model 2: Cloud as Capacity Tier
Local cho hot data, cloud cho cold data (SOBR)
Best balance: speed + cost
Khuyến nghị cho enterprise
Model 3: Veeam Cloud Connect
Backup qua Cloud Gateway của service provider
Managed service, SLA guaranteed
Phụ thuộc provider, chi phí cao hơn
So Sánh Cloud Providers
| Provider | Cost/GB/tháng | Durability | Compliance VN | Region VN |
|---|---|---|---|---|
| AWS S3 Standard | $0.023 | 99.999999999% | Cần xem xét | Singapore (ap-se-1) |
| AWS S3 Glacier | $0.004 | 99.999999999% | Cần xem xét | Singapore |
| Azure Blob Cool | $0.01 | 99.999999999% | Cần xem xét | SE Asia (Singapore) |
| Azure Blob Archive | $0.00099 | 99.999999999% | Cần xem xét | SE Asia |
| MinIO On-Prem | Chi phí điện + disk | Theo cấu hình | Trong nước | Datacenter VN |
| VNG Cloud S3 | ~$0.015-0.02 | 99.9% | Trong nước | HCM, HN |
A LAB 9A: Cấu Hình S3-Compatible Object Storage (MinIO)
Step 1: Deploy MinIO Server On-Premises
Expected output: MinIO Console accessible tại http://minio-server:9001. Đăng nhập với veeamadmin/VeeamMinio123!
Step 2: Tạo Bucket và IAM User
Expected output: Bucket veeam-backups tạo thành công với versioning ON. Access Key và Secret Key để dùng trong bước tiếp theo.
Step 3: Thêm S3 Repository vào Veeam
Expected output: Repository "MinIO-OnPrem-S3" xuất hiện trong Backup Repositories list, trạng thái Connected.
Step 4: Test Backup VM lên S3 Bucket
Expected output: Job hoàn tất "Success", files .VBK và .VBM visible trong MinIO Console. Dung lượng ~5-15 GB (tùy VM size).
B LAB 9B: Azure Blob Integration & Capacity Tier
Step 1: Tạo Azure Storage Account
Expected output: Storage Account và Container tạo xong, accessible tại Azure Portal → Storage accounts → veeambackupstg2024.
Step 2: Tạo SAS Token (Shared Access Signature)
Expected output: SAS token string bắt đầu bằng sv=, kết thúc bằng chữ ký. Lưu vào password manager.
Step 3: Add Azure Blob Repository vào Veeam
Expected output: Repository "Azure-CapacityTier-SEA" xuất hiện, hiển thị capacity của Azure container.
Step 4: Cấu Hình Capacity Tier — Move Backups >30 Ngày lên Azure
Expected output: Tiering job chạy, .VBK files cũ hơn 30 ngày xuất hiện trong Azure Blob container. Local repo giảm dung lượng.
C LAB 9C: Veeam Cloud Connect (Giới Thiệu)
Kiến Trúc Veeam Cloud Connect
Client Site (On-Premise) Cloud Provider Site
┌─────────────────────┐ ┌──────────────────────────────┐
│ Veeam Backup │ │ Cloud Gateway │
│ & Replication │──── TLS ────▶│ (Provider's Veeam Server) │
│ (Tenant) │ 8443 │ │
│ │ │ Cloud Repository │
│ Backup jobs │ │ (Tenant's storage) │
│ point to Cloud │ │ /TenantName/backups/ │
│ Repository │ │ │
└─────────────────────┘ └──────────────────────────────┘
↓ Managed by Cloud Provider
(Viettel IDC, CMC, FPT Cloud VN)
Cấu Hình Cơ Bản (Tenant Side)
Expected output: Backup job chạy qua port 8443 tới Cloud Gateway, traffic được mã hóa end-to-end.
B Bài Tập Thực Hành
BT1: Cloud Cost Calculator
Công ty có 10 TB backup data, lưu trữ 12 tháng. Tính tổng chi phí cho:
- • AWS S3 Standard-IA: $0.0125/GB/tháng + $0.01/GB egress
- • Azure Blob Cool: $0.01/GB/tháng + $0.015/GB egress (1 lần restore/năm)
- • MinIO on-prem: 2 servers × 100 triệu × depreciation 5 năm + điện
Xem gợi ý giải
BT2: Thiết Kế 3-2-1-1-0 với Cloud Tier
Vẽ sơ đồ kiến trúc 3-2-1-1-0 rule với cloud tier. Chú thích rõ:
- • 3 copies of data
- • 2 different media types
- • 1 offsite copy
- • 1 offline/air-gapped copy
- • 0 errors (verified restore)
Xem gợi ý giải
BT3: SOBR Tiering Policy Design
Thiết kế tiering policy cho SOBR với yêu cầu:
- • Data mới (0-30 ngày): cần restore nhanh trong 1 giờ — local SSD
- • Data cũ (30-365 ngày): chấp nhận restore 4-8 giờ — cloud
- • Data lưu trữ (1-7 năm): compliance, ít restore — tape/archive
BT4: Compliance Scenario — Data Phải Lưu Trong Lãnh Thổ VN
Khách hàng là ngân hàng, theo Thông tư 09/2020/TT-NHNN, dữ liệu khách hàng phải lưu trong lãnh thổ Việt Nam. Câu hỏi:
- 1. AWS S3 Singapore region có đáp ứng không?
- 2. Providers nào tại VN hỗ trợ S3-compatible API?
- 3. MinIO on-prem trong DC tại VN có đáp ứng không?
Xem gợi ý giải
1. AWS S3 Singapore: KHÔNG đáp ứng — Singapore là lãnh thổ nước ngoài. Dữ liệu rời khỏi VN.
2. Providers VN hỗ trợ S3 API: VNG Cloud (S3-compatible), Viettel IDC, CMC Cloud — data center tại Hà Nội/HCM. Veeam có thể kết nối như S3 Compatible endpoint.
3. MinIO on-prem tại DC VN: ĐÁP ỨNG hoàn toàn — data không rời khỏi VN, kiểm soát hoàn toàn. Đây là lựa chọn tốt nhất cho bank, fintech.