Centos 6.4 disk troubleshooting steps

Source: Internet
Author: User

Centos 6.4 disk troubleshooting steps
I. Fault symptom:

1. startup Error

2. view the disk file system check results using Df-k

3. Fdisk-l check results


4. Fsck/dev/sda check results

Ii. Fault Analysis

1. An error is reported when the system is started. The fsck check/dev/sda2 partition file system is damaged.

2. During Df-k check, only one mounted file system is found.

3. The Fdisk-l result shows that the/dev/sda disk has bad channels.

4. An error is returned when Fsck-y/dev/sda attempts to fix the issue.

Iii. troubleshooting steps

1. Shut down and replace the 2 TB faulty Disk

2. Restart the server and enter the single-user mode.

3. Mount the root Partition

Command: mount-o remount, rw/

4. Delete the original disk Mount path

1) command: Vi/etc/fstab

2) comment out the original path as follows:

# UUID = f5a015f9-2466-4c9b-b545-2212b2669905/filesystem ext4 defau

5. Restart the server. The hard disk error cannot be found during system startup and disappears.

6. Go to the system and view the hard disk

Fdisk-l

Disk/dev/sda: 2000.4 GB, 2000398934016 bytes

255 heads, 63 sectors/track, 243201 cylinders

Units = cylinders of 16065*512 = 8225280 bytes

Sectorsize (logical/physical): 512 bytes/4096 bytes

I/O size (minimum/optimal): 4096 bytes/4096 bytes

Disk identifier: 0x00000000

7. Create a disk partition

Fdisk/dev/sda

8. Create a File System

Command: mkfs/dev/sda1

8. Create a file system mount point:

Command: mkdir/opt

9. Set automatic mounting of the file system

Vim/etc/fstab

Add a row]
/Dev/sda1/opt ext2 defaults 0 0

10. Restart and check disk replacement

Command: Df-k

/Dev/sda1 1922858352 68968 1825113784 1%/opt

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.