Linux reinstallation-general Linux technology-Linux technology and application information. For details, refer to the following section. Yesterday, we found our company's linu server was treated as a zombie. Every night, we send request packets continuously, which leads to excessive network traffic. If it is restarted, it will become stable; tcpdump is used to monitor UDP packets sent out, and no useful information is captured. Therefore, the system can only be reinstalled;
Pay attention to the following when preparing to install the system:
First, back up important data, such as directories or files in the/home and/usr/directories; you can use du-sh to view the total space occupied by all files in the directory. Run du-h -- max-depath = 1 to view the total size of files in each directory.
Determine the version information. Run the uname-r command to view the kernel version.
[Root @ server46 ~] # Uname-r
2.6.18-128. el5
Run the uname-a command to view details.
[Root @ server46 ~] # Uname-
Linux server46 2.6.18-128. el5 #1 SMP Wed Jan 21 10:41:14 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Pay attention to this when you reinstall the system.
Because my server is doing LVM again, I will back up some data that needs to be backed up to another ext3 system partition and mount it, at the same time, run the command df-h to check that you have backed up the data to the partition. This is very important when you reinstall the partition.
[Root @ server46 ~] # Df-h
File System capacity used available % mount point
/Dev/mapper/VolGroup00-LogVol00
190 GB 98G 83G 55%/
/Dev/mapper/VolGroup00-LogVol02
337G 132G 188G 42%/new
/Dev/sda1 99 M 13 M 82 M 14%/boot
Tmpfs 1006 M 0 1006 M 0%/dev/shm
After doing this, put the system disk into the optical drive and reinstall the system.
I think everyone is familiar with the installation steps of the system, but when partitioning, you must note that never blindly partition, generally LVM. There will be two ext3 partitions, from the partition capacity. It can be seen that it cannot be moved, and then it will be OK to reinstall the/boot of sda1 ..
After reinstalling the system, you may find that the data you backed up has disappeared. Don't worry, as long as you haven't formatted the data you backed up during partitioning, it won't disappear.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service