There was a problem loading the comments.

How To Repair VM Filesystem (XFS)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

How To Repair VM Filesystem (XFS)

In this article, we will guide you through the process of troubleshooting and repairing Logical Volume Management (LVM) on virtual machines (VMs).

LVM issues can arise due to various reasons such as disk corruption or failed synchronization.

 

By following these steps, you can effectively diagnose and resolve LVM issues on your VMs.

  1. Shutdown the VM: Before proceeding, ensure that the rescue ISO is mounted under the hardware settings.

  2. Adjust Boot Order: Access the VM's options and verify that the boot order is configured to prioritize the CD-ROM drive.

  3. Boot into Rescue Mode: Power on the VM and press "Enter" when prompted:

99c84ec8e5c3f23127304185a8539c078a0cc03ce5bc58eaaf78b7a1d5125f5d67a5a5890990b571?t=a2fa4a8bbd2f0247e016c6868e1cee12

 

4. Launch the Graphical Interface: Type "startx" and press Enter to initiate the graphical interface:

 

f8d0c5d21a10b8f77be581d75045d1b398ece9d717aaf1806274323f539ba66a90f56b00ae04bf3e?t=d2b1ec2ce9061ca5e74ae717120eab2f

 

5. List Volumes: Use the command "fdisk -l" to list the volumes. The LVM should be detected at this point:

 

63883d0ff217047ececafcebf77c2e95e8489a06d030247323b60c160ab8ff270dcde95ee3c16f9d?t=5a69e0e20062a3c87044d214a2a0bcc1

 

6. Attempt Direct Repair: If necessary, attempt a direct repair. If the repair fails, it may indicate that the partition needs to be mounted first:

 

9c72ee75c430536fbecc97ef2887b2279f54d5646631cef02dbd7aa68172f126f30000a011aea787?t=2f690fab5ed8a99d78067924edbf7ca4

 

7. Mount and Retry Repair: Mount the partition, then unmount it and rerun "xfs_repair". Once completed, shut down the VM, remove the CD from the boot menu, and start the VM again:

 

d319ccf30f24c4c83188472e9534548aedea81c72dd579a023c03495c076731d206042e931fa8e4f?t=242d2f1fdfdfa825ecb13a652723e901

 

These steps should help guide you through the process of repairing the LVM on your VM.

If you encounter any issues or need further assistance, please don't hesitate to reach out to our support team.


Share via
Did you find this article useful?  

Related Articles

Tags

© Rackzar