← Solutions Notes

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

OpenStack backup: what to settle before you designข้อจำกัดที่ต้องรู้ก่อนออกแบบ OpenStack backup

What the appliance takes care of, what it leaves to you, and the job behaviour that makes a backup window longer than planned. All three are worth knowing while you draw the design, not on install day. เครื่องทำอะไรให้ได้บ้าง อะไรที่มันไม่ทำแล้วเราต้องไปหาทางอื่น และงานสำรองข้อมูลมีนิสัยอะไรที่ทำให้ใช้เวลานานกว่าที่คิด สามเรื่องนี้ควรรู้ตอนเขียนแบบ ไม่ใช่ไปรู้เอาตอนติดตั้งหน้างาน

Platformแพลตฟอร์ม
OpenStack · FusionSphere
Appliancesรุ่นที่ครอบคลุม
X6000 / X8000 / X9000 / E6000
Softwareเวอร์ชันซอฟต์แวร์
V200R001C10
Copy formatรูปแบบสำเนา
Native snapshotNative snapshot

Scope of protectionปกป้องอะไรได้บ้าง

Protectedปกป้องได้

  • Cloud servers (VMs) — the whole VM or selected virtual disksCloud server (VM) — ทั้งเครื่อง หรือเลือกเฉพาะดิสก์บางลูก
  • Cloud disks attached to those serversCloud disk ที่ต่ออยู่กับเครื่องนั้น
  • Guest OS, application files, user data, configurationระบบปฏิบัติการ ไฟล์แอปพลิเคชัน ข้อมูลผู้ใช้ และค่าตั้งต่างๆ
  • VMs in running, stopped or suspended stateVM ที่อยู่ในสถานะ running, stopped หรือ suspended

Out of scopeอยู่นอกขอบเขต

  • Bare metal servers (BMS) — cannot be backed up, and cannot be a restore targetเครื่องจริง (BMS) — สำรองไม่ได้ และกู้คืนลงไปก็ไม่ได้
  • Local disks and shared disksดิสก์ในเครื่อง (local disk) และดิสก์ที่ใช้ร่วมกัน (shared disk)
  • Application-consistent backup — only crash-consistent is availableการสำรองแบบ application-consistent — ทำได้แค่ crash-consistent เท่านั้น
  • Any VM in a state other than the three aboveVM ที่อยู่ในสถานะอื่นนอกจากสามสถานะข้างต้น
Watchระวัง

Crash consistency is the one to raise early with database owners. If the application team wants quiesced, transaction-consistent copies, that has to come from somewhere else — a bigger appliance or a faster network will not give it to you.เรื่อง crash-consistent ควรคุยกับเจ้าของฐานข้อมูลตั้งแต่ต้น ถ้าทีมแอปอยากได้สำเนาที่หยุดงานให้เรียบร้อยก่อน (transaction-consistent) ต้องไปหาวิธีอื่นมาเสริม เพราะซื้อเครื่องใหญ่ขึ้นหรือเน็ตเร็วขึ้นก็ไม่ช่วย

The capacity nobody puts in the sizing sheetพื้นที่ที่ไม่มีใครใส่ไว้ในใบคำนวณ

Backup creates temporary volumes on the production storage. The space they take equals the size of the volume being backed up, so the OpenStack side needs free capacity during the backup window — not only the backup appliance.ตอนสำรองข้อมูล ระบบจะสร้าง volume ชั่วคราวบนสตอเรจฝั่งโปรดักชัน พื้นที่ที่ใช้เท่ากับขนาดของ volume ที่กำลังสำรอง แปลว่าฝั่ง OpenStack ต้องมีพื้นที่ว่างพอระหว่างช่วงสำรองข้อมูล ไม่ใช่แค่ฝั่งอุปกรณ์สำรองข้อมูล

On the restore side, the target must have more free space than the copy, and restoring a whole VM or a new volume needs reserved space larger than the resource itself. A restore that runs out of space fails; it does not pause and wait.ฝั่งกู้คืนก็เหมือนกัน ปลายทางต้องมีพื้นที่ว่างมากกว่าขนาดสำเนา และถ้ากู้ทั้ง VM หรือสร้าง volume ใหม่ ต้องมีพื้นที่จองไว้มากกว่าขนาดของตัวข้อมูลเอง งานกู้คืนที่พื้นที่ไม่พอจะล้มเหลวทันที ไม่ได้หยุดรอ

Snapshot-consistent backup and linked clonesSnapshot-consistent backup และ linked clone

Linked clone volumes take noticeably less space than ordinary volumes, but both features come with a hard prerequisite pair:Linked clone volume ใช้พื้นที่น้อยกว่า volume ปกติอย่างเห็นได้ชัด แต่ทั้งสองฟีเจอร์นี้มีเงื่อนไขบังคับสองข้อ

A VM spread across several storage devices, an older Dorado build or community OpenStack all fall back to the ordinary path. Worth confirming before promising the space saving in a proposal.ถ้า VM กระจายอยู่บนสตอเรจหลายตัว Dorado เวอร์ชันเก่ากว่านี้ หรือใช้ OpenStack แบบชุมชน ระบบจะกลับไปใช้วิธีปกติ ควรเช็กให้ชัดก่อนจะเสนอตัวเลขประหยัดพื้นที่ในข้อเสนอ

Job rules people meet the hard wayกฎที่มักไปเจอเอาตอนใช้งานจริง

Concurrency and job behaviourการรันพร้อมกันและพฤติกรรมของงาน
Situationสถานการณ์ What actually happensสิ่งที่เกิดขึ้นจริง
Backup and restore on the same resourceสำรองและกู้คืนข้อมูลชุดเดียวกันCannot run at the same timeรันพร้อมกันไม่ได้
Two backup jobs on the same resourceงานสำรองสองงานบนข้อมูลชุดเดียวกันOnly one runs; the second does not startรันได้ทีละงาน งานที่สองจะไม่เริ่ม
After a restore to the original locationหลังกู้คืนกลับที่เดิมThe next backup is a full backup by defaultงานสำรองครั้งถัดไปจะเป็น full backup โดยอัตโนมัติ
After a failed full backup (snapshot-format copies)หลัง full backup ล้มเหลว (สำเนาแบบ snapshot)The next non-full job is automatically promoted to a full backupงานถัดไปที่ไม่ใช่ full จะถูกเปลี่ยนเป็น full ให้เอง
A copy with an expiration or deletion job triggeredสำเนาที่มีงานหมดอายุหรืองานลบเริ่มทำงานแล้วCannot be used for replication, restore, archive or mountใช้ทำ replication, กู้คืน, archive หรือ mount ไม่ได้

The middle rows matter for the backup window. A restore on Monday can turn Tuesday's incremental into a full run, and a failed full does the same — if the window was sized on incremental traffic alone, that is where it overruns.สามแถวกลางมีผลกับ backup window โดยตรง กู้คืนวันจันทร์อาจทำให้งาน incremental วันอังคารกลายเป็น full และ full ที่ล้มเหลวก็ให้ผลแบบเดียวกัน ถ้าคำนวณ window ไว้จากปริมาณ incremental อย่างเดียว ตรงนี้คือจุดที่เวลาจะบานปลาย

Restore targetsกู้คืนลงที่ไหนได้บ้าง

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