← Solutions Notes

Huawei · OceanProtect · Field notes 6 of 6บันทึกงาน 6 จาก 6

VMware protection: picking the transport modeVMware: เลือกวิธีส่งข้อมูล

Almost every VMware backup design comes down to one decision — how the data gets off the datastore. Get it right and the window is comfortable; get it wrong and you are explaining why the production management network is saturated at 2am. งานออกแบบ VMware backup แทบทุกงานจบที่การตัดสินใจเรื่องเดียว คือข้อมูลจะออกจาก datastore ทางไหน เลือกถูกเวลาก็เหลือเฟือ เลือกผิดก็ต้องไปอธิบายว่าทำไมเครือข่ายจัดการของฝั่งโปรดักชันถึงเต็มตอนตีสอง

Modesโหมด
SAN · Hot-Add · NBDSSL · Storage layerStorage layer
Auto priorityลำดับที่ระบบเลือกเอง
SAN → Hot-Add → NBD
Per agentต่อหนึ่งเอเจนต์
15–20 jobsงานพร้อมกัน
Agent throughputความเร็วต่อเอเจนต์
300–450 MB/s

The four modes, side by sideสี่โหมด เทียบกันตรงๆ

When a job starts, the system picks a mode by priority: SAN first, then Hot-Add, then NBD/NBDSSL. That is worth knowing, because a design that assumed SAN will silently fall back to something slower if the prerequisites are not there.ตอนงานเริ่มทำงาน ระบบจะเลือกโหมดตามลำดับ คือ SAN ก่อน แล้ว Hot-Add แล้วค่อย NBD/NBDSSL ข้อนี้ควรรู้ เพราะถ้าออกแบบไว้ว่าจะใช้ SAN แต่เงื่อนไขไม่ครบ ระบบจะตกไปใช้โหมดที่ช้ากว่าโดยไม่บอก

Modeโหมด Client runs onเอเจนต์อยู่บน Good forเหมาะกับ The catchข้อเสีย
SAN
fastestเร็วสุด
Physical serverเครื่องจริง Best performance, and the traffic never touches the production host or its network — the client reads the datastore directly over SANเร็วที่สุด และข้อมูลไม่วิ่งผ่านเครื่องโปรดักชันหรือเครือข่ายของมันเลย เอเจนต์อ่าน datastore ผ่าน SAN ตรงๆ Needs a physical server and a dedicated SAN path; only works with SAN production storage; on restore it supports thick provision eager zeroed only, so it is a poor fit for lazy-zeroed or thin disksต้องมีเครื่องจริงและสาย SAN แยกต่างหาก ใช้ได้เฉพาะกับสตอเรจโปรดักชันแบบ SAN และตอนกู้คืนรองรับเฉพาะดิสก์แบบ thick provision eager zeroed จึงไม่เหมาะกับ lazy zeroed หรือ thin
Hot-Add A VMVM Second-best performance with no extra hardware; handles all three disk types and both local and external datastores — the recommended mode for eager-zeroed and thin disksเร็วรองจาก SAN และไม่ต้องซื้อเครื่องเพิ่ม รองรับดิสก์ทั้งสามแบบ และ datastore ทั้งแบบในเครื่องและภายนอก เป็นโหมดที่แนะนำสำหรับดิสก์แบบ eager zeroed และ thin The client VM must be able to reach the datastore it is backing up, and it eats production cluster resources — CPU, memory, network and licenceVM ที่ลงเอเจนต์ต้องเข้าถึง datastore ที่จะสำรองได้ และมันกินทรัพยากรของคลัสเตอร์โปรดักชัน ทั้งซีพียู แรม เครือข่าย และไลเซนส์
NBD / NBDSSL
last resortทางเลือกสุดท้าย
VM or physicalVM หรือเครื่องจริง Simplest possible deployment — only the management network to vCenter/ESXi is needed. Fine for small estates, or as a fallback when the other two are not availableติดตั้งง่ายที่สุด ใช้แค่เครือข่ายจัดการที่คุยกับ vCenter/ESXi ได้ เหมาะกับระบบเล็ก หรือใช้เป็นทางสำรองเมื่อสองโหมดแรกใช้ไม่ได้ Slow, and the backup traffic runs over the production management network — which is exactly where you do not want itช้า และข้อมูลสำรองวิ่งผ่านเครือข่ายจัดการของฝั่งโปรดักชัน ซึ่งเป็นที่ที่เราไม่อยากให้มันไปอยู่ที่สุด
Storage layerStorage layer Physical serverเครื่องจริง Built for OceanStor Dorado or NetApp ONTAP production storage where data changes a lotทำมาสำหรับสตอเรจโปรดักชันที่เป็น OceanStor Dorado หรือ NetApp ONTAP และข้อมูลเปลี่ยนบ่อย Tied to those storage families. With Dorado the appliance can mount the LUNs automatically; with anything else the LUNs are mounted to the client host by handผูกกับสตอเรจสองตระกูลนั้น ถ้าเป็น Dorado อุปกรณ์จะ mount LUN ให้อัตโนมัติ ถ้าเป็นยี่ห้ออื่นต้อง mount LUN เข้าเครื่องเอเจนต์เอง
Rule of thumbจำง่ายๆ

Customer already has SAN storage and will buy physical servers → SAN. No budget for physical servers → Hot-Add. Neither is possible → NBDSSL, and set the performance expectation before you deploy, not after.ลูกค้ามีสตอเรจ SAN อยู่แล้วและยอมซื้อเครื่องจริง → ใช้ SAN ไม่มีงบซื้อเครื่องจริง → ใช้ Hot-Add ทำสองแบบแรกไม่ได้เลย → ใช้ NBDSSL แล้วคุยเรื่องความเร็วให้จบก่อนติดตั้ง ไม่ใช่หลังติดตั้ง

How many agentsต้องใช้เอเจนต์กี่ตัว

One agent handles 15 to 20 concurrent VM jobs — the real limit is the number of virtual disks — and moves roughly 300 to 450 MB/s depending on the storage behind it, the network and how busy vSphere is.เอเจนต์หนึ่งตัวรับงานได้ 15 ถึง 20 VM พร้อมกัน โดยตัวจำกัดจริงคือจำนวนดิสก์ และส่งข้อมูลได้ราว 300 ถึง 450 MB/s ขึ้นกับสตอเรจข้างหลัง เครือข่าย และภาระของ vSphere ตอนนั้น

Starting point by estate sizeจุดตั้งต้นตามขนาดระบบ
Total VMsจำนวน VM ทั้งหมด Agentsจำนวนเอเจนต์
< 1002
100 – 5003 – 8
500 – 2,0009 – 20
> 2,000normally no more than 50ปกติไม่เกิน 50

Working it out for Hot-Addคำนวณสำหรับ Hot-Add

With a 10GE port per agent, the vendor's assumptions are 1.5 TB per hour per agent (about 400 MB/s), five minutes of non-transfer time per VM job, and an eight-hour nightly window. Two worked examples from those numbers:ถ้าเอเจนต์หนึ่งตัวมีพอร์ต 10GE หนึ่งพอร์ต ตัวเลขตั้งต้นของผู้ผลิตคือ 1.5 TB ต่อชั่วโมงต่อเอเจนต์ (ราว 400 MB/s) บวกเวลาที่ไม่ได้ส่งข้อมูลอีก 5 นาทีต่อหนึ่งงาน VM และมีเวลากลางคืน 8 ชั่วโมง จากตัวเลขชุดนี้ได้ตัวอย่างสองกรณี

First full backupFull backup ครั้งแรก

100 TB across 300 VMs → 9 agents. If the customer cannot give you nine, the first full needs its own plan — a longer window, or seeding in batches.ข้อมูล 100 TB จาก 300 VM → 9 เอเจนต์ ถ้าลูกค้าให้ไม่ถึงเก้าตัว ต้องวางแผน full ครั้งแรกแยกต่างหาก เช่นขอเวลานานขึ้น หรือทยอยทำเป็นรอบ

Daily changeข้อมูลที่เปลี่ยนต่อวัน

2 TB of daily change → 2 agents. This is the gap that catches people: steady state needs two, the first full needs nine.ข้อมูลเปลี่ยน 2 TB ต่อวัน → 2 เอเจนต์ ช่องว่างตรงนี้คือจุดที่คนพลาด ใช้งานปกติต้องการสองตัว แต่ full ครั้งแรกต้องการเก้าตัว

Network reachability the design has to guaranteeเส้นทางเครือข่ายที่แบบต้องรับประกันได้

VDDK

Backups of a vCenter older than 7.0 fail when VDDK 7.0.0 is in use. Add VDDK 7.0.x instead, and take the latest minor version — an older minor is a known way to get failed jobs with no obvious cause.การสำรอง vCenter ที่เก่ากว่า 7.0 จะล้มเหลวถ้าใช้ VDDK 7.0.0 ให้เพิ่ม VDDK 7.0.x เข้าไปแทน และเลือกเวอร์ชันย่อยล่าสุด เพราะเวอร์ชันย่อยเก่าเป็นสาเหตุที่ทำให้งานล้มโดยหาสาเหตุไม่เจอ

The rest of this seriesตอนอื่นในชุดนี้