Hard Disk maintenance skills for HP servers in Linux
Source: Internet
Author: User
Hard drive Maintenance Tips for HP servers in Linux-Linux Enterprise applications-Linux server application information. The following is a detailed description. Hard Disk maintenance method:
1. Run the command "w" or "uptime" to view up X day, the number of days the system runs.
2. If you need to restart before detection, you must stop all processes and services, such as APACHE and ORACLE.
3. Run the following command: tune2fs? L/dev/cciss/c0d0pX check Last checked: And Next check after: the latest date of the current check, and the date of the Next check, used to determine whether to restart automatic check or manual check.
4. If the number of days of Next check after is greater than 180 days, manually check the number of days. Otherwise, restart automatic check,
1st: self-check can be started directly if the number of hard disks is small or the proportion of hard disks occupied by data is small.
2nd: If the disk quantity is large and the data occupies a large disk space, you need to modify/etc/fstab. For example, comment out the hard disk of the fstab middle disk Cabinet (VI shortcut key ": number of rows X, number of rows Y s/^/#/") comment out the information from row X to row Y. Then restart and check a disk. Check command and sequence: fsck? Y/dev/cciss/c1d0p1 & fsck? Y/dev/cciss/c1d1p1 & fsck? Y/dev/cciss/c1d0p2 & fsck? Y/dev/cciss/c1d1p2 & first check the same values after p and then change the value of d. Run jobs in the background by running the jobs command.
5. force start system detection: when the data occupies a large amount of hard disk space and is automatically detected, start and detect the system in single mode. steps: after the restart, press the TAB key on the keyboard to enter the input mode and press 2.4.21-27.02smp console = tty0 single to press Enter. After starting in single mode, first remove all the disks with umount, run the following command: fsck? Yf/dev/cciss/c0d0p1 start detection.
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.