https://rancher.com/ logo
Title
o

orange-lion-57504

05/20/2023, 10:25 AM
How can I do a volume with 2 separate servers? like I have 2 servers with 300gb, how do I cluster the storage to make 1 volume?
b

bumpy-portugal-40754

05/20/2023, 9:29 PM
You can't. Only replicas (=copies) are possible on different nodes.
o

orange-lion-57504

05/20/2023, 9:48 PM
Uhh.. Then what things can I do with a cluster with multiple nodes?
b

bumpy-portugal-40754

05/20/2023, 10:19 PM
Harvester is a VM solution and Longhorn its (redundant) storage layer. It's intended to create highly available and redundant volumes which continue to work when one server is down for any reason. This is why the default number of replicas is 3. Compare this with raid level 0 and 1. Longhorn does raid 1 (with 3 copies). If you want to have raid 0, you need to look for something different.
o

orange-lion-57504

05/20/2023, 10:20 PM
Okay so clustering it's just for if one machine fails, another can do the job?
And another question, why when I create a volume with node1 and node2 selected it says ''replica shchedule failed''?
b

bumpy-portugal-40754

05/20/2023, 10:26 PM
In Harvester, yes. Maybe there is some way to achieve what you want with some Longhorn trick. You should ask in the Longhorn channel! For the other question: You kept the default replica number of 3? Then the volume will never become available... no node to place the 3rd replica.
o

orange-lion-57504

05/20/2023, 10:27 PM
yes, number of replicas is 3. If i have only 2 nodes, it should be 2?
b

bumpy-portugal-40754

05/20/2023, 10:30 PM
Yes, 2 or even one if you don't care about redundancy.
o

orange-lion-57504

05/20/2023, 10:31 PM
okay
and also, when creating a storage class I should select the 2 nodes and the 2 disks, right?
b

bumpy-portugal-40754

05/20/2023, 10:35 PM
If your cluster has only 2 nodes, choosing 2 for the replicas should be enough.
o

orange-lion-57504

05/20/2023, 10:37 PM
okay
This would work? test1: node1 test2: node2 disk1: disk from node1 disk2: disk from node2
b

bumpy-portugal-40754

05/20/2023, 10:50 PM
Try it out. I can't, I don't have 2-node-clusters. Did you try to keep the defaults and just change the number of replicas?
o

orange-lion-57504

05/20/2023, 10:51 PM
yes
It doesn't work : (
still says replica schedule failed
I removed the tags (disk1,disk2,test2,test1) from storage class and now works. It is doing the replica, right?
b

bumpy-portugal-40754

05/21/2023, 12:00 AM
I don't know what you're doing. And since you don't post lots of information, the only way is guessing. When you set the storageclass correctly, that's the first step. Next is to create a VM which then allocates a volume from Longhorn automatically.
o

orange-lion-57504

05/21/2023, 8:59 AM
They should do a tutorial of how to do all of this
g

great-bear-19718

05/22/2023, 12:01 AM
its hard for me to keep up with all that has been done
a support bundle would be nice for us to figure out why the replica scheduling is failing
o

orange-lion-57504

05/22/2023, 5:26 AM
Yeah