<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Restoring the VG UUIDs using uuid_fixer</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="LVM HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Dangerous Operations" HREF="dangerousops.html"><LINK REL="PREVIOUS" TITLE="Dangerous Operations" HREF="dangerousops.html"><LINK REL="NEXT" TITLE="Sharing LVM volumes" HREF="sharinglvm1.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >LVM HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="dangerousops.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Appendix A. Dangerous Operations</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="sharinglvm1.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="uuidfixer" ></A >A.1. Restoring the VG UUIDs using uuid_fixer</H1 ><P > If you've upgraded LVM from previous versions to early 0.9 and 0.9.1 versions of LVM and <B CLASS="command" >vgscan</B > says <TT CLASS="computeroutput" >vgscan -- no volume groups found</TT >, this is one way to fix it. </P ><P ></P ><UL ><LI ><P > Download the UUID fixer program from the contributor directory at Sistina. </P ><P > It is located at <A HREF="ftp://ftp.sistina.com/pub/LVM/contrib/uuid_fixer-0.3-IOP10.tar.gz" TARGET="_top" >ftp://ftp.sistina.com/pub/LVM/contrib/uuid_fixer-0.3-IOP10.tar.gz"</A > </P ></LI ><LI ><P > Extract <TT CLASS="filename" >uuid_fixer-0.3-IOP10.tar.gz</TT > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># tar zxf uuid_fixer-0.3-IOP10.tar.gz</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ><LI ><P > cd to uuid_fixer <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># cd uuid_fixer</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > You have one of two options at this point: </P ><P ></P ><OL TYPE="1" ><LI ><P > Use the prebuild binary (it is build for i386 architecture). </P ><P > Make sure you list all the PVs in the VG you are restoring, and follow the prompts <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># ./uuid_fixer </B ><TT CLASS="replaceable" ><I ><LIST OF ALL PVS IN VG TO BE RESTORED></I ></TT > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ><LI ><P > Build the uuid_builder program from source </P ><P > Edit the Makefile with your favorite editor, and make sure LVMDIR points to your LVM source. </P ><P > Then run make. <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># make</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > Now run uuid_fixer. Make sure you list all the PVs in the VG you are restoring, and follow the prompts. <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># ./uuid_fixer </B ><TT CLASS="replaceable" ><I ><LIST OF ALL PVS IN VG TO BE RESTORED></I ></TT > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ></OL ></LI ><LI ><P > Deactivate any active Volume Groups (<EM >optional</EM >) <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># vgchange -an</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ><LI ><P > Run vgscan <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># vgscan</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ><LI ><P > Reactivate Volume Groups <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" > <B CLASS="command" ># vgchange -ay</B > </PRE ></FONT ></TD ></TR ></TABLE > </P ></LI ></UL ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="dangerousops.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="sharinglvm1.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Dangerous Operations</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="dangerousops.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Sharing LVM volumes</TD ></TR ></TABLE ></DIV ></BODY ></HTML >