Advertisement
Guest User

Untitled

a guest
May 17th, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # Boot with Ubuntu Live USB and use Gparted to partition the new disk that will replace the faulty one.
  2.  
  3. # Reboot and wait until (initramfs) shell.
  4.  
  5. # In (initramfs) shell:
  6.  
  7. mdadm --detail --scan
  8.  
  9. mdadm --stop /dev/md0
  10.  
  11. mdadm --stop /dev/md1
  12.  
  13. mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
  14.  
  15. mdadm --assemble /dev/md1 /dev/sda2 /dev/sdb2
  16.  
  17. mdadm --examine /dev/sda
  18.  
  19. mdadm --examine /dev/sdb
  20.  
  21. mdadm --examine /dev/sda1
  22.  
  23. mdadm --examine /dev/sdb1
  24.  
  25. mdadm --examine /dev/sda2
  26.  
  27. mdadm --examine /dev/sdb2
  28.  
  29. mdadm --detail --scan
  30.  
  31. cat /proc/mdstat
  32.  
  33. mdadm --assemble --scan
  34.  
  35. mdadm --detail --scan
  36.  
  37. cat /proc/mdstat
  38.  
  39. mdadm -a /dev/md0 /dev/sda1
  40.  
  41. mdadm -a /dev/md1 /dev/sda2
  42.  
  43. # After recovery finish, check the RAID details using the below commands:
  44.  
  45. cat /proc/mdstat
  46.  
  47. mdadm -D /dev/md0
  48.  
  49. mdadm -D /dev/md1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement