Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GlusterFS - Why is it not recommended to use the root partition?

Tags:

glusterfs

I am planning to set up a number of nodes to create a distributed-replicated volume using glusterfs

I created a gluster replicated volume on two nodes using a directory on the primary (and only) partition.

gluster volume create vol_dist-replica replica 2 transport tcp 10.99.0.3:/glusterfs/dist-replica 10.99.0.4:/glusterfs/dist-replica

This returned the following warning

volume create: vol_dist-replica: failed: The brick 10.99.0.3:/glusterfs/dist-replica is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.

So I used force on the end and the volume was created. I was then able to mount the gluster volume to a local directory.

My question is, why is it not recommended to use the root partition?

I can only think of the obvious reason that the system may never boot for xyz reason and therefore you'd lose the brick contents of one node.. But surely if you have enough nodes you should be able to recover from that?

like image 768
anastymous Avatar asked Dec 28 '17 02:12

anastymous


People also ask

What is the use of GlusterFS?

GlusterFS connects storage servers over TCP/IP or Infiniband Remote Direct Memory Access(RDMA), clustering disk and memory together. Data management is centralized under a global namespace so that data is accessible throughout multiple data storage locations.

Which filesystem type is used for GlusterFS bricks?

GlusterFS exports a fully POSIX-compliant filesystem, which basically means you can mount, read, and write to GlusterFS from Unix and Unix-like operating systems (such as Linux). GlusterFS is a user space filesystem , meaning it doesn't run in the Linux kernel but makes use of the FUSE module.


Video Answer


1 Answers

here is an example of why not to do it:

volume remove-brick commit force: failed: Volume X does not exist

No volumes present in cluster

volume create: X: failed: /export/gv01/brick or a prefix of it is already part of a volume

perfect loop I cannot escape.

like image 50
Deil Avatar answered Sep 23 '22 01:09

Deil