Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> ระบบเครือข่าย

วิธี Shrink และ Extend Volume ใน Hyper-V 2019

ในบทความก่อนหน้า เราพูดถึงการเพิ่ม Virtual Disk ให้กับ Virtual Machine ในบทความนี้ เราจะแนะนำคุณผ่านกระบวนการ Shrink และ Extend Volume ตามความต้องการของคุณ

เพื่อทำเช่นนี้ เราจะสร้างสถานการณ์ เรากำลังรัน Windows Server 2019 บน Virtual Machine มี 2 Disk คือ System Disk ที่มี 40 GB และ Disk ที่สองที่มี 50 GB ในส่วนแรกของบทความนี้ เราจะ Shrink Disk เหลือ 50% แล้ว Extend กลับไป 100%

Shrink Volume บน Virtual Machine

  1. เปิด Hyper-V Manager
  2. เลือก Host และ Connect ไปยัง Windows Virtual Machine
  3. Login เข้า Windows Server 2019 หรือ Windows Client Machine
  4. คลิกขวา ที่ Start Menu แล้วคลิกที่ Disk Management
  5. คลิกขวา ที่ Disk 1 (50.00 GB) แล้วคลิก Shrink Volume…
  6. ใส่จำนวน พื้นที่ที่จะ Shrink ใน MB แล้ว Shrink ในที่นี้เราจะ Shrink Volume เหลือ 25 GB โปรดทราบว่าคุณไม่สามารถ Shrink Volume ได้เกินจุดที่ Unmovable Files ตั้งอยู่
  7. ขอแสดงความยินดี คุณ Shrink Volume ของคุณสำเร็จแล้ว
  8. คลิกขวา ที่ Unallocated Volume แล้วคลิก New Simple Volume… ในที่นี้เราจะ Initialize และ Format 24.49 GB ที่ Shrink ไปก่อนหน้านี้
  9. ภายใต้ Welcome to the New Simple Volume Wizard คลิก Next
  10. ภายใต้ Specify Volume Size คลิก Next
  11. กำหนด Drive Letter ต่อไปนี้ แล้วคลิก Next ในที่นี้คือ F:
  12. ภายใต้ Format Partition ใช้ Default Settings สำหรับ File System และ Allocation Unit Size และเปลี่ยน Volume Label แล้วคลิก Next ในที่นี้คือ Backup 2
  13. ภายใต้ Completing the New Simple Volume Wizard ตรวจสอบการตั้งค่าที่กำหนดค่า แล้วคลิก Finish
  14. ขอแสดงความยินดี คุณสร้าง Disk สำเร็จแล้ว
  15. เปิด File Explorer (ค้าง Windows Logo แล้วกด E)
  16. ตรวจสอบ ว่า Disk ถูก Shrink อย่างถูกต้องและพร้อมใช้งาน

Extend Volume บน Virtual Machine

  1. หากคุณปิด Disk Management ไปแล้ว โปรดเปิดมันอีกครั้ง
  2. คลิกขวา ที่ Partition Backup 2 ที่เราสร้างไว้ก่อนหน้านี้ แล้วคลิก Delete Volume
  3. ภายใต้ Delete simple volume คลิก Yes เพื่อลบ Volume
  4. ขอแสดงความยินดี คุณลบ Volume สำเร็จแล้ว
  5. คลิกขวา ที่ Backup 1 แล้วคลิก Extend Volume…
  6. ภายใต้ Welcome to the Extend Volume Wizard คลิก Next
  7. ภายใต้ Select Disks เลือก Volume แล้วคลิก Next ในที่นี้ Disk ที่เลือกคือ Disk 1 25075 MB
  8. ภายใต้ Completing the Extend Volume Wizard ตรวจสอบการตั้งค่า แล้วคลิก Finish
  9. ขอแสดงความยินดี คุณ Extend Volume ของคุณสำเร็จแล้ว ในที่นี้เรา Extend Hard Disk จาก 25 GB เป็น 50 GB ตามที่แสดงในภาพ
  10. เปิด File Explorer (ค้าง Windows Logo แล้วกด E)
  11. ตรวจสอบ ว่า Disk ถูก Extend อย่างถูกต้องและพร้อมใช้งาน