[Gluster-users] Setup with replica 3 for imagestorage
Gregor Burck
gregor at aeppelbroe.de
Wed Jul 15 12:18:34 UTC 2015
Hi,
I still testing glusterfs for use for storing of images from virtual machines.
I start with 2 machines for stora and vm-host:
two machines:
gf001 and gf002
Both:
debian 8
glusterfs 3.7
/dev/sda - root
/dev/sdb - /export/vbstore
My volume info:
root at gf001 :~# gluster volume info vbstore
Volume Name: vbstore
Type: Replicate
Volume ID: 7bf8aa42-8fd9-4535-888d-dacea4f14a83
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: gf001.mvz.ffm:/export/vbstore
Brick2: gf002.mvz.ffm:/export/vbstore
mounting on gf001:
mount -t glusterfs gf001:/vbstore /import/vbstore
or via fstab:
gf001:/vbstore /import/vbstore glusterfs defaults 0 0
The same on gf002 with gf002 as server.
Creating an virtualbox VM in /import/vbstore.
Starting VM on gf001 OR gf002 work right.
After I learned, that if I restart an server, the filesystem go
readonly I add an additional brick:
gluster volume add-brick vbstore replica 3 edgf006:/export/vbstore
and set following Options:
cluster.quorum-count: 1
cluster.server-quorum-type: server
cluster.quorum-type: none
network.remote-dio: enable
cluster.eager-lock: enable
performance.stat-prefetch: off
performance.io-cache: off
performance.read-ahead: off
performance.quick-read: off
performance.readdir-ahead: on
cluster.server-quorum-ratio: 51
When I restart gf004 or gf005 the virtualmachine got an error and made
filesystem readonly.
A glusterfs volume heal vbstore info give this:
Brick edgf004:/export/vbstore/
Number of entries: 0
Brick edgf005:/export/vbstore/
/gftest/gftest.vdi - Possibly undergoing heal
Number of entries: 1
Brick edgf006:/export/vbstore/
/gftest/gftest.vdi - Possibly undergoing heal
Number of entries: 1
My questions:
1. Which Options should I took for storing virtual images.
2. How to reset all options, I think I've played a little bit to much.
Bye
Gregor
More information about the Gluster-users
mailing list