Hey,
There are a few problems with your commands:
1: you did lvresize on one lv and resized the filesystem of another;
2: you FIRST fsck -f the filesystem you want to resize, THEN you resize2fs it.
Beware: that works to INCREASE a filesystem. If you want to reduce it like that, you will lose data. You need to first decrease the filesystem, then the LV.
But back to increasing it:
# lvresize -L 10g /dev/srv/toto-disk
# e2fsck -f /dev/srv/toto-disk
# resize2fs /dev/srv/toto-disk
That should do it. The first increases the "physical" space (since it's lvm), the second checks the filesystem for errors so resize2fs can extend it without the risk of changing a damaged filesystem, which would result (probably) in more damage.
Hope that helps.
On 8/12/07, ko0nz <yesiko0nz@xxxxxxxxx> wrote:
> Make sure you use the tools for whatever filesystem is on the lvm volume
> to resize the filesystem to take up all of the new space. As an example,
> resize2fs is what you'd use for ext2 filesystems.
i did but nothing happened...
how i did on my Dom0 :
# lvresize -L 10g /dev/srv/apollon-disk
# resize2fs /dev/srv/toto-disk
# e2fsck -f /dev/srv/toto-disk
when i did
# lvs
it does show my news size.
when i run my DomU toto
# xm create toto.cfg
# xm console toto
# df -h
it does show the old size of guest DomU toto.
what do think about this?
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users