<html><body bgcolor="#FFFFFF"><div>Most storage arrays can grow existing disks, which doesn't work as nicely if the disk has a partition. Making a PV out of the entire disk allows much easier PV/VG/LV expansion, without mucking with a partition table.</div><div><br></div><div>As for the training piece, I'd expect an admin would do some verification a disk is not in use before blindly assuming it's not in use, and overwriting data. There is no standard practice with how to create a PV, it depends on the site.<br><br><br></div><div><br>On May 3, 2011, at 5:30 AM, "Moray Henderson" <<a href="mailto:Moray.Henderson@ict-software.org">Moray.Henderson@ict-software.org</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>

<div class="WordSection1">

<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">

<div>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">

<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:
"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;
font-family:"Tahoma","sans-serif""> Speagle, Andy [mailto:andy.speagle@wichita.edu]
<br>
<br>
</span><span lang="EN-US"><o:p></o:p></span></p>

</div>

</div>

<p class="MsoNormal"><span lang="EN-US">I’m trying to setup the partitioning
section of my kickstarts in such a way that rather than partitioning a disk and
using /dev/sdX1 as the PV for my root VG, that I can instead use the entire
disk.  <o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>

<p class="MsoNormal"><span lang="EN-US">The reason for doing this would be to make
PV resizing a bit easier for virtual machines.  Otherwise, I must muck
around with the partition table and blah blah … not a show-stopper, but
potentially dangerous for junior admins.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>

<p class="MsoNormal"><span lang="EN-US">I suspect that the functionality just
isn’t there… but does anyone know the magic syntax to get it to use
the entire drive (aka. /dev/sdb) as a PV during kickstart?<o:p></o:p></span></p>

</div>

<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D">Why do you need to resize PVs
for virtual machines?  You allocate the extra space to your VM as another
virtual drive or partition, then using LVM create another Physical Volume for
that drive, add that Physical Volume to your Volume Group and Logical Volume,
and extend the filesystem.  No  mucking around with an existing
partition table.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D">I would be confused if I
encountered a disk without a partition table – I’d probably assume
it wasn’t formatted at all.  Better to train your junior admins in
standard practice?<o:p></o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D">Moray.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="color:#1F497D">“To err is human; to purr,
feline.”<o:p></o:p></span></p>

</div>




</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Kickstart-list mailing list</span><br><span><a href="mailto:Kickstart-list@redhat.com">Kickstart-list@redhat.com</a></span><br><span><a href="https://www.redhat.com/mailman/listinfo/kickstart-list">https://www.redhat.com/mailman/listinfo/kickstart-list</a></span></div></blockquote></body></html>