How do we recreate lost lvm device files ?

Solution Verified - Updated -

Issue

  • After a server crash, volume group device files are not seen under /dev/. How can this be re-created ?

  • An extra disk was added prior the machine crashing. This was part of a volume group 'VolGroup00'. After the system crash, the volume group 'VolGroup00' was in the state of 'not available'. Upon further investigation, the volume group and the logical volumes under it was missing in /dev/.

  • Output of 'lvdisplay' shows the lvm structure intact :

     --- Logical volume ---
      LV Name                /dev/VolGroup00/LogVol01
      VG Name                VolGroup00
      LV UUID                8l8e7G-I1Gp-FBZi-XNXS-Jxtc-LLyp-SslVcI
      LV Write Access        read/write
      LV Status              NOT available
      LV Size                19.80 GB
      Current LE             5069
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
     ----
    
    [root@system1 ~]# cd /dev
    [root@system1 /dev]# ls VolGroup00
    ls: VolGroup00: No such file or directory
    
  • 'vgcfgrestore' fails leaving a traceback.

    # vgcfgrestore -f /etc/lvm/backup/VolGroup00 /dev/sdb
    
    2ba3ce899000-2ba3ce89a000 rw-p 2ba3ce899000 00:00 0
    2ba3ce8a5000-2ba3ce8aa000 rw-p 2ba3ce8a5000 00:00 0
    2ba3ce8aa000-2ba3d1e83000 r--p 00000000 fd:00 77807        /usr/lib/locale/locale-archive
    7fff26a43000-7fff26a58000 rw-p 7ffffffea000 00:00 0        [stack]
    ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0    [vdso]
    Aborted
    

Environment

Red Hat Enterprise Linux 4, 5, 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.