Hi, After a few hiccups, I managed to restore the cluster state from the snapshot. Please confirm if they look correct. If so documentation page needs to be updated
1. Create N nodes 2. Add some data to them 3. Create snapshot 4. Stop all nodes(cluster) 5. Delete binary_data, marsheller and sub directories of /work/db 6. Copy snapshots/snapshotname/db/binary_data to /work/db/, 7. Copy snapshots/snapshotname/db/marshaller to /work/db/ 8. Copy snapshots/snapshotname/db/{nodeid} dir to /work/db/ 9. Start cluster 10. Cluster should auto activate after all nodes join it 11. Cluster is ready On Mon, Jan 31, 2022 at 7:14 PM Surinder Mehra <redni...@gmail.com> wrote: > Hi, > We are using ignite 2.11.1 to experiment with ignite snapshots. We tried > steps mentioned on below page to restore ignite data from snapshot > https://ignite.apache.org/docs/latest/snapshots/snapshots > > But we get the below error when we start a cluster after copying data > manually as mentioned on the page. > > Steps: > 1.Created 3 nodes and added 3 records > > 2.Created snapshot. > 3. Stopped the cluster and removed files from binary_data and marshellar, > not the directories. they are present but empty > 4. removed nodeId directories and files under them from /work/db/ > > 5. Copied node id directories from snapshot directory to /work/db/. I > guess the below step meant to say $IGNITE_HOME/work/*db/ *right *?* > > - > > Copy the files belonging to a node with the {node_id} from the > snapshot into the $IGNITE_HOME/work/ directory. If the db/{node_id} > directory > is not located under the Ignite work dir then you need to copy data > files there. > > Error : do we need to copy binary_data and marshaler files as well or > something else missing ? > - > > Caused by: > *class org.apache.ignite.IgniteCheckedException: Cannot find metadata for > object with compact footer (Ignite work directory might have been cleared > after restart. Make sure that IGNITE_HOME does not point to a temp folder > or any other folder that is destroyed/cleared on restarts) > [typeId=-88020438, IGNITE_HOME='null'] * > Please note that ignite HOEM/work/db directory has all nodes data > copied from snapshot, it is not cleared as indicated by error above > > >