Service Interruptions caused by system crashes can cause huge economic losses to users. However, if appropriate tools are used, the system can be restored as soon as possible to minimize the loss. Although Linux systems are well known for their stability and reliability, they sometimes crash/or fail to be cited due to hardware problems. To solve this problem, the best solution is to use Linux to boot CD.
For the convenience of readers, I listed below the steps required to install Red Hat Linux 8.0.
Take notes for the installation process
After the typical installation of Red Hat Linux is complete, the system prompts you whether to create a boot disk. We recommend that you do not skip this step if you are willing to retain restoration methods for future system crashes. If you skip this step, you can also run mkbootdisk on the system command line to create a boot disk.
MkCDrec is a read-only CD command used to establish a recoverable system. It supports most file systems, RAID inexpensive redundant disk arrays) and optional tools for System Fault repair. These tools include partition management tools, memory detection tools, and data recovery tools. In addition, mkCDrec supports most of the currently released Linux systems, including Red Hat 8.0 and Mandrake 9.
Start stage
The first step to establish a bootable CD recovery is to download mkCDrec. When I write this article, the 0.6.7 version of the software has been published and can be downloaded. The pen downloads the mkcdrec_v0.6.7.tar.gz package and stores it in the/home/slowe directory. In addition, you can download other optional mkCDrec toolkit, including many useful tools that can be burned together into the boot CD. The SDK version is 0.6.7. At the beginning of CD production, I remind you to have the root permission for the Linux system before you can perform the following operations.
1. Switch cd/home/slowe to the mkCDrec download directory.
2. Extract the mkCDrec package from tar zxvf mkCDrec_v0.6.7.tar.gz.
3. decompress the cd mkcdrec file and enter its directory.
4. tar zxvf/home/slowe/mkCDrec_v0.6.7_utils.tar.gz decompression toolkit.
5. make test run a script to determine whether mkCDrecs is necessary in the user system. Click here to view the command example output by the script.
If the above Script output shows that the user's server has a problem, you must solve the problem before continuing the subsequent work. The Nasmc error in the example means that no compilation compiler is found in the user system. I downloaded the compiler and run the following command to install it:
Rpm -- install nasm-0.98-8.i386.rpm
In the system recovery boot CD, you must have an operating system kernel that can work and use it to boot and enter the Linux system. The Linux kernel of the MkCDrec program is 2.4.18.
The next error in the example indicates that a CD burning tool is missing in the system. Because I do not have CD recording software in Linux, I plan to install CD in Windows. You can change the configuration file to ignore the check on the CD recording software in Linux. Use the pico Config. sh command to edit the Config. sh file and change BURNCDR = y to BURNCDR = n.
After installing the nasm compiler and modifying the configuration file, you can run make test again to check whether there are any errors. In my operation, I have not encountered any trouble after I have ruled out the above problems.
The following operations are mostly completed through the menu. You can see the example menu in Listing B.
Option 1 is to create a bootable CD with an emergency recovery tool. However, no data is retained for the user's system.
Option 2 create a bootable CD with an Emergency Repair Tool and back up your system information. Do not litter the CD prepared by option 2 everywhere, because the CD can be used for unrestricted access to the stored data. This option creates one or more ISO image files and stores them in the/tmp/backup directory.
Option 3 is similar to option 2, except that the ISO image is not stored in the/tmp/backup directory.
Option 4 back up system information through the tape drive and establish the same system to guide the CD.
For example, if option 1 is selected, the generated ISO image file can be copied to the Windows system and burned to the CD. If you want to back up system files and configuration files to CD, you can select options 2 and 3. However, option 1 is a good choice for time and workload considerations. It provides a tool that users can guide and restore attempts, but this option does not provide important data backup functions for the current Linux system.
If option 1 is selected, the mkCDrec script starts to work. This process takes some time because the tool needs to prepare all the content for the entire CD, including boot loader, kernel, and emergency tools. Listing C tells you what content is saved.
Burn CD
If you are not familiar with Linux or do not know much about how the operating system works, it is difficult to read the following content. The user wants to use the CD recording software to burn a bootable CD containing the Linux system kernel and the complete tool set.
I installed Roxio Easy CD Creator and Ahead Nero CD in my Windows system. These two CD burning software packages are quite Easy to use. Either of them can complete CD burning.
Remind the user to test whether the system can be properly guided after the CD production is complete. Otherwise, in case of system failure, but suddenly found that CD could not be guided, it would be too much trouble.
In addition, before starting the system with CD, you need to enter the Bios setting program of the Linux server to check whether it is configured to support CD boot. After confirming, you can start testing the boot CD you have prepared. After loading the CD to start the system, you will see mkCDrec's special boot interface figure A). This interface will gradually improve the user's operations
|
Figure A: mkCDrec boot page |
When the system completes boot from CD, you need to pay attention to a few things. First, you need to run the linux core system bare-bones from a disk virtualized by RAM disk memory ). Second, we need to mount the mkCDrec boot CD into/cdrom.
You can run the cfdisk disk configuration command to obtain device information. This command will display the list of devices in the user system. See figure B.
To load/root) partitions, run the following command:
Mount-t ext2/dev/sda2/mnt/local
After the command is run, the mount point points to the root directory root of the linux server. You only need to switch to the/mnt/local directory to view the file system. It is very important to load the file system. In case the boot loader is damaged, you can repair or transfer data to other servers.
What else can be done?
After mkCDrec CD is used for guidance, You can do many things. There are several important items, if the user chooses to create a system backup, then the user can execute the/etc/recovery/start-restore.sh command, after this command runs will prompt the user the complete system recovery process. Note that if you do not back up the boot CD, you will be prompted that no data can be restored.
The/etc/recovery directory contains many tools that can be used to recover the system or repair crashed servers. Detailed descriptions are provided on the mkCDrec Web site.
If you have downloaded the mcCDrec tool and installed it correctly, it will be located in the/cdrom/utilities directory, such as a partition editing tool for parted) and a memory detection tool for memtest) and e2salvage ). Users can access the mcCDrec website.
System Crash is inevitable in life, but with the right tools, you can restore the system as soon as possible and minimize losses. Using the system recovery boot CD established by mkCDrec will play a huge role in your most need of help, thanks to the complete system backup function, mkCDrec is a powerful tool kit for disaster recovery by any Linux system administrator.
You are reading: Guide CD through Linux to troubleshoot server faults
- IBM software is integrated into the Amazon EC2 cloud computing platform
- Database Server security permission control policy
- Network Management Tips: How to easily manage servers