บทนำ
Profile Redirection เป็น Feature สำคัญบน Sangfor VDI ที่ช่วยจัดการ User Profile ให้คงอยู่แม้หลังจาก Logoff หรือเปลี่ยน VM มี 3 วิธีหลัก ได้แก่ User Profile Redirection, Folder Redirection และ FSLogix Profile Container บทความนี้อธิบายขั้นตอนการตั้งค่าแต่ละวิธี พร้อมเปรียบเทียบข้อดี-ข้อเสียและ Use Case ที่เหมาะสม
ข้อกำหนดเบื้องต้น
- สิทธิ์ Admin บน VDC Console
- Policy Set ที่สร้างไว้แล้ว
- Network Storage หรือ File Server สำหรับเก็บ Profile (กรณี Folder Redirection และ FSLogix)
วิธีที่ 1: User Profile Redirection
บันทึก User Profile ทั้งหมดไปยัง Server แล้ว Restore กลับเมื่อ User Login:
1. เข้าสู่ VDC Console ไปที่ Policies > Policy Sets
2. เลือก Policy Set > หมวด Profile Redirection
3. เปิดใช้งาน User Profile Redirection
4. กำหนด Storage Path: ระบุ Path บน Server หรือ Network Share สำหรับเก็บ Profile เช่น \\fileserver\profiles\%username%
5. กำหนด Profile Size Limit: จำกัดขนาดสูงสุดของ Profile
6. คลิก Save
การทำงาน: เมื่อ User Logoff ระบบจะ Sync Profile ขึ้นไปเก็บบน Server เมื่อ Login ครั้งถัดไประบบจะ Download Profile กลับมา
ข้อดี: เก็บ Profile ทั้งหมดรวมถึง Desktop, Documents, Application Settings
ข้อเสีย: Login/Logoff อาจช้าหาก Profile ใหญ่มาก
วิธีที่ 2: Folder Redirection
Redirect เฉพาะ Folder ที่ต้องการไปยัง Network Location:
1. เข้าสู่ VDC Console ไปที่ Policies > Policy Sets
2. เลือก Policy Set > หมวด Profile Redirection
3. เปิดใช้งาน Folder Redirection
4. เลือก Folder ที่ต้องการ Redirect:
- Desktop: Redirect Desktop Folder
- Documents: Redirect Documents/My Documents Folder
- Downloads: Redirect Downloads Folder
- AppData: Redirect Application Data Folder
- Favorites: Redirect Favorites/Bookmarks Folder
5. กำหนด Target Path: สำหรับแต่ละ Folder เช่น \\fileserver\folders\%username%\Documents
6. คลิก Save
การทำงาน: Folder ที่เลือกจะถูก Redirect ไปยัง Network Location โดยตรง ข้อมูลจะถูกเก็บบน Network Storage แบบ Real-time
ข้อดี: ไม่ต้องรอ Sync ตอน Login/Logoff เลือก Redirect เฉพาะ Folder ที่ต้องการได้
ข้อเสีย: ขึ้นอยู่กับ Network Performance หาก Network ช้าจะส่งผลต่อการเข้าถึงไฟล์
วิธีที่ 3: FSLogix Profile Container
ใช้ FSLogix Profile Container สำหรับจัดการ Profile ด้วย VHD/VHDX:
1. เข้าสู่ VDC Console ไปที่ Policies > Policy Sets
2. เลือก Policy Set > หมวด Profile Redirection
3. เปิดใช้งาน FSLogix
4. กำหนด VHD Location: ระบุ Network Share Path สำหรับเก็บ VHD File เช่น \\fileserver\fslogix\%username%
5. กำหนด VHD Size: ขนาดสูงสุดของ Profile Container
6. กำหนด VHD Type: เลือก Dynamic หรือ Fixed
7. คลิก Save
การทำงาน: ระบบจะสร้างไฟล์ VHD/VHDX สำหรับแต่ละ User เมื่อ Login ระบบจะ Mount VHD เข้า VM เป็น Profile Drive เมื่อ Logoff จะ Unmount
ข้อดี: Performance ดีที่สุดในทั้ง 3 วิธี Login/Logoff เร็ว รองรับ Application ที่ซับซ้อน เช่น Outlook, OneDrive, Teams
ข้อเสีย: ต้องมี FSLogix License ต้องมี Storage ที่รองรับ VHD
เปรียบเทียบและคำแนะนำ
- User Profile Redirection: เหมาะสำหรับ Deployment ขนาดเล็กที่ Profile ไม่ใหญ่มาก
- Folder Redirection: เหมาะสำหรับกรณีที่ต้องการเก็บเฉพาะ Documents/Desktop และมี Network ที่เสถียร
- FSLogix: เหมาะสำหรับ Enterprise Deployment ที่ต้องการ Performance สูงและรองรับ Application ที่ซับซ้อน (แนะนำเป็นตัวเลือกแรก)
การตรวจสอบ
- Login เข้า VM สร้างไฟล์ทดสอบบน Desktop หรือ Documents
- Logoff แล้ว Login ใหม่ ตรวจสอบว่าไฟล์ยังอยู่
- ทดลอง Login จาก VM คนละเครื่อง ตรวจสอบว่า Profile ติดตามไปด้วย
- ตรวจสอบ Storage Path ว่า Profile ถูกเก็บไว้ถูกต้อง
หมายเหตุ
- ไม่ควรใช้ User Profile Redirection ร่วมกับ FSLogix พร้อมกัน เพราะอาจเกิด Conflict
- Folder Redirection สามารถใช้ร่วมกับ FSLogix ได้ เพื่อ Redirect บาง Folder ไปยัง Location ที่ต่างออกไป
- สำหรับ FSLogix ให้ใช้ SMB File Share ที่มี Performance สูง เช่น Windows File Server หรือ Azure Files
- แนะนำให้กำหนด Quota สำหรับ Profile Storage เพื่อป้องกัน Disk Full
ข้อคิดเห็น
0 ข้อคิดเห็น
โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น