โชคดีที่ฮาร์ดดิสก์ตัวเก็บ data ไม่พัง แต่ปัญหาก็คือว่าไม่ได้ backup configuration เอาไว้ ก็เลยต้องหาทาง recover เอาเอง เลยเอามาเขียนเก็บไว้ดังนี้
- ลง Openfiler ในฮาร์ดดิสก์ตัวใหม่
- หลังจากบูต Openfiler ขึ้นมาแล้ว ใช้คำสั่ง pvscan ซึ่งจะได้ output ประมาณนี้
# lvs -a
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
vol_share 500g -wi-a- 232.88G
office2-iscsi md0raid1 -wi-ao 149.03G
office3data office3 -wi-ao 78.12G - ซึ่งก็คือเรามี volume group เดิมอยู่ 3 volume ได้แก่ 500g, office3 และ md0raid1
- ไป edit ไฟล์ /opt/openfiler/etc/volumes.xml ซึ่งถ้ายังไม่ได้มีการสร้าง volume อะไรในระบบ จะมีหน้าตาประมาณนี้
<?xml version="1.0" ?>
<volumes>
</volumes> - ให้เพิ่ม volume ของเราเข้าไปใน <volumes></volumes> ดังนี้
<?xml version="1.0" ?>
<volumes>
<volume id="office3data" name="Office3 data volume" mountpoint="" vg="office3" fstype="iscsi" />
<volume id="office2-iscsi" name="Office2 disk volume" mountpoint="" vg="md0raid1" fstype="iscsi" />
</volumes>เป็นการเพิ่ม volume office3data และ office2-iscsi ให้กับ Openfiler - จากนั้นก็ทำการสร้าง iSCSI Target ตามวิธีที่ http://www.techhead.co.uk/how-to-configure-openfiler-v23-iscsi-storage-for-use-with-vmware-esx
- ที่สำคัญคือหลังจากแก้ไขทั้งหมดแล้วควรจะ reboot openfiler ทีนึงก่อนทำงานต่อ
ไม่มีความคิดเห็น:
แสดงความคิดเห็น