Got it

The OS Is in the read-only State

Created: Jan 28, 2022 02:50:34Latest reply: Jan 31, 2022 14:34:00 770 4 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Hello team!


This post enquires about an issue I'm facing, namely the OS is in the read-only state. Below can be found more details regarding it.


ISSUE DESCRIPTION


After the equipment room is powered off and the VM is started, the OS becomes read-only. I've tried to restart the VM. The VM was restored, but the below error message was displayed during the VM restoration:


[3.116335]systemd-fsck[597]:/dev/mapper/oss_vg-optlog_vol:Inodes that were part of a corrupted orphan linked list found.
[3.118363]systemd-fsck[597]:/dev/mapper/oss_vg-optlog_vol:UNEXPECTED INCONSISTENCY;RUN fsck MANUALLY.
[3.119977]systemd-fsck[597]:/dev/mapper/oss_vg-optlog_vol:(i.e.,without -a or -p options)


Thanks in advance for helping me solve this issue!

  • x
  • convention:

Featured Answers
olive.zhao
Admin Created Jan 28, 2022 03:00:19

Hello, friend!

According to the command output, the problem may be caused by disk damage. You can use the following steps to solve the issue.

1. After the system enters the maintenance mode, the system automatically logs in as the root user.

2. Run the following command to detach the disk:

umount Disk name

3. If the following information is displayed, run the following commands to stop the running processes, and then unmount the disk again:

[root@EulerOS-BaseTemplate ~]# umount /dev/mapper/oss_vg-optlog_vol
umount: /opt: target is busy.
(In some cases useful info about processes that use 
 the device is found by lsof(8) or fuser(1))

fuser -ck /opt

umount Disk name

4. Run the following command to repair the disk:

fsck.ext4 -f -y Disk name

5. Run the following command to restart the VM:

reboot

6. Use PuTTY to log in to the faulty node as the sopuser user.

7. Run the following command to switch to the root user:

sudo su root

8. Run the following command to check whether the fault is rectified:

df -h

Check whether /dev/mapper/oss_vg-opt_vol and /dev/mapper/oss_vg-optlog_vol are displayed in the command output and whether data is displayed. The following is an example of the command output:

/dev/mapper/oss_vg-opt_vol

Hope this helps!

View more
  • x
  • convention:

user_4411447
user_4411447 Created Jan 31, 2022 04:17:28 (0) (0)
 
All Answers
olive.zhao
olive.zhao Admin Created Jan 28, 2022 03:00:19

Hello, friend!

According to the command output, the problem may be caused by disk damage. You can use the following steps to solve the issue.

1. After the system enters the maintenance mode, the system automatically logs in as the root user.

2. Run the following command to detach the disk:

umount Disk name

3. If the following information is displayed, run the following commands to stop the running processes, and then unmount the disk again:

[root@EulerOS-BaseTemplate ~]# umount /dev/mapper/oss_vg-optlog_vol
umount: /opt: target is busy.
(In some cases useful info about processes that use 
 the device is found by lsof(8) or fuser(1))

fuser -ck /opt

umount Disk name

4. Run the following command to repair the disk:

fsck.ext4 -f -y Disk name

5. Run the following command to restart the VM:

reboot

6. Use PuTTY to log in to the faulty node as the sopuser user.

7. Run the following command to switch to the root user:

sudo su root

8. Run the following command to check whether the fault is rectified:

df -h

Check whether /dev/mapper/oss_vg-opt_vol and /dev/mapper/oss_vg-optlog_vol are displayed in the command output and whether data is displayed. The following is an example of the command output:

/dev/mapper/oss_vg-opt_vol

Hope this helps!

View more
  • x
  • convention:

user_4411447
user_4411447 Created Jan 31, 2022 04:17:28 (0) (0)
 
Saqibaz
Saqibaz Created Jan 28, 2022 05:18:33

Nice sharing
View more
  • x
  • convention:

Unicef
Unicef MVE Created Jan 31, 2022 14:34:00

Good answer
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.