Oliver Rojo
2010-Feb-24 09:21 UTC
[Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
Is it possible to setup lvm-based VMs on a non-LVM lenny setup. cat /etc/debian_version 5.0.3 vgdisplay and lvdisplay doesnt print anything. Thanks in advance. Oli _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oliver Rojo
2010-Feb-24 09:35 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
thank you! ----- Original Message ----- From: Fajar A. Nugraha [mailto:fajar@fajar.net] To: Oliver Rojo [mailto:orojo@tresmax.asia] Cc: xen-users@lists.xensource.com Sent: Wed, 24 Feb 2010 09:37:24 +0000 Subject: Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup> On Wed, Feb 24, 2010 at 4:21 PM, Oliver Rojo <orojo@tresmax.asia> wrote: > > Is it possible to setup lvm-based VMs on a non-LVM lenny setup. > > > > cat /etc/debian_version > > 5.0.3 > > > > vgdisplay and lvdisplay doesnt print anything. > > If by "lvm-based VMs" you mean "domU''s disk is stored as LV on dom0", > then you simply need a free disk/partition, add it to a VG, create > some LVs, then use it for domU. dom0''s filesystem does not need to be > on LVM. > > If by "lvm-based VMs" you mean "you will use LVM inside domU, but > domU''s disk is stored as files on dom0", then it has nothing to do > with wether or not you have LVM on dom0. > > -- > Fajar >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Feb-24 09:37 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
On Wed, Feb 24, 2010 at 4:21 PM, Oliver Rojo <orojo@tresmax.asia> wrote:> Is it possible to setup lvm-based VMs on a non-LVM lenny setup. > > cat /etc/debian_version > 5.0.3 > > vgdisplay and lvdisplay doesnt print anything.If by "lvm-based VMs" you mean "domU''s disk is stored as LV on dom0", then you simply need a free disk/partition, add it to a VG, create some LVs, then use it for domU. dom0''s filesystem does not need to be on LVM. If by "lvm-based VMs" you mean "you will use LVM inside domU, but domU''s disk is stored as files on dom0", then it has nothing to do with wether or not you have LVM on dom0. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Oliver Rojo
2010-Feb-24 09:42 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
well it looks like all my disk space has been into / partition for my system so I don''t think its possible to do pvcreate... ----- Original Message ----- From: Fajar A. Nugraha [mailto:fajar@fajar.net] To: Oliver Rojo [mailto:orojo@tresmax.asia] Cc: xen-users@lists.xensource.com Sent: Wed, 24 Feb 2010 09:37:24 +0000 Subject: Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup> On Wed, Feb 24, 2010 at 4:21 PM, Oliver Rojo <orojo@tresmax.asia> wrote: > > Is it possible to setup lvm-based VMs on a non-LVM lenny setup. > > > > cat /etc/debian_version > > 5.0.3 > > > > vgdisplay and lvdisplay doesnt print anything. > > If by "lvm-based VMs" you mean "domU''s disk is stored as LV on dom0", > then you simply need a free disk/partition, add it to a VG, create > some LVs, then use it for domU. dom0''s filesystem does not need to be > on LVM. > > If by "lvm-based VMs" you mean "you will use LVM inside domU, but > domU''s disk is stored as files on dom0", then it has nothing to do > with wether or not you have LVM on dom0. > > -- > Fajar > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Darko Petrović
2010-Feb-24 09:59 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
You can still change it if you have enough free space. Boot a Linux distro from Live CD (Ubuntu or Knoppix for instance) and start the partition editor. You will be able to shrink your system so as to leave room for LVM volumes. Good luck! Darko 2010/2/24 Oliver Rojo <orojo@tresmax.asia>> well it looks like all my disk space has been into / partition for my > system so I don''t think its possible to do pvcreate... > > > ----- Original Message ----- > From: Fajar A. Nugraha > [mailto:fajar@fajar.net] > To: Oliver Rojo [mailto:orojo@tresmax.asia] > Cc: > xen-users@lists.xensource.com > Sent: Wed, 24 Feb 2010 09:37:24 +0000 > Subject: > Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup > > > > On Wed, Feb 24, 2010 at 4:21 PM, Oliver Rojo <orojo@tresmax.asia> wrote: > > > Is it possible to setup lvm-based VMs on a non-LVM lenny setup. > > > > > > cat /etc/debian_version > > > 5.0.3 > > > > > > vgdisplay and lvdisplay doesnt print anything. > > > > If by "lvm-based VMs" you mean "domU''s disk is stored as LV on dom0", > > then you simply need a free disk/partition, add it to a VG, create > > some LVs, then use it for domU. dom0''s filesystem does not need to be > > on LVM. > > > > If by "lvm-based VMs" you mean "you will use LVM inside domU, but > > domU''s disk is stored as files on dom0", then it has nothing to do > > with wether or not you have LVM on dom0. > > > > -- > > Fajar > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2010-Feb-24 10:59 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
Darko Petroviç wrote:>You can still change it if you have enough free >space. Boot a Linux distro from Live CD (Ubuntu >or Knoppix for instance) and start the partition >editor. You will be able to shrink your system >so as to leave room for LVM volumes.But be careful, in the *general* case, modifying partitions is usually a destructive thing - ie it will destroy whatever is in the partition. Unless the editor explicitly supports resizing a partition (and the filesystem within it) then you''ll need to do some manual work - it''s something I''ve done a few times. Assuming EXT2 or EXT3, you can do it by : Make sure you have a backup/means of recovery if it goes wrong. Check (fsck -f) the filesystem (resize2fs will refuse to work unless you do). Resize (shrink) the filesystem with resize2fs. Delete the partition. Re-create the partition making sure that it starts in the same place and is equal or larger in size than the filesystem size. If you didn''t make the partition exactly the same size as the filesystem, resize the filesystem again to fill the partition. You now have a smaller partition with the same files in it - just less free space. -- Simon Hobson WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD and need this CD so I can replace the disk and re-install the printer OS on it. If anyone knows where I might get hold of one I''d be grateful - requests to Canon drew a blank, it''s been out of support for years. Alternatively, if anyone has one of these and would let me image their hard disk ... Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Feb-25 04:57 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
On Wed, Feb 24, 2010 at 5:59 PM, Simon Hobson <linux@thehobsons.co.uk> wrote:> Darko Petroviç wrote: >> >> You can still change it if you have enough free space. Boot a Linux distro >> from Live CD (Ubuntu or Knoppix for instance) and start the partition >> editor. You will be able to shrink your system so as to leave room for LVM >> volumes. > > But be careful, in the *general* case, modifying partitions is usually a > destructive thing - ie it will destroy whatever is in the partition. Unless > the editor explicitly supports resizing a partition (and the filesystem > within it) then you''ll need to do some manual work - it''s something I''ve > done a few times.IIRC Ubuntu Live CD has gparted, which can automate the manual work. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Simon Hobson
2010-Feb-25 07:55 UTC
Re: [Xen-users] setting-up lvm-based VMs on a non-LVM Lenny setup
Fajar A. Nugraha wrote:> > But be careful, in the *general* case, modifying partitions is usually a >> destructive thing - ie it will destroy whatever is in the partition. Unless >> the editor explicitly supports resizing a partition (and the filesystem >> within it) then you''ll need to do some manual work - it''s something I''ve >> done a few times. > >IIRC Ubuntu Live CD has gparted, which can automate the manual work.That''s useful to know - I just didn''t want a message in a few days along the lines of "I resized a partition and now my files are gone" ! -- Simon Hobson WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD and need this CD so I can replace the disk and re-install the printer OS on it. If anyone knows where I might get hold of one I''d be grateful - requests to Canon drew a blank, it''s been out of support for years. Alternatively, if anyone has one of these and would let me image their hard disk ... Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users