Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

A.1. Restoring the VG UUIDs using uuid_fixer

If you've upgraded LVM from previous versions to early 0.9 and 0.9.1 versions of LVM and vgscan says vgscan -- no volume groups found, this is one way to fix it.

  • Download the UUID fixer program from the contributor directory at Sistina.

    It is located at ftp://ftp.sistina.com/pub/LVM/contrib/uuid_fixer-0.3-IOP10.tar.gz"

  • Extract uuid_fixer-0.3-IOP10.tar.gz
    
# tar zxf uuid_fixer-0.3-IOP10.tar.gz
                

  • cd to uuid_fixer
    
# cd uuid_fixer
                

    You have one of two options at this point:

    1. Use the prebuild binary (it is build for i386 architecture).

      Make sure you list all the PVs in the VG you are restoring, and follow the prompts
      
# ./uuid_fixer <LIST OF ALL PVS IN VG TO BE RESTORED>
                      

    2. Build the uuid_builder program from source

      Edit the Makefile with your favorite editor, and make sure LVMDIR points to your LVM source.

      Then run make.
      
# make
                      

      Now run uuid_fixer. Make sure you list all the PVs in the VG you are restoring, and follow the prompts.
      
# ./uuid_fixer <LIST OF ALL PVS IN VG TO BE RESTORED>
                      

  • Deactivate any active Volume Groups (optional)
    
# vgchange -an
                

  • Run vgscan
    
# vgscan
                

  • Reactivate Volume Groups
    
# vgchange -ay
                

 
 
  Published under the terms of the GNU General Public License Design by Interspire