Veeam University – Tuần 10
Tuần 10: Tape Library & Long-Term Archive
Tuần 9: Cloud Integration Index Tuần 11: Labs Practicum
3h
Thời lượng
3
Lab modules
3
Bài tập
6
Checklist items

Kết Quả Học Tập

1 Lý Thuyết: Tape Trong Modern Backup (2026)

Tại Sao Dùng Tape Năm 2026?

Dù cloud storage ngày càng rẻ, tape vẫn là lựa chọn không thể thay thế trong nhiều môi trường doanh nghiệp vì 3 lý do cốt lõi:

Air-Gap Tuyệt Đối

Tape ejected ra khỏi library = offline hoàn toàn. Ransomware không thể mã hóa tape đang nằm trong vault.

Chi Phí Thấp Nhất

LTO-9: ~$0.002/GB. So sánh: AWS Glacier $0.004/GB, Azure Archive $0.00099/GB. Tape rẻ nhất cho lưu trữ dài hạn.

Tuổi Thọ 30+ Năm

LTO cartridge được thiết kế lưu trữ 30 năm trong điều kiện phòng vault. HDD/SSD: 5-10 năm.

LTO Generations — Bảng So Sánh

Generation Capacity (Native) Capacity (2.5:1 compress) Transfer Speed Giá tape/cái
LTO-76 TB15 TB300 MB/s~$25 USD
LTO-8 (phổ biến)12 TB30 TB360 MB/s~$30 USD
LTO-9 (current)18 TB45 TB400 MB/s~$35 USD
LTO-10 (planned)36 TB90 TB900 MB/sTBD

* LTO drives đọc được 2 generations cũ hơn, ghi được 1 generation cũ hơn (backward compatibility)

Kiến Trúc Tape Library

┌─────────────────────────────────────────────────────────────────┐
│                      TAPE LIBRARY                               │
│                                                                 │
│  ┌──────────┐   ┌──────────────────────────────────────────┐   │
│  │  Robot   │   │              TAPE SLOTS                  │   │
│  │  Arm     │   │  [T001][T002][T003]...[T048][T049][T050] │   │
│  │  (chọn  │   │  [EMPTY][EMPTY][T006]...[VAULT SLOT]     │   │
│  │  tape)  │   │                                          │   │
│  └────┬─────┘   └──────────────────────────────────────────┘   │
│       │                                                         │
│  ┌────▼─────────────────────────────────┐                       │
│  │       TAPE DRIVES (LTO-9)            │                       │
│  │  [Drive 1: Writing - T003]           │                       │
│  │  [Drive 2: Reading - T015]           │                       │
│  └──────────────────────────────────────┘                       │
│                    │                                            │
│  ┌─────────────────▼────────────────────┐                       │
│  │         I/O PORT / MAILSLOT          │                       │
│  │   (Eject tape ra ngoài để vaulting)  │                       │
│  └──────────────────────────────────────┘                       │
└─────────────────────────────────────────────────────────────────┘
                    │
                    │ SAS / FC connection
                    ▼
              Tape Server (Windows)
              → Veeam Tape Service

LTFS — Linear Tape File System

LTFS cho phép mount tape cartridge như một filesystem thông thường — duyệt files bằng Windows Explorer, không cần phần mềm backup đặc biệt để đọc.

Ưu điểm LTFS

  • Truy cập file ngẫu nhiên như filesystem
  • Self-describing: tape tự chứa metadata
  • Open standard (LTFS 2.4) — không vendor lock-in
  • Kéo thả files vào tape như USB drive

Hạn chế LTFS

  • Overhead metadata ~5% capacity
  • Không hiệu quả cho nhiều files nhỏ
  • Sequential medium — seek time cao
  • Veeam dùng format riêng (VTF) không phải LTFS

2 Lý Thuyết: GFS Retention (Grandfather-Father-Son)

Sơ Đồ GFS Rotation

GFS là phương pháp xoay vòng tape truyền thống: giữ nhiều phiên bản backup ở các mốc thời gian khác nhau với chi phí tape tối thiểu.

