<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Verdana">Thanks for your answers, but I
still don't know how to do it.<br>
<br>
Ben, yes I used an lvg with xenguest-install. Then, with anaconda, I
created a single partition in it to mount "/" (size=full disk=size of
lvg). domU sees one disk (/dev/xvda) with one partition (/dev/xvda1)
and yes, after that, I </font></font><font size="-1"><font
 face="Verdana">successfully expanded the size of the lvg from dom0. <br>
</font></font><font size="-1"><font face="Verdana"><br>
After that I'm stucked:</font></font><font size="-1"><font
 face="Verdana"><br>
- I cant expand the filesystem for "/" from domU: "fdisk" gives the
correct (new) size for "/dev/xvda", but I can't use parted or rezise2fs
on "/dev/xvda1" as it is mounted...<br>
- I could create another lvg, clone its content ("dd if=lvg
of=clonevg"), then start my domU from the clonevg and pass the original
one to the domU in the config file, then use "parted" on "resize2fs"
from domU on teh unmounted partition, then stop domU and start it again
with the original expanded lvg with teh expanded filesystem on it . But
it's a real pain.. <br>
</font></font><font size="-1"><font face="Verdana">- Maybe, from dom0,
a combination of "lomount" and "parted" or "resize2fs" or other tools
could do the job but I don't know how to do it.<br>
<br>
Thanks for your help.<br>
</font></font><br>
<font size="-1"><font face="Verdana">(I realize after re-reading that
maybe this is not a xen specific question..)<br>
<br>
<br>
</font></font><br>
Ben wrote:
<blockquote
 cite="midPine.LNX.4.64.0604241109560.15001@localhost.localdomain"
 type="cite">Sorry, I should have been more clear. When you create the
domU, you need to give it an LVM logical volume. As far as the domU is
concerned, it's just a disk. But from the dom0 side, it's an easily
expandible partition. After you grow it, use tools on the domU side to
expand the filesystem.
  <br>
  <br>
There's really no point in trying to expand a swap partition because
you can just make another one.
  <br>
  <br>
On Mon, 24 Apr 2006, Chris Hirsch wrote:
  <br>
  <br>
  <blockquote type="cite">Ben wrote:
    <br>
    <blockquote type="cite">Yeah, you use LVM and grow you logical
volume size, then expand it
      <br>
in the guest domain. I'm not sure, but I suspect you'd have to
      <br>
restart your guest before you can expand it.
      <br>
    </blockquote>
But isn't the xvda just a file containing partitions and the like?
    <br>
I've actually been wanting to do this myself WITH LVM. I'd LOVE to
    <br>
have lvm extend the file itself.
    <br>
    <br>
I did find the trick extending an image:
    <br>
dd if=/dev/zero  bs=1024 count=3500000 >> fedora.fc5.img
    <br>
resize2fs -f fedora.fc5.img
    <br>
    <br>
and thats works great...The way I understand the xvda file is that
    <br>
you'd have to copy out anything that is after the main image resize
    <br>
the image (like above) and then append the old stuff back to the end
    <br>
of the disk. I'd assume "stuff" here to mean something like swap.
    <br>
    <br>
Chris
    <br>
    <br>
    <br>
  </blockquote>
  <br>
--
  <br>
Fedora-xen mailing list
  <br>
<a class="moz-txt-link-abbreviated" href="mailto:Fedora-xen@redhat.com">Fedora-xen@redhat.com</a>
  <br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/fedora-xen">https://www.redhat.com/mailman/listinfo/fedora-xen</a>
  <br>
  <br>
</blockquote>
</body>
</html>