Improper modification of Linux fstab causes power on fsck to fail and the host cannot restart

Source: Internet
Author: User

Today, Guangzhou Heyuan City Technology inform me that their computer room power down, the database server restarts after the RAC2 host lost data3 data directory; Then, you want to adjust the directory to automatically mount the boot,

The boot is stuck in the following interface:

650) this.width=650; "Src=" http://img.blog.csdn.net/20170907171253070?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvd3d3x3h1zv94aq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "width=" "style=" border:0px;vertical-align:middle; "/>

From the error screen, is the boot file system check fsck failed, the problem may be fstab file configuration problems.

So, remote let him enter the host root password to enter the following interface:

650) this.width=650; "Src=" http://img.blog.csdn.net/20170907171440640?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvd3d3x3h1zv94aq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "width=" "style=" border:0px;vertical-align:middle; "/>

Then, look at the contents of the/etc/fstab configuration file (mainly to see the configuration of the/dev/mapper/data3 corresponding line)

650) this.width=650; "Src=" http://img.blog.csdn.net/20170907171612858?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvd3d3x3h1zv94aq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "width=" "style=" border:0px;vertical-align:middle; "/>

/dev/mapper/data3/orabak EXT4 Defaults 1 2 items from the/etc/fstab profile is the item to perform a boot check, and the host does not complete the reboot, Multipath does not complete the mapping,/DEV/MAPPER/DATA3

Does not exist, causing the fsck check to fail, handled by changing/dev/mapper/data3/orabak EXT4 defaults 1 2 to/dev/mapper/data3/orabak ext4 defaults 0 0 Let/de V/mapper/data3 not

Perform boot check, modify/etc/fstab need to mount/partition again, execute command: Mount-o remount RW/

Then execute: vi/etc/fstab, change 1 2 to 0 0 and exit after saving,

650) this.width=650; "Src=" http://img.blog.csdn.net/20170907172335380?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvd3d3x3h1zv94aq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "width=" "style=" border:0px;vertical-align:middle; "/>

Then execute the reboot.

After the machine has been successfully restarted and the/DEV/MAPPER/DATA3 is automatically mounted.

650) this.width=650; "Src=" http://img.blog.csdn.net/20170907172310133?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvd3d3x3h1zv94aq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Center "width=" "style=" border:0px;vertical-align:middle; "/>


This article is from the "Breeze ai ai" blog, please be sure to keep this source http://3596022.blog.51cto.com/3586022/1976242

Improper modification of Linux fstab causes power on fsck to fail and the host cannot restart

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.