<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>What is the syntax for the lvextend
command?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>lvextend <VolGroup> <Physical Volume>
<Size/Extents>?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also, I need to find out how many extents there are
on the drive... /dev/sda1 (or how to use Size in GB for lvextend)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>JS</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=fancypantalons@gmail.com href="mailto:fancypantalons@gmail.com">Brett
Kosinski</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=mythtv-users@mythtv.org
href="mailto:mythtv-users@mythtv.org">Discussion about mythtv</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, June 09, 2007 11:03
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [mythtv-users] Basic LVM
question</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>I've got a pretty easy question for you. I need
to add a drive to my LVM mounted at /storage... however, I can't add it to
the LVM because it is in use. I normally use the LVM Manager program in
system>>preferences/administration</FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR>The LVM is in use? You should be able to easily add
storage to an LVM while space allocated within it is mounted. Once
that's done, you just resize the filesystem to fill the space, which can be
done by simply umount'ing /storage and then performing the necessary
operations (heck, some filesystems can be expanded on-the-fly whiel still
mounted, included XFS and ext3 in later kernels, IIRC). <BR><BR>Anyway, I
expanded my LVM recently by firing up the 'lvm' tool on the command-line and
doing a pvcreate on the new device, followed by a vgextend to add the new
physical volume to the volume group, and lastly an lvextend (I actually used
the lvextend command-line tool, as it's more flexible in how the sizes can be
specified) to expand my myth logical volume to fill the newly-available
space. This was all done while MythTV was running. Once that was
done, I shut down mythbackend, umounted my myth partition, did a resize2fs on
the filesystem. After that, it's a simple matter to remount and restart
mythbackend, and voila! More space. <BR></DIV><BR></DIV>Brett.<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>mythtv-users mailing
list<BR>mythtv-users@mythtv.org<BR>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users<BR></BLOCKQUOTE></BODY></HTML>