Quote:
Originally Posted by yancek
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.