Decrease the time for rebuilding the RAID 1 array

เมื่อต้องการลดเวลาการ rebuild Raid 1 เราสามารถใช้คำสั่งด้านล่างนี้ได้ครับ

#mdadm -C /dev/md0 -l1 -n2 /dev/sda1 /dev/sda2 --bitmap=internal

--bitmap (Write-intent bitmap) จะช่วยลดเวลาการ Sync ได้โดยถ้าเกิด disk offline temporarily, kernel crash จะทำการ Sync เฉพาะ Block ที่ถูกแก้ไขเท่านั้น แต่ถ้า block ไหนไม่ได้ถูก Sync จะถูก copy มาแทน

--bitmap=internal หมายถึงการเก็บ metadata ไว้ที่ Raid เลย

Related posts:

  1. Re-shape or Grow a Raid 5 array. การเพิ่มเนื้อที่ในการทำ Raid Software ของทาง linux นั้นมีการแก้ไขที่ไม่ยากอย่างที่คิด โดยสมมติให้เรามีการทำ Software...
  2. How to Set up GRUB to boot from both disks of mirrored RAID ถ้าในระบบได้มีการใช้งาน software raid ของ linux แบบ raid 1...
  3. Change I/O Disk Scheduler without Reboot I/O Scheduler สำหรับ Hard disk หรือพวก block device...
  4. Implement and configuration Highly Available LVM (HA LVM) ใน Red Hat Enterprise Linux ตั้งแต่ version 4.5...

Both comments and pings are currently closed.

Comments are closed.