[Gluster-users] Bricks with different sizes.

Gilberto Ferreira gilberto.nunes32 at gmail.com
Thu Oct 17 18:37:49 UTC 2024


Hi there.
I am deploying a glusterfs 2-node server, just for fun!

So in each server, I have:
2x - 500G - Operational System
2x - 2TB
1x - 1TB
I formatted the 2x 2TB and the 1x 1TB with XFS and mounted it in this order:

/dev/sdc -> /disk1 -----> 2TB
/dev/sdd -> /disk2 -----> 2TB
/dev/sde -> /disk3 -----> 1TB

And the create a gluster vol with this command:
gluster vol create VMS replica 2 gluster1:/disco1/vms1
gluster1:/disco2/vms2 gluster1:/disco3/vms3 gluster2:/disco1/vms1
gluster2:/disco2/vms2 gluster2:/disco3/vms3 force
And mounted into /vms
like this:
gluster1:VMS /vms glusterfs
defaults,_netdev,x-systemd.automount,backupvolfile-server=gluster2 0 0

Later on, I add more 3 HDD, like:
mkfs.xfs /dev/sdf
mkfs.xfs /dev/sdg
mkfs.xfs /dev/sdh
mount /dev/sdf /disk4
mount /dev/sdg /disk5
mount /dev/sdh /disk6

And than, I add the bricks:
gluster vol add-brick VMS replica 2 gluster1:/disco4/vms4
gluster1:/disco4/vms5 gluster1:/disco5/vms5 gluster2:/disco4/vms4
gluster2:/disco4/vms5 gluster2:/disco5/vms5 force
The /vms mounted grow up normally.
So my question: is there anything dangerous to do this way?

Any better alternative will be welcome.

Thanks




---

Gilberto Nunes Ferreira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20241017/b0739eb3/attachment.html>


More information about the Gluster-users mailing list