LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2018, 03:21 AM   #1
MagTheRose
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Rep: Reputation: Disabled
Glusterfs and qemu/KVM question


I'm planning to use GlusterFS on 2 nodes as storage for virtual machines with qemu/KVM.

My concern is:
If I use qcow2-format, a big file is written to the GlusterFS, which needs to be synchronized and since the virtual server will always put some data to it's storage, the file will always be altered -> so the GlusterFS has to synchronize a big 200G-file everytime ?!?
Is it possible to simply share a directory for the virtual server, where only the altered files have to be synchronized?
Or is the way to have the boot-partition in a qcow2-file and mount the root-filesystem via NFS?
 
Old 09-24-2018, 01:24 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You have a lot going on and there may be other ways to do this.

Some ideas.
qcow2 should act like any drive but it has limits. You can remove some of them by preallocating the size so that it doesn't want to grow on a write. That also almost makes most of qcow2 a raw and you may simply wish to use a raw image.

It is possible to share directories in almost all vm's. As to when that is available to the OS may be an issue.


Yes, using a nfs or even something like iscsi is common.
 
1 members found this post helpful.
Old 09-24-2018, 04:55 PM   #3
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 279

Rep: Reputation: 100Reputation: 100
Just few things or ideas as I read on subject not long ago.

I guess you know that GlusterFS advise to use 3 nodes minimum ?

To share files between guest and host 9P filesystem exists.

Several docs I read use raw VM format, it seems obvious but I did not understand why. And I don't know if GlusterFS has to be set replica or not...
 
1 members found this post helpful.
Old 09-25-2018, 03:39 AM   #4
MagTheRose
LQ Newbie
 
Registered: Sep 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks a lot, guys
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 03:56 AM
On qemu-kvm, qemu-ifup script not found on Slackware 13 AndrewGaven Linux - Virtualization and Cloud 14 01-29-2010 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration