Replace Endian RAID Disk A

  • 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/sda1
    mdadm --manage /dev/md2 --fail /dev/sda2
    mdadm --manage /dev/md3 --fail /dev/sda3
    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 2nd 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/sda is the new hard disk
    fdisk -l /dev/sdb       # Make sure that /dev/sda is the new hard disk
    sfdisk -d /dev/sdb | sfdisk /dev/sda    # Copy partition table from sdb to sda
    shutdown -r now
  • Note: Boot the computer from the 2nd 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/sda1
    mdadm --manage /dev/md2 --add /dev/sda2
    mdadm --manage /dev/md3 --add /dev/sda3
    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