Storage and backup considerations using kvm on Cent OS 6.0
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Storage and backup considerations using kvm on Cent OS 6.0
Hi,
Some very newbie questions.
I have to move an old SCO-Unix server to a Cent OS 6.0 guest on a Cent OS 6.0 Host.
The space used on the SCO is 65 GB.
How shall i plan the storage ?
Make an image based guest of 100 GB an install on that ?
Or is LVM based better regarding performance ?
Should i allocate 100GB or 200 GB ? What is best ?
What about backup ? Should i take backup from the guest with tar/cpio or backup of the image file on the host ?
IMHO, the easiest way is by using tools like "dd" to create the whole disk image of your SCO installation and use that image for your guest disk. CloneZilla, a live Linux CD, could automate such work.
Regarding backups, it's up to you. Many people use "tar", but lately rsync is a popular choice too. Full image backup is a safe choice, but that takes really big space, especially if you don't compress it.
There are benchmarks showing very little difference in terms of i/o performance between a lv backed virtual disk and a image file backed virtual disk. I expect the file system used will be a factor, as will fragmentation. Google for the benchmarks.
If you decide to use an image file, I would use a fixed sized image rather than a dynamically growing one to prevent over committing your disk space in the future.
Is performance faster using LVM than image file in the host filesystem ?
I have no data in hand, so the following idea is entirely based on my guess:
just like Phil said, I think it's about the same (LVM based vs image file based). The key here I believe is more on which filesystem you use, both the one you use to format image file and the one that act as a host (in case of image file).
One thing that might speed up the access is that try to use extent based filesystem whenever possible, such as ext4 or JFS. Extent is a nice way to reduce fragmentation, reading as many as you can in one go.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.