[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Xen Image File vs LVM
On Mon, Aug 4, 2008 at 1:04 PM, Javier Guerra <javier@xxxxxxxxxxx> wrote:
You can go between LVs and files too really easy. I've started putting tutorials up on these things as I get to them at http://grantmcwilliams.com/index.php?option=com_content&view=category&id=97&Itemid=379 The URL will be changing though as I implement SEO on my site. -------------------------------------------------------------------------------------------------------------- How to move from a tap:aio file to Logical Volume Management In Xen we can provide virtualized hard drives several different ways. It's not uncommon to create a large empty file using dd and then specify it as the hard drive like this. name = "mailserver" In this example /srv/xen/mailserver.img is our file. In a lot of ways LVM is more powerful and faster so moving our test server to LVM makes sense once we've gotten serious about deploying it. Moving from tap:aio to LVM is much easier than you think, here's how. 1. Shutdown domain. xm shutdown mailserver 2. Create the Logical Volume You'll need a Logical Volume the same size as your Xen disk file. In this example the Xen disk file is 10GB and I'll assume you already created it. This could easily turn into an LVM tutorial if I don't. 10 GB Disk file: /srv/xen/mailserver.img 3. Copy disk file to Logical Volume dd if=/srv/xen/mailserver.img of=/dev/VolGroup00/LogVolMAIL -bs 1024 4. Edit the Xen domain config file name = "mailserver" 5. Restart domain xm create -c mailserver _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |