Huawei · OceanProtect · Field notes 2 of 4บันทึกงาน 2 จาก 4
Pulling one file back out of a copy is the demo everyone asks for. It only works if the system can index the copy and read what is inside it — and there are more ways for that to fail than most people expect. ลูกค้าขอดูการกู้ไฟล์เดียวออกมาจากสำเนาแทบทุกครั้ง แต่มันจะทำได้ก็ต่อเมื่อระบบทำ index และอ่านข้างในสำเนาออก ซึ่งมีเงื่อนไขที่ทำให้อ่านไม่ออกเยอะกว่าที่คนส่วนใหญ่คิด
File-level restore depends on the system building an index of the copy. If a copy is too large to index, it is still perfectly good for disk- and VM-level restore — you simply lose the ability to pull one file out of it.File-level restore ต้องอาศัย index ของสำเนา ถ้าสำเนาใหญ่เกินกว่าจะทำ index ได้ สำเนานั้นยังใช้กู้ทั้งดิสก์หรือทั้ง VM ได้ตามปกติ เพียงแต่จะดึงไฟล์เดียวออกมาไม่ได้
| Applianceรุ่น | Maximum files in one copy of a single backup resourceจำนวนไฟล์สูงสุดในหนึ่งสำเนาของข้อมูลหนึ่งชุด |
|---|---|
| X3000 / X6000 | 20,000,000 |
| E6000 | 30,000,000 |
| X8000 / X9000 | 50,000,000 |
A file server with tens of millions of small files is exactly the workload where a customer expects granular recovery, and exactly the workload that crosses these lines. Splitting one huge resource into several protected resources is the usual answer — the ceiling is per copy of a single resource, not per appliance.ไฟล์เซิร์ฟเวอร์ที่มีไฟล์เล็กๆ หลายสิบล้านไฟล์ คือกรณีที่ลูกค้าคาดหวังการกู้ทีละไฟล์มากที่สุด และเป็นกรณีที่ชนเพดานนี้พอดี ทางแก้ที่ใช้กันคือแบ่งข้อมูลก้อนใหญ่ออกเป็นหลายชุด เพราะเพดานนี้นับต่อหนึ่งสำเนาของข้อมูลหนึ่งชุด ไม่ได้นับรวมทั้งเครื่อง
A single file-level restore job recovers at most 200,000 files. Bringing back a whole share is a disk- or VM-level restore, not a file-level one.งาน file-level restore หนึ่งงานกู้ได้สูงสุด 200,000 ไฟล์ ถ้าจะเอาทั้ง share กลับมา ต้องใช้การกู้ทั้งดิสก์หรือทั้ง VM แทน
| Guest OSระบบปฏิบัติการ | Versionsเวอร์ชัน | File systemsระบบไฟล์ |
|---|---|---|
| Linux | — | ext2, ext3, ext4, XFS |
| Windows | Windows 10 or earlier; Windows Server 2022 or earlierWindows 10 หรือเก่ากว่า และ Windows Server 2022 หรือเก่ากว่า | NTFS, FAT, FAT32 |
C:\ — if the mapping cannot be determined it is skippedระบบไฟล์ที่ไม่ได้ผูกกับชื่อไดรฟ์ เช่น C:\ ถ้าหาความสัมพันธ์ไม่ได้จะถูกข้ามfstab requirementเงื่อนไขเรื่อง fstab บน LinuxA Linux partition or disk device is parsed only when its mount information is written into /etc/fstab. Either form works:พาร์ทิชันหรือดิสก์บน Linux จะถูกอ่านก็ต่อเมื่อมีข้อมูลการ mount เขียนไว้ใน /etc/fstab ใช้ได้ทั้งสองรูปแบบ
UUID=1234-5678-90AB-CDEF /mnt/data ext4 defaults 0 2แบบ UUID — UUID=1234-5678-90AB-CDEF /mnt/data ext4 defaults 0 2/dev/sda1 /boot ext2 defaults 0 2แบบชื่ออุปกรณ์ — /dev/sda1 /boot ext2 defaults 0 2Disk devices on the VIRTIO bus are the exception: they are parsed only when the entry is written in UUID form. A device-name entry is not enough. Since VIRTIO is the common bus in OpenStack, this one quietly disables file-level restore on a lot of guests.ดิสก์ที่ใช้บัสแบบ VIRTIO เป็นข้อยกเว้น ต้องเขียนใน fstab แบบ UUID เท่านั้น เขียนแบบชื่ออุปกรณ์ไม่พอ และเพราะ VIRTIO คือบัสที่ใช้กันทั่วไปบน OpenStack ข้อนี้จึงทำให้เครื่องจำนวนมากกู้ทีละไฟล์ไม่ได้โดยไม่มีใครรู้ตัว
File systems mounted temporarily rather than persistently are not parsed, and paths starting with /proc, /sys, /dev, /lib/udev/devices and /invisible are ignored by design.ระบบไฟล์ที่ mount ชั่วคราวไม่ถาวรจะไม่ถูกอ่าน และเส้นทางที่ขึ้นต้นด้วย /proc, /sys, /dev, /lib/udev/devices และ /invisible ถูกข้ามโดยตั้งใจ