As far as I can remember, I've no need to do Linux bare metal recovery. Thanks to the flawless Linux OS running on stable hardware platform. Nevertheless, there is an incident happened yesterday that a bare metal recovery is needed immediately.
Below are the (i) case and (ii) steps for recovery
Case
- RHEL 5.5
- IBM x3650 M3
- 2 x Hard Disk Failures
Steps for recovery
- Replace both Hard Disks
- Re-create the RAID-1 on the Hard Disks
- Kick start the same OS onto the repaired RAID-1 local hard disk
- Mount the GRML image onto the iMM virtual media
- Boot up the server using the image
- Configure the network settings on the main interface
- Bring up LVM2 system (/etc/init.d/lvm2 start)
- Change the system root password (sudo passwd root)
- Run rsync from another system to the repaired system to restore the backup copy
- backup-system# rsync -avz --delete * <repaired-system>:/mnt
- Reboot and do a health check
Notes
- If the ks.cfg is lost, then step 3 can be skipped.
- If the ks.cfg is lost, extra step such as disk partitioning is required.
- For step 6, please watch out the order of the network interface in GRML image might be different from current server. Useful tip is to identify the correct interface using the MAC address.
- For step 9, /mnt is mounted onto the root file system.
沒有留言:
張貼留言