linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] how to enlarge a logical volume that is a virtual disk of a virtual machine that uses lvm too?
@ 2009-03-07  3:11 Ricardo Funke Ormieres
  2009-03-07  9:29 ` Alex Brett
  0 siblings, 1 reply; 4+ messages in thread
From: Ricardo Funke Ormieres @ 2009-03-07  3:11 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

Hello,

I have a phisical machine with a xen vm installed and I'm using LVM in both.
The Virtual Machine is using a LogVol (that belongs to the Dom0) as it's
virtual hard disk.

It's possible to enlarge this LogVol in order to enlarge the vm's hard disk?

I know that I can just create another LogVol in the Dom0 and add it to the
vm's PV, but I'm curious for that possible alternative.

Thanks in advance

[-- Attachment #2: Type: text/html, Size: 461 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] how to enlarge a logical volume that is a virtual disk of a virtual machine that uses lvm too?
  2009-03-07  3:11 [linux-lvm] how to enlarge a logical volume that is a virtual disk of a virtual machine that uses lvm too? Ricardo Funke Ormieres
@ 2009-03-07  9:29 ` Alex Brett
  2009-03-07 15:51   ` Ricardo Funke Ormieres
  2009-03-09 12:05   ` Bryn M. Reeves
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Brett @ 2009-03-07  9:29 UTC (permalink / raw)
  To: LVM general discussion and development

I'm not sure if you could do it online or not (I can't see any reason
why not, but there may be issues), but you should just be able to resize
the LV (lvresize) in dom0 (obviously make sure you enlarge it, not
shrink it), then do a pvresize in the VM to enlarge the PV to use all
the extra space.

Alex

Ricardo Funke Ormieres wrote:
> Hello,
> 
> I have a phisical machine with a xen vm installed and I'm using LVM in
> both. The Virtual Machine is using a LogVol (that belongs to the Dom0)
> as it's virtual hard disk.
> 
> It's possible to enlarge this LogVol in order to enlarge the vm's hard disk?
> 
> I know that I can just create another LogVol in the Dom0 and add it to
> the vm's PV, but I'm curious for that possible alternative.
> 
> Thanks in advance
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] how to enlarge a logical volume that is a virtual  disk of a virtual machine that uses lvm too?
  2009-03-07  9:29 ` Alex Brett
@ 2009-03-07 15:51   ` Ricardo Funke Ormieres
  2009-03-09 12:05   ` Bryn M. Reeves
  1 sibling, 0 replies; 4+ messages in thread
From: Ricardo Funke Ormieres @ 2009-03-07 15:51 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]

Ok Alex, I'll try it online and offline to see what happen

Thank you very much! =)

2009/3/7 Alex Brett <alex@alexbrett.net>

> I'm not sure if you could do it online or not (I can't see any reason
> why not, but there may be issues), but you should just be able to resize
> the LV (lvresize) in dom0 (obviously make sure you enlarge it, not
> shrink it), then do a pvresize in the VM to enlarge the PV to use all
> the extra space.
>
> Alex
>
> Ricardo Funke Ormieres wrote:
> > Hello,
> >
> > I have a phisical machine with a xen vm installed and I'm using LVM in
> > both. The Virtual Machine is using a LogVol (that belongs to the Dom0)
> > as it's virtual hard disk.
> >
> > It's possible to enlarge this LogVol in order to enlarge the vm's hard
> disk?
> >
> > I know that I can just create another LogVol in the Dom0 and add it to
> > the vm's PV, but I'm curious for that possible alternative.
> >
> > Thanks in advance
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > linux-lvm mailing list
> > linux-lvm@redhat.com
> > https://www.redhat.com/mailman/listinfo/linux-lvm
> > read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[-- Attachment #2: Type: text/html, Size: 2295 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] how to enlarge a logical volume that is a virtual disk of a virtual machine that uses lvm too?
  2009-03-07  9:29 ` Alex Brett
  2009-03-07 15:51   ` Ricardo Funke Ormieres
@ 2009-03-09 12:05   ` Bryn M. Reeves
  1 sibling, 0 replies; 4+ messages in thread
From: Bryn M. Reeves @ 2009-03-09 12:05 UTC (permalink / raw)
  To: LVM general discussion and development

Alex Brett wrote:
> I'm not sure if you could do it online or not (I can't see any
> reason why not, but there may be issues), but you should just be
> able to resize the LV (lvresize) in dom0 (obviously make sure you
> enlarge it, not shrink it), then do a pvresize in the VM to enlarge
> the PV to use all

Depending on the type of device and whether it is partitioned or not
it may not be possible to have the guest recognise the new size of the
device without a reboot.

Regards,
Bryn.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-09 12:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07  3:11 [linux-lvm] how to enlarge a logical volume that is a virtual disk of a virtual machine that uses lvm too? Ricardo Funke Ormieres
2009-03-07  9:29 ` Alex Brett
2009-03-07 15:51   ` Ricardo Funke Ormieres
2009-03-09 12:05   ` Bryn M. Reeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).