This message was deleted.
# harvester
a
This message was deleted.
b
You can't. Only replicas (=copies) are possible on different nodes.
o
Uhh.. Then what things can I do with a cluster with multiple nodes?
b
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
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
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
yes, number of replicas is 3. If i have only 2 nodes, it should be 2?
b
Yes, 2 or even one if you don't care about redundancy.
o
okay
and also, when creating a storage class I should select the 2 nodes and the 2 disks, right?
b
If your cluster has only 2 nodes, choosing 2 for the replicas should be enough.
o
okay
This would work? test1: node1 test2: node2 disk1: disk from node1 disk2: disk from node2
b
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
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
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
They should do a tutorial of how to do all of this
g
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
Yeah