I am trying to set up a cluster so that I can duplicate data stored on my IPFS nodes in case one fails.
I have set up a basic cluster that currently only has 2 nodes. I built the cluster on top of an existing IPFS node that has quite a few pins (3000+, ~5GB of data). I initialized the cluster, ensured that the nodes were able to communicate, and then proceeded to call
ipfs-cluster-ctl pin add <CID> for every CID in
ipfs pin ls --type=recursive on
This part seems to have worked. Both
Node 1 and
Node 2 show that they have pinned everything, however when I go directly to my 2nd ipfs node it says the pin does not exist, and the data doesn’t seem to have been transferred as I am only using ~3GB of storage on my 2nd server.
$ ipfs-cluster-ctl pin ls QmegbCAbDCU4eCYYxAzaVZ1qH9KouYEYzHokC7s7TexMJD QmegbCAbDCU4eCYYxAzaVZ1qH9KouYEYzHokC7s7TexMJD | | PIN | Repl. Factor: -1 | Allocations: [everywhere] | Recursive $ ipfs pin ls QmegbCAbDCU4eCYYxAzaVZ1qH9KouYEYzHokC7s7TexMJD Error: path 'QmegbCAbDCU4eCYYxAzaVZ1qH9KouYEYzHokC7s7TexMJD' is not pinned
What am I missing?