|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] How do I resize a Physical Partition in a Dom U that's "on"
Hey all,
I'm trying to figure out how to re-size physical partitions in the Dom U.
I've read up what I can find on line and finally decided to have
Logical Volumes in the Dom 0 and pass them as physical volumes for use
in the Dom U.
Here's an example of what I'm doing.
To start in the Dom 0 I created the LV's with
lvcreate -n guest_boot -L 100M /dev/VG01
lvcreate -n guest_swap -L 512M /dev/VG01
lvcreate -n guest_root -L 4G /dev/VG01
Then in the Dom U configuration file I added
disk=['phy:/dev/VG01/guest_boot,xvda,w','phy:/dev/VG01/guest_swap,xvdb,w','phy:/dev/VG01/guest_root,xvdc,w']
Then I set up the Dom U so
(hd0) /dev/xvda --------> mounts @ "/boot"
(hd1) /dev/xvdb --------> mounts @ "swap"
(hd2) /dev/xvdc --------> mounts @ "/"
So with this the Dom U gets started OK. In the guest I see
df -H
Filesystem Size Used Avail Use% Mounted on
/dev/xvdc1 4.3G 2.1G 2.0G 51% /
udev 543M 78k 543M 1% /dev
/dev/xvda1 82M 19M 57M 14% /boot
What I want to do now is increase the size of the Dom U's root
(/dev/xvdc) partition. And I want to avoid losing, overwriting, or
screwing up somehow my data in the process :-)
I know the first step I have to do is increase the size of the right
LV, that matches the /dev/xvdc1 "root" partition in the Dom U, in the
Dom 0 first. I do that with
lvextend -L +4G /dev/VG01 guest_root
Can I do that "hot" without shutting down the Dom U first? Or do I
need to shut it down THEN do the lvextend?
The next step is what's got me confused.
The lvcreate I did first increased the size of "/dev/xvdc", but now I
need to grow or extend the "/dev/xvdc1" partition in the Dom U to fill
up to the maximum available.
Do I do that in the Dom U or in the Dom 0? I think resize2fs needs to
be used, since I don't have a Logical Volume in the Dom U. I just
don't know.
I'm sorry if I'm just missing what's obvious but I'm kind of confused
by the whole Logical/Physical differences in the Dom 0 and the Dom U.
Any kind of help or advice would be really appreciated a lot!
Thanks a bunch.
Bob
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] How do I resize a Physical Partition in a Dom U that's "on" a Logical Volume in the Dom 0?,
Bob Linkonij <=
|
|
|
|
|