Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > by-pkgid > 965e33040dd61030a94f0eb89877aee8 > files > 3046

howto-html-en-20080722-2mdv2010.1.noarch.rpm

<!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
>&#13;        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
>&#13;            Download the UUID fixer program from the contributor
            directory at Sistina.
          </P
><P
>&#13;            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
>&#13;            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"
>&#13;<B
CLASS="command"
># tar zxf uuid_fixer-0.3-IOP10.tar.gz</B
>
            </PRE
></FONT
></TD
></TR
></TABLE
>
          </P
></LI
><LI
><P
>&#13;            cd to uuid_fixer
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;<B
CLASS="command"
># cd uuid_fixer</B
>
            </PRE
></FONT
></TD
></TR
></TABLE
>
          </P
><P
>&#13;            You have one of two options at this point:
          </P
><P
></P
><OL
TYPE="1"
><LI
><P
>&#13;                Use the prebuild binary (it is build for i386
                architecture).
              </P
><P
>&#13;                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"
>&#13;<B
CLASS="command"
># ./uuid_fixer </B
><TT
CLASS="replaceable"
><I
>&#60;LIST OF ALL PVS IN VG TO BE RESTORED&#62;</I
></TT
>
                </PRE
></FONT
></TD
></TR
></TABLE
>
              </P
></LI
><LI
><P
>&#13;                Build the uuid_builder program from source
              </P
><P
>&#13;                Edit the Makefile with your favorite editor, and make
                sure LVMDIR points to your LVM source.
              </P
><P
>&#13;                Then run make.
                <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;<B
CLASS="command"
># make</B
>
                </PRE
></FONT
></TD
></TR
></TABLE
>
              </P
><P
>&#13;                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"
>&#13;<B
CLASS="command"
># ./uuid_fixer </B
><TT
CLASS="replaceable"
><I
>&#60;LIST OF ALL PVS IN VG TO BE RESTORED&#62;</I
></TT
>
                </PRE
></FONT
></TD
></TR
></TABLE
>
              </P
></LI
></OL
></LI
><LI
><P
>&#13;            Deactivate any active Volume Groups
            (<EM
>optional</EM
>)
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;<B
CLASS="command"
># vgchange -an</B
>
            </PRE
></FONT
></TD
></TR
></TABLE
>
          </P
></LI
><LI
><P
>&#13;            Run vgscan
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;<B
CLASS="command"
># vgscan</B
>
            </PRE
></FONT
></TD
></TR
></TABLE
>
          </P
></LI
><LI
><P
>&#13;            Reactivate Volume Groups
            <TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><FONT
COLOR="#000000"
><PRE
CLASS="screen"
>&#13;<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
>