GFS Hierarchy:
┌─────────────────────────────────────────────────────────────────┐
│  GRANDFATHER (Yearly)  │  Giữ 7 năm  │  1 tape/năm = 7 tapes  │
│  FATHER (Monthly)      │  Giữ 12 tháng│  1 tape/tháng = 12 tp  │
│  SON (Weekly/Daily)    │  Giữ 4 tuần  │  1 tape/tuần = 4 tapes │
└─────────────────────────────────────────────────────────────────┘

THÁNG 1 - Lịch backup:
┌────┬────┬────┬────┬────┬────┬────┐
│ T2 │ T3 │ T4 │ T5 │ T6 │ T7 │ CN │
├────┼────┼────┼────┼────┼────┼────┤
│ D1 │ D2 │ D3 │ D4 │ D5 │    │ W1 │  ← Son (Weekly Full T7)
│ D6 │ D7 │ D8 │ D9 │D10 │    │ W2 │
│D13 │D14 │D15 │D16 │D17 │    │ W3 │
│D20 │D21 │D22 │D23 │D24 │    │ W4 │
│D27 │D28 │D29 │D30 │D31 │    │ M1 │  ← Father (Monthly Full T2)
└────┴────┴────┴────┴────┴────┴────┘
                              ↑
                    Ngày cuối tháng → Monthly tape (Father)
                    Tháng 12 → Yearly tape (Grandfather)

Số tapes cần thiết (standard policy D-7/W-4/M-12/Y-7):
  Daily tapes:   5 (Mon-Fri, rotate)
  Weekly tapes:  4
  Monthly tapes: 12
  Yearly tapes:  7
  TOTAL:         28 tapes minimum (+ spare tapes)
Retention Level Tên tape Giữ bao lâu Số tapes Lưu trữ
Son (Daily)MON, TUE, WED, THU, FRI1 tuần5On-site (nhanh restore)
Son (Weekly)WEEK-01, WEEK-02, WEEK-03, WEEK-044 tuần4On-site
Father (Monthly)JAN, FEB, MAR ... DEC12 tháng12Off-site Vault
Grandfather (Yearly)YEAR-2019 ... YEAR-20257 năm7Off-site Secure Vault

A LAB 10A: Cấu Hình Tape Library Trong Veeam

Lưu Ý Lab Environment

Lab này yêu cầu tape library vật lý hoặc Virtual Tape Library (VTL) như mhVTL (Linux). Nếu không có phần cứng thật, dùng mhVTL trên Ubuntu VM để mô phỏng toàn bộ quy trình.

Step 1: Cài mhVTL (Virtual Tape Library) Trên Linux

# Trên Ubuntu 22.04 VM (dùng làm Tape Server): sudo apt-get update sudo apt-get install -y mhvtl mhvtl-utils # Khởi động mhVTL service: sudo systemctl enable mhvtl sudo systemctl start mhvtl sudo systemctl status mhvtl # Kiểm tra virtual tape devices đã xuất hiện: ls /dev/st* # Sequential tape devices ls /dev/nst* # Non-rewinding tape devices ls /dev/sg* # SCSI generic (changer) # Liệt kê virtual library configuration: lsscsi -g # Output mẫu: # [0:0:0:0] mediumx QUANTUM Scalar i500 ... /dev/sg1 # [0:0:1:0] tape IBM ULT3580-TD8 ... /dev/st0 # [0:0:2:0] tape IBM ULT3580-TD8 ... /dev/st1

Expected output: mhVTL running, /dev/st0, /dev/st1 (tape drives) và /dev/sg1 (changer/robot) visible trong lsscsi.

Step 2: Thêm Tape Server vào Veeam

# Yêu cầu: Windows Server với tape library driver # Hoặc: Kết nối mhVTL Linux qua iSCSI tới Windows Tape Server # Trong Veeam Console: Backup Infrastructure → Tape Infrastructure → Add Tape Server Server: TapeServer-Win01 (Windows Server 2019) Credentials: veeam-svc (domain admin) → Next → Review → Apply → Finish # Veeam sẽ cài Veeam Tape Service trên TapeServer-Win01 # Kiểm tra service trên Windows: Get-Service "VeeamTapeService" | Select Status # Expected: Running

Expected output: TapeServer-Win01 xuất hiện trong Tape Infrastructure tree với status "Connected".

Step 3: Inventory Tapes — Phát Hiện Cartridges

# Scan library để phát hiện tất cả tapes: Tape Infrastructure → Libraries → [Library Name] → Right-click → Inventory Library # Veeam sẽ robot scan từng slot, đọc barcode label: Slot 01: T000001L9 [Free] Slot 02: T000002L9 [Free] ... Slot 10: T000010L9 [Free] I/O Port: [Empty] # Label tapes (nếu chưa có barcode): # Right-click tape → Label # Label format: T[000001-000050]L9 (prefix + seq + LTO-9)

Expected output: Tất cả tapes hiển thị trong Tape Slots view với barcode và trạng thái Free/Used.

Step 4: Tạo Media Pools — Daily và Monthly

# Tạo Media Pool "Daily-Pool": Tape Infrastructure → Media Pools → Add Media Pool → Name: Daily-Pool → Media Set: Create new media set: Daily → Options: Free media: Use any free media Retention: Do not protect (overwrite after use) Append option: Append until media full → Finish # Tạo Media Pool "Monthly-Pool": → Name: Monthly-Pool → Media Set: Create new media set for each month → Options: Free media: Use only free media labeled "MONTH-" Retention: Protect for 12 months After retention: Eject and export to vault → Finish # Gán tapes vào pools (kéo thả trong Console): T000001L9 → T000005L9: Daily-Pool (5 tapes Mon-Fri) T000010L9 → T000013L9: Daily-Pool (4 tapes Weekly) T000020L9 → T000031L9: Monthly-Pool (12 tapes Monthly) T000040L9 → T000046L9: Yearly-Pool (7 tapes Yearly)

Expected output: Media Pools "Daily-Pool" và "Monthly-Pool" hiển thị trong tree, mỗi pool có tapes được gán đúng.

B LAB 10B: Tạo Backup to Tape Job

Step 1-2: Tạo Backup to Tape Job

# Home → Jobs → Tape → Backup to Tape: Name: "Daily-Tape-Backup" Description: "Daily backup of all VMs to tape via GFS" # Source — chọn nguồn backup: Object to archive: Backup repositories → Add: Local-Repo (chứa VBK files của tất cả VMs) → Process latest backup chain only: ✓ Yes # Target — chọn tape pool: Media pool: Daily-Pool # Options: Enable hardware compression: ✓ Yes (drive-level) Enable encryption: ✓ Yes (AES-256) Password: [Set strong password] Eject media on job completion: ✓ No (daily tapes stay in library)

Step 4: Cấu Hình Schedule

# Schedule tape job chạy SAU khi backup disk job hoàn tất: Schedule: ○ Run the job automatically ● After this job: Primary-Backup-Job → Run tape job after disk backup finishes # Hoặc set time-based schedule: ● Daily at: 03:00 AM (sau khi disk backup ~02:00 xong) Days: Monday - Friday # Retry settings: Retry failed items: 3 times Wait before retry: 10 minutes

Expected output: Job "Daily-Tape-Backup" hiển thị trong Jobs list. Khi chạy, Veeam đọc từ disk repo → write lên tape trong Daily-Pool.

Step 5: Chạy Job và Verify

# Chạy job thủ công lần đầu để test: Right-click "Daily-Tape-Backup" → Start # Theo dõi trong Job History: [14:30:05] Starting tape job Daily-Tape-Backup [14:30:06] Loading tape T000001L9 into Drive 1 [14:30:45] Processing VM Web-01 backup chain [14:31:12] Copying full backup (15.2 GB)... [14:33:48] Copying incremental (1.3 GB)... [14:35:02] Processing VM DB-01 backup chain [14:36:45] Copying full backup (45.8 GB)... [14:42:10] Tape T000001L9: 62.3 GB written [14:42:12] Rewinding tape... [14:42:15] Job completed successfully # Verify tape contents: Tape Infrastructure → Tapes → T000001L9 → Contents tab: Thấy danh sách VMs và backup dates

Expected output: Job status "Success". Tape T000001L9 có trạng thái "Full" hoặc "Used", Contents tab liệt kê đầy đủ VMs và restore points.

C LAB 10C: GFS Configuration & Vaulting

Step 1: Cấu Hình GFS trên Tape Job

# Edit "Daily-Tape-Backup" job → Storage step: GFS retention: ✓ Keep weekly full backups for: 4 weeks ✓ Keep monthly full backups for: 12 months ✓ Keep yearly full backups for: 7 years # Weekly full: tự động designate tape thứ Sáu làm "Weekly" # Monthly full: designate tape cuối tháng làm "Monthly" # Yearly full: designate tape tháng 12 làm "Yearly" Media pools cho từng GFS level: Daily/Weekly: Daily-Pool Monthly: Monthly-Pool (tapes được eject sau khi full) Yearly: Yearly-Pool (tapes được eject và vault offsite) # Sau khi save, xem GFS calendar trong: Home → Last 24 Hours → [Tape Job] → GFS Schedule view

Expected output: GFS settings hiển thị trong job properties. Calendar view cho thấy Daily/Weekly/Monthly/Yearly tapes được plan đúng.

Step 2: Export Tapes — Eject Monthly Tapes cho Offsite Vault

# Cuối mỗi tháng, eject Monthly tape ra khỏi library: Tape Infrastructure → Libraries → [Library] → Tapes → Filter: Pool = Monthly-Pool, Status = Full Select tape T000020L9 (MONTH-JAN-2026) → Right-click → Export to vault # Veeam sẽ: 1. Robot arm lấy T000020L9 từ slot 2. Đưa vào I/O Port (mailslot) 3. Thay đổi status: "In Vault" 4. Ghi chú vào Tape Catalog: exported on [date] # Operator thực hiện vaulting: - Mở I/O Port, lấy tape ra - Đánh label ngoài cartridge: "MONTH-JAN-2026 | Vault" - Ghi vào Tape Log sheet (date, slot number, destination vault) - Chuyển tape đến offsite vault (tủ fireproof hoặc bank safe) # Track vault location trong Veeam: Right-click tape → Properties → Location: "Offsite Vault Rm B204"

Expected output: Tape T000020L9 trạng thái "In Vault", Library Slot empty, I/O Port hiển thị tape chờ được lấy ra.

Step 3: Import Vault Tapes và Restore Test

# Nhận tape từ vault, import vào library: 1. Đặt tape vào I/O Port của library 2. Tape Infrastructure → Libraries → [Library] → Right-click I/O Port → Import # Veeam scan tape catalog, nhận biết T000020L9: [15:00:01] Importing tape T000020L9 [15:00:15] Reading tape catalog... [15:00:42] Found 48 restore points from JAN 2026 [15:00:42] Tape imported successfully # Thực hiện restore test: Home → Restore → From Tape → Select: T000020L9 → Browse contents → Choose VM: DB-01 (January 31, 2026) → Restore to: New location (restore sandbox) → Reason: Monthly tape restore verification test # Verify restored VM: Power on restored VM → login → check app running → Ghi kết quả vào Tape Test Log (ngày, tape ID, status)

Expected output: DB-01 restore thành công từ tape, VM boot bình thường. Tape Test Log ghi "Verified OK - 2026-02-01".

B Bài Tập Thực Hành

BT1: Tính Số LTO-8 Tapes Cho 1 Năm

Môi trường: 50 VMs × 100 GB mỗi VM (total 5 TB). Compression ratio 2:1. GFS policy: D-7/W-4/M-12/Y-1.

Dùng LTO-8: 12 TB native capacity. Tính số tapes cần cho 1 năm đầy đủ.

Xem gợi ý giải
Raw data per full backup: 50 VMs × 100 GB = 5,000 GB = 5 TB After compression (2:1): 5,000 / 2 = 2,500 GB = 2.5 TB per full Tapes per full backup: ceil(2,500 / 12,288) = 1 tape/full (LTO-8 native = 12 TB = 12,288 GB, compressed = 30 TB) → 1 tape per full backup (fits comfortably) GFS Tape Count: Daily (Mon-Fri, 5 days × 52 weeks): Incremental size ≈ 5% daily change = 250 GB/day compressed → 1 tape holds ~49 days of incrementals → Keep 7 days = 7 daily tapes (rotate) = 7 tapes Weekly Full (4 tapes retained): 1 full = 2.5 TB → 1 LTO-8 tape = 4 tapes Monthly Full (12 tapes retained): 1 full = 2.5 TB → 1 LTO-8 tape = 12 tapes Yearly Full (1 tape): 1 full = 2.5 TB → 1 LTO-8 tape = 1 tape TOTAL minimum: 7 + 4 + 12 + 1 = 24 tapes Recommend +20% buffer: 24 × 1.2 = ~29 tapes Purchase: 30 tapes (~900 USD for LTO-8 cartridges)

BT2: Thiết Kế Tape Rotation Schedule Cho Ngân Hàng

Ngân hàng có yêu cầu compliance 7 năm theo Thông tư 18/2018/TT-NHNN. Thiết kế tape rotation schedule bao gồm:

  • 1. Số tapes cần mua và phân loại (Daily/Weekly/Monthly/Yearly)
  • 2. Quy trình vaulting: ai lấy tape, lưu ở đâu, kiểm tra định kỳ
  • 3. DR procedure: khi cần restore yearly tape từ 3 năm trước
Xem gợi ý giải

Tape inventory: D-5 (7 tapes) + W-4 + M-12 + Y-7 = 30 tapes. Thêm 10 spare = 40 tapes tổng.

Vaulting procedure: IT Manager ký phiếu xuất tape mỗi đầu tháng → Security Officer đưa vào két sắt trong trụ sở chính → Yearly tapes gửi đến DR site (cách 50km+).

Annual verify: Quý 1 mỗi năm: restore ngẫu nhiên 3 tapes (1 monthly + 1 weekly + 1 yearly) → ghi biên bản verify → lưu file audit.

DR restore procedure: Yêu cầu tape từ vault (SLA 4h) → Import vào library → Restore VM sang DR site → Verify → Document RTO achieved.

BT3: Air-Gap Analysis — Tape vs Cloud Cho Ransomware Protection

Phân tích kịch bản ransomware tấn công toàn bộ hệ thống, mã hóa tất cả storage kết nối với mạng. So sánh khả năng phục hồi từ:

  1. A. Azure Blob Immutable backup (WORM, immutability lock)
  2. B. Tape ejected và lưu trong vault offsite
  3. C. Disk-based backup trong isolated network (air-gapped VLAN)
Xem gợi ý giải

A. Azure Blob Immutable: WORM ngăn xóa/sửa data, nhưng nếu Veeam server bị compromised và attacker có credentials, họ vẫn có thể không delete nhưng có thể đọc data (exfiltration). Immutability bảo vệ AVAILABILITY, không bảo vệ CONFIDENTIALITY. Restore cần internet working.

B. Tape offsite (BEST): Tape đang nằm trong vault = hoàn toàn offline. Ransomware KHÔNG THỂ reach tape. Không cần network để restore. Duy nhất hạn chế: RTO cao hơn (cần vật lý lấy tape về). Đây là gold standard cho air-gap.

C. Air-gapped VLAN: Tốt hơn internet-connected backup, nhưng nếu attacker có lateral movement trong internal network, VLAN isolation có thể bị bypass. Phụ thuộc vào firewall rules và network segmentation quality.

Kết luận: Tape > Air-gapped VLAN > Cloud Immutable cho ransomware air-gap protection. Best practice: kết hợp cả ba.

Checklist Hoàn Thành Tuần 10

Tuần 9: Cloud Integration
Hoàn thành 6 checklist trước khi tiếp tục
Tuần 11: Labs Practicum