LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to fixed ubuntu server 20.04 LTS /dev/mapper/ubuntu/--vg-ubuntu--lv contains a file system with errors, check forced (https://www.linuxquestions.org/questions/ubuntu-63/how-to-fixed-ubuntu-server-20-04-lts-dev-mapper-ubuntu-vg-ubuntu-lv-contains-a-file-system-with-errors-check-forced-4175736597/)

m.juhad 05-01-2024 01:07 AM

How to fixed ubuntu server 20.04 LTS /dev/mapper/ubuntu/--vg-ubuntu--lv contains a file system with errors, check forced
 
Dear Master Ubuntu Server 20.04 LTS,

Hi I am newbie for Linux Ubuntu Server user.
I have a cases with my Linux Ubuntu PC Server.
When I boot my PC I got an error with:

/dev/mapper/ubuntu/--vg-ubuntu--lv contains a file system with errors, check forced

Error Captured:
https://drive.google.com/file/d/1FQo...ew?usp=sharing

I used 2 storages SSD & HDD and both of storage installed Ubuntu Server 20.04 LTS. And the cases is same when I try to boot of each.

Any user got some experienced likes me and please teach me to how to fixed it this cases?

Details hardware are:
- Motherboard: ASRock Z790 PG Riptide 4.13
- RAM: 2x Corsair 16 GB (4400)
- SSD: Samsung SSD 970 Evo Plus 5 500 GB
- HDD: Seagate 2TB

Hardware Capture:
https://drive.google.com/file/d/1yBV...ew?usp=sharing

Warm Regards,

yancek 05-01-2024 07:26 AM

The image you posted with the error output states that a manual fsck (filesystem check) is required so do that. Note the filesystem type (default on Ubuntu is ext4) and run fsck without the options mentioned in the image (too small for me to read). You will find countless sites with an online search explaining how to use fsck such as the one at the link below. Read through it before doing anything so you have at least a basic understanding.

https://phoenixnap.com/kb/fsck-command-linux

m.juhad 05-01-2024 09:49 PM

Quote:

Originally Posted by yancek (Post 6499251)
The image you posted with the error output states that a manual fsck (filesystem check) is required so do that. Note the filesystem type (default on Ubuntu is ext4) and run fsck without the options mentioned in the image (toot small for me to read). You will find countless sites with an online search explaining how to use fsck such as the one at the link below. Read through it before doing anything so you have at least a basic understanding.

https://phoenixnap.com/kb/fsck-command-linux



Hi Thanks anyway to try to help me,

I hope this image better then previous, then you can help me to guide for trouble shooting in my cases step by step in linux command.
https://drive.google.com/file/d/1MzF...ew?usp=sharing

screenshot df -h
https://drive.google.com/file/d/1MzH...ew?usp=sharing

screenshot blkid
https://drive.google.com/file/d/1N-F...ew?usp=sharing

yancek 05-02-2024 07:14 AM

I don't use LVM so you need to do an online search for 'running fsck on Ubuntu LVM' or something similar. The site at the link below has a discussion of it if you scroll down the page a bit. Make sure to not use the fsck options mentioned in your error.

https://askubuntu.com/questions/1124...disk-with-fsck

m.juhad 05-03-2024 11:15 PM

Quote:

Originally Posted by yancek (Post 6499457)
I don't use LVM so you need to do an online search for 'running fsck on Ubuntu LVM' or something similar. The site at the link below has a discussion of it if you scroll down the page a bit. Make sure to not use the fsck options mentioned in your error.

https://askubuntu.com/questions/1124...disk-with-fsck



I try to do repair with the guideline you've given and right now the problem has been solved. Now, I still monitoring my server and hope the cases not happened again.

Thanks anyway, mate.

Below the steps I do the troubleshooting.(I Get from AI chat)

1. Check the LVM Status:
Run the following command to check the status of the LVM volumes:

sudo lvdisplay

2. Unmount the File System:
If the file system is mounted, unmount it before proceeding with the repair:

sudo umount /dev/mapper/ubuntu--vg-ubuntu--lv

3. Check and Repair the File System:
You can run a file system check and repair using fsck. Run the following command to check the file system for errors:

sudo fsck -fy /dev/mapper/ubuntu--vg-ubuntu--lv

4. Remount the File System:
After repairing the file system, you can remount it:

sudo mount /dev/mapper/ubuntu--vg-ubuntu--lv /mnt

5. Reboot the Server:
Once you've completed the repair process, reboot the server to ensure that all changes take effect:

sudo reboot

After following these steps, your Ubuntu server's LVM disk with file system errors should be repaired. Make sure to monitor the server after rebooting to ensure that everything is functioning correctly.

yancek 05-04-2024 07:14 AM

Good idea to save that information to a file, just in case. You might do an online search for tools to use to monitor your hardware. One such option at the link below.

https://help.ubuntu.com/community/Smartmontools

m.juhad 05-05-2024 10:25 PM

Quote:

Originally Posted by yancek (Post 6499790)
Good idea to save that information to a file, just in case. You might do an online search for tools to use to monitor your hardware. One such option at the link below.

https://help.ubuntu.com/community/Smartmontools


Mates,

Thanks for sharing the link. I'll try if any faulty on my ubuntu server storage.

by the way, If I runs Smartmontools. It will impact with the data traffic on my server and client ?

And if I got any problem with my ubuntu server, I hope you'll be help me again with your experienced.


All times are GMT -5. The time now is 09:25 AM.