<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>LVM2 on hardware RAID</title>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PostalCode"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="Street"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="address"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>I believe you will do the following:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>“pvresive /dev/sdb”<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>That will make the volume group now be
600GB.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>Then use “lvextend” to enlarge
the logical volumes, and whatever the proper tool is to extend the EXT3
filesystem.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>Best to have the logical volumes &
volume group offline (“vgchange –a n”) before starting
resizing.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'>Just my $0.02.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
linux-lvm-bounces@redhat.com [mailto:linux-lvm-bounces@redhat.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Musil, William<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, August 11, 2006
12:49 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">linux-lvm@redhat.com</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> [linux-lvm] LVM2 on
hardware RAID</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hello
all.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
have an issue, that I am not sure how to address.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>How
can I resize the physical volume if I change the geometry of the disk
(non-destructive resize of RAID volume at the hardware level) </span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
can see that the OS has picked up the new size of the disk and I would like to
resize the existing pv. I don't know how.</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
started with a hardware raid 5 (400GB), linux automatically recognizes disk as
/dev/sdb</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>a
simplistic representation of the setup is as follows</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>pvcreate
/dev/sdb</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>vgcreate
VolGroup10 /dev/sdb</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>lvcreate
-n LogVol10 VolGroup10</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>mkfs.ext3
/dev/mapper/VolGroup10-LogVol10</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>I
have added a disk and expand the array to 600GB I can still see every thing but
I don't know how to extend the PV.</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>filesystems
OK</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>logical
volumes OK</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>volume
groups OK</span></font> <o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>linux
sees /dev/sdb as 600GB</span></font> <br>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>pvs
shows pv /dev/sdb is 400GB. I wish to, non-destructively, reinitialize /dev/sdb
so that pvs shows 600GB. how?</span></font> <o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p><b><font size=3 color=black face=Arial><span style='font-size:12.0pt;
font-family:Arial;color:black;font-weight:bold'>William T. Musil</span></font></b>
<br>
<font size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:black'>Manager, Technical Services</span></font> <o:p></o:p></p>

<p><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'>LabVantage Solutions, Inc.</span></font> <br>
<st1:Street w:st="on"><st1:address w:st="on"><font size=2 color=black
  face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'>1160
  US Highway</span></font></st1:address></st1:Street><font size=2 color=black
face=Arial><span style='font-size:10.0pt;font-family:Arial;color:black'> 22
East, <st1:place w:st="on"><st1:City w:st="on">Bridgewater</st1:City>, <st1:State
 w:st="on">NJ</st1:State> <st1:PostalCode w:st="on">08807</st1:PostalCode></st1:place></span></font>
<br>
<b><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black;font-weight:bold'>p|</span></font></b><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'> 908.333.0111</span></font> <br>
<b><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black;font-weight:bold'>f |</span></font></b><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'> 908.707.1179 </span></font><br>
<b><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black;font-weight:bold'>e|</span></font></b><u> </u><u><font
size=2 color=blue face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:blue'>wmusil@labvantage.com</span></font></u> <br>
<b><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black;font-weight:bold'>i |</span></font></b><font
size=2 color=black face=Arial><span style='font-size:10.0pt;font-family:Arial;
color:black'> www.labvantage.com</span></font> <o:p></o:p></p>

<p><font size=1 color=black face=Arial><span style='font-size:7.5pt;font-family:
Arial;color:black'>The information in this e-mail is confidential and may
contain legally privileged information. It is intended solely for the person or
entity to which it is addressed. Access to this e-mail by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution, action taken, or action omitted to be taken in reliance on it, is
prohibited and may be unlawful. If you received this e-mail in error, please
contact the sender and delete the material from any computer.</span></font><o:p></o:p></p>

<p><font size=2 color=black face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:black'><<Musil, William.vcf>> </span></font><o:p></o:p></p>

</div>

</body>

</html>