วิธีทำ Shared Storage บน Hyper-V แบบละเอียด ใช้ Storage ร่วมกันสำหรับ Cluster และ Live Migration

Shared Storage คือหัวใจสำคัญของระบบ Hyper-V Cluster เพราะช่วยให้ Hyper-V หลายเครื่องสามารถใช้ Storage ร่วมกันได้ ทำให้:

  • Live Migration ทำงานได้
  • Failover Cluster ทำงานได้
  • VM ย้ายข้าม Host ได้
  • ลด Downtime
  • เพิ่ม High Availability

ในระบบองค์กรและ Data Center จริง Shared Storage ถือเป็นองค์ประกอบสำคัญของ Infrastructure ระดับ Enterprise

Windows Server 2025 รองรับ Shared Storage ได้หลายรูปแบบ เช่น:

  • iSCSI
  • SMB3
  • SAN
  • NAS
  • Fibre Channel

บทความนี้จะสอนวิธีทำ Shared Storage บน Hyper-V แบบละเอียด ตั้งแต่พื้นฐาน, การเชื่อมต่อ, การตั้งค่า ไปจนถึง Best Practice สำหรับองค์กร


① Shared Storage คืออะไร

Shared Storage คือ Storage กลางที่:

  • Hyper-V หลายเครื่องมองเห็นร่วมกัน

ตัวอย่าง:

Server01
Server02
Server03

Shared Storage

ทุก Node ใช้ Disk ชุดเดียวกันได้


② Shared Storage สำคัญยังไง

ถ้าไม่มี Shared Storage:

  • Cluster จะทำงานได้จำกัด
  • Live Migration บางแบบทำไม่ได้
  • HA ไม่สมบูรณ์

③ Shared Storage ใช้ทำอะไรได้บ้าง

นิยมใช้:

  • Hyper-V Cluster
  • VMware Cluster
  • SQL Cluster
  • File Server
  • Data Center

④ Shared Storage มีกี่แบบ

นิยมมี 4 แบบหลัก

🔹 iSCSI

🔹 SMB3 Storage

🔹 Fibre Channel SAN

🔹 NAS


⑤ iSCSI คืออะไร

iSCSI คือการแชร์ Storage ผ่าน Network

ใช้:

  • Ethernet
  • TCP/IP

นิยมมากใน Hyper-V


⑥ SMB3 Storage คืออะไร

ใช้ File Share ผ่าน:

SMB 3.0

Windows Server 2025 รองรับดีมาก


⑦ SAN คืออะไร

SAN = Storage Area Network

Storage ระดับ Enterprise

Performance สูงมาก


⑧ NAS คืออะไร

NAS = Network Attached Storage

เช่น:

  • Synology
  • QNAP
  • TrueNAS

นิยมใน:

  • SMB
  • Homelab

⑨ Shared Storage ใช้กับอะไรบน Hyper-V

ใช้เก็บ:

  • VHDX
  • VM Config
  • Checkpoint
  • Cluster Data

⑩ Shared Storage ต้องมี Network แบบไหน

แนะนำ:

  • 10GbE ขึ้นไป

Enterprise

นิยม:

  • 25GbE
  • 40GbE

⑪ วิธีทำ iSCSI Shared Storage

ต้องมี:

  • iSCSI Target
  • Hyper-V Initiator

⑫ วิธีเปิด iSCSI Initiator

เปิด:

iSCSI Initiator

⑬ วิธีเชื่อม iSCSI Target

ใส่:

  • IP Storage

กด:

Connect

⑭ วิธีเปิด Disk ใน Windows

เปิด:

diskmgmt.msc

จะเห็น Shared Disk


⑮ วิธี Initialize Disk

เลือก:

  • GPT

⑯ วิธีสร้าง Volume

สร้าง:

  • NTFS
    หรือ
  • ReFS

⑰ ReFS คืออะไร

ReFS = Resilient File System

เหมาะกับ:

  • Hyper-V
  • Large Storage
  • Enterprise VM

⑱ ReFS ดีกว่า NTFS ยังไง

ข้อดี:

  • Corruption Protection
  • เร็วกว่าในบางงาน
  • Optimize สำหรับ VM

⑲ Cluster Shared Volume (CSV) คืออะไร

CSV คือระบบ Shared Storage ของ Cluster

Path มาตรฐาน:

C:\ClusterStorage\

⑳ วิธี Add Storage เข้า Cluster

ไปที่:

Failover Cluster Manager

เลือก:

  • Add Disk

㉑ วิธี Add Disk เป็น CSV

คลิกขวา:

Add to Cluster Shared Volumes

㉒ Shared Storage กับ Live Migration เกี่ยวกันยังไง

ถ้าใช้ Shared Storage:

  • VM ไม่ต้อง Copy Disk ตอนย้าย

ทำให้:

  • Migration เร็วมาก

㉓ Shared Storage กับ Failover เกี่ยวกันยังไง

เมื่อ Node พัง:

  • Node ใหม่ยังเห็น Disk เดิม

VM จึงเปิดต่อได้ทันที


㉔ Shared Storage ใช้กับ Linux VM ได้ไหม

ได้

เช่น:

  • Ubuntu
  • Debian
  • Rocky Linux

㉕ Shared Storage รองรับ AI Workload ไหม

รองรับดีมาก

โดยเฉพาะ:

  • NVMe
  • SSD
  • GPU VM

㉖ Shared Storage แบบไหนดีสุด

ขึ้นอยู่กับงบ

แบบเหมาะกับ
NASSMB/Homelab
iSCSIองค์กรทั่วไป
SANEnterprise
SMB3Windows Environment

㉗ ปัญหาที่พบบ่อยตอนทำ Shared Storage

❌ Storage ไม่เห็น

สาเหตุ:

  • Network
  • iSCSI Config

❌ Cluster ใช้ Disk ไม่ได้

สาเหตุ:

  • ยังไม่ Add เข้า Cluster

❌ Performance ช้า

สาเหตุ:

  • LAN 1GbE
  • HDD ช้า

㉘ Best Practice สำหรับองค์กร

🔹 ใช้ 10GbE+

🔹 แยก Storage VLAN

🔹 ใช้ SSD/NVMe

🔹 ใช้ UPS

🔹 ใช้ RAID

🔹 Backup Storage เสมอ


㉙ Shared Storage สำคัญกับองค์กรยังไง

สำคัญมาก

เพราะ:

  • VM ทั้งองค์กรอยู่ในนั้น
  • ถ้า Storage พัง ทุก VM อาจหยุด

㉚ สรุป

Shared Storage คือหัวใจสำคัญของ Hyper-V Cluster และระบบ Virtualization ระดับองค์กร เพราะช่วยให้หลาย Host ใช้ Storage ร่วมกันได้ ทำให้ Live Migration และ Failover ทำงานได้สมบูรณ์

Windows Server 2025 รองรับ Shared Storage ได้ดีมาก ทั้ง iSCSI, SMB3, SAN และ NAS พร้อมรองรับ Modern Infrastructure และ AI Workload มากขึ้น

สำหรับสาย System Admin และ Infrastructure การเข้าใจ Shared Storage ถือเป็นทักษะสำคัญระดับ Enterprise เพราะเกี่ยวข้องกับทั้ง Performance, HA และ Data Protection

comsiam มองว่า Shared Storage คือแกนหลักของระบบ Virtualization ยุคใหม่ และเป็นสิ่งที่ทุกองค์กรที่ใช้ Hyper-V ควรวางระบบให้ดีตั้งแต่แรก