Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Grant McWilliams
On Mon, Sep 28, 2009 at 6:43 AM, Dennis J. denni...@conversis.de wrote:

 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest
 by adding a few gigs and then make the guest see this change without
 requiring a reboot. Is this possible maybe using some kind of bus rescan in
 the guest?

 Regards,
   Dennis


Last time I checked this wasn't supported.


Grant McWilliams

Some people, when confronted with a problem, think I know, I'll use
Windows.
Now they have two problems.
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Fabian Arrotin
Dennis J. wrote:
 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host 
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes 
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest 
 by adding a few gigs and then make the guest see this change without 
 requiring a reboot. Is this possible maybe using some kind of bus rescan in 
 the guest?
 

No, it's not possible unfortunately. On a traditionnal SCSI bus you can 
rescan the whole bus to see newer/added devices or just the device to 
see newer size, but not on a Xen domU .
At least that's what i found when i blogged about that . See that thread 
on the Xen list : 
http://lists.xensource.com/archives/html/xen-users/2008-04/msg00246.html

So what i do since then is to use lvm in the domU as well and add a new 
xvd block device to the domU (aka a new LV on the dom0) and then the 
traditionnal pvcreate/vgextend/lvextend. Working correctly for all my 
domU's ..


-- 
--
Fabian Arrotin
idea=`grep -i clue /dev/brain`
test -z $idea  echo sorry, init 6 in progress || sh ./answer.sh


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Karanbir Singh
On 28/09/09 17:37, Fabian Arrotin wrote:
 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..

how are  you able to add a new disk without a reboot ? or is that 
something that works with the xenblock drivers ?

- KB
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Christopher G. Stach II
- Karanbir Singh mail-li...@karan.org wrote:

 how are  you able to add a new disk without a reboot ? or is that 
 something that works with the xenblock drivers ?

xm block-attach

-- 
Christopher G. Stach II


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Fabian Arrotin
Karanbir Singh wrote:
 On 28/09/09 17:37, Fabian Arrotin wrote:
 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..
 
 how are  you able to add a new disk without a reboot ? or is that 
 something that works with the xenblock drivers ?
 
Yes, i've only PV domU's ;-)

virsh attach-disk /path/to/lv/on/the/domO xvd[letter as it appears on 
the domU]

-- 
--
Fabian Arrotin
idea=`grep -i clue /dev/brain`
test -z $idea  echo sorry, init 6 in progress || sh ./answer.sh


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Resizing disks for VMs

2009-09-28 Thread Dennis J.
On 09/28/2009 06:37 PM, Fabian Arrotin wrote:
 Dennis J. wrote:
 Hi,
 Is there a way to make a PV xen guest aware of a size change of the host
 disk? In my case I'm talking about a Centos 5.3 host using logical volumes
 as storage for the guests and the guests running Centos 5.3 and LVM too.
 What I'm trying to accomplish is to resize the logical volume for the guest
 by adding a few gigs and then make the guest see this change without
 requiring a reboot. Is this possible maybe using some kind of bus rescan in
 the guest?


 No, it's not possible unfortunately. On a traditionnal SCSI bus you can
 rescan the whole bus to see newer/added devices or just the device to
 see newer size, but not on a Xen domU .
 At least that's what i found when i blogged about that . See that thread
 on the Xen list :
 http://lists.xensource.com/archives/html/xen-users/2008-04/msg00246.html

 So what i do since then is to use lvm in the domU as well and add a new
 xvd block device to the domU (aka a new LV on the dom0) and then the
 traditionnal pvcreate/vgextend/lvextend. Working correctly for all my
 domU's ..

I just tested this and it works great, thanks!

Regards,
   Dennis
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt