Contact Form

Name

Email *

Message *

Cari Blog Ini

Pvscan Not Finding Disk

LVM Physical Volumes Missing After OS Upgrade

Troubleshooting LVM Issues in Rocky 9

Problem: Physical volumes not detected after OS upgrade

After upgrading to Rocky 9, some users may encounter an issue where the physical volumes, volume groups, and logical volumes are not recognized by LVM commands.

Possible Causes:

  • The physical volumes may not be properly attached or detected by the operating system.
  • The LVM metadata may be corrupted or missing.
  • The LVM configuration may have changed during the upgrade.

Troubleshooting Steps:

To troubleshoot this issue, try the following steps:

1. Check Physical Volume Detection

Use the following commands to verify if the physical volumes are detected by the system:

``` fdisk -l pvscan -vv ```

2. Use -vv Parameter

Add the -vv parameter to the lvscan, pvscan, and vgscan commands to increase the verbosity of the output and check for any additional information.

3. Check LVM Metadata

If lvmetad is being used to store LVM metadata, check if it is running and accessible:

``` systemctl status lvmetad lvmetad --monitor ```

4. Rescan LVM Configuration

Manually rescan the LVM configuration by running the following commands:

``` vgscan --cache pvscan --cache lvscan --cache ```

5. Check Foreign Volume Group

If the previous LVM VG was not seen at all, check if there are any foreign VGs present:

``` pvscan --scan --foreign ```

6. Rebuild LVM Metadata

If LVM metadata is lost or corrupted, it may need to be rebuilt using the vgcfgrestore command.

Note: This is a destructive operation and should only be used as a last resort.


Comments