Replace Endian RAID Disk B

  • Enter the following commands at a Command Line with root privileges.

    hdparm -i /dev/sda      # Write down the serial number of the hard disk
    hdparm -i /dev/sdb      # Write down the serial number of the hard disk
    cat /proc/mdstat
    mdadm --manage /dev/md1 --fail /dev/sdb1
    mdadm --manage /dev/md2 --fail /dev/sdb2
    mdadm --manage /dev/md3 --fail /dev/sdb3
    cat /proc/mdstat
    shutdown -h now
  • Warning: Because the Endian Firewall is supposed to be up and running all the time it may boot as soon as the power is reconnected due to the BIOS setting Restore On AC Power Loss being set to On instead of Last State. Make sure to have the keyboard and monitor connected when reconnecting the power in order to be able to enter the boot menu and select the proper disk to boot from.

  • Clean the computer using the blower.

  • Write down the serial number of the new hard disk.

  • Replace the faulty hard disk (check the serial numbers).

  • Note: Boot the computer from the 1st hard disk using the boot menu.

  • Enter the following commands at a Command Line with root privileges.

    hdparm -i /dev/sda      # Write down the serial number of the hard disk
    hdparm -i /dev/sdb      # Write down the serial number of the hard disk
    fdisk -l /dev/sda       # Make sure that /dev/sdb is the new hard disk
    fdisk -l /dev/sdb       # Make sure that /dev/sdb is the new hard disk
    sfdisk -d /dev/sda | sfdisk /dev/sdb    # Copy partition table from sda to sdb
    shutdown -r now
  • Note: Boot the computer from the 1st hard disk using the boot menu.

  • Enter the following commands at a Command Line with root privileges.

    fdisk -l /dev/sda
    fdisk -l /dev/sdb
    cat /proc/mdstat
    mdadm --manage /dev/md1 --add /dev/sdb1
    mdadm --manage /dev/md2 --add /dev/sdb2
    mdadm --manage /dev/md3 --add /dev/sdb3
    cat /proc/mdstat
  • Wait for resync to finish.

  • Enter the following commands at a Command Line with root privileges.

    cat /proc/mdstat
    grub-install /dev/sda
    grub-install /dev/sdb
    shutdown -r now