The snapshot with the highest number at the end is the latest. -Ivan
On Mon, Jul 6, 2015 at 11:59 PM Dillian Murphey <[email protected]> wrote: > Thanks for the comment, Ivan. > > Which files are the "current" log files and which snapshot is the latest? > > -rw-r--r-- 1 root root 296 Feb 2 19:09 snapshot.0 > -rw-r--r-- 1 root root 67108880 Jul 6 17:37 log.1 > -rw-r--r-- 1 root root 320 Jul 6 17:42 snapshot.200000000 > -rw-r--r-- 1 root root 320 Jul 6 17:42 snapshot.400000000 > -rw-r--r-- 1 root root 67108880 Jul 6 17:42 log.400000001 > -rw-r--r-- 1 root root 1 Jul 6 17:42 acceptedEpoch > -rw-r--r-- 1 root root 332 Jul 6 17:42 snapshot.400000001 > -rw-r--r-- 1 root root 1 Jul 6 17:42 currentEpoch > -rw-r--r-- 1 root root 67108880 Jul 6 21:56 log.500000001 > > > > On Mon, Jul 6, 2015 at 12:02 PM, Ivan Kelly <[email protected]> wrote: > > > First, backup all your data. Then it should be a matter of copying the > > snapshot you want to restore to all the nodes, and putting just that in > the > > datadir. Also move all other snapshots and logs out of the way. That > should > > be it. (I haven't tried this though). > > > > -Ivan > > > > On Mon, Jul 6, 2015 at 8:24 PM Dillian Murphey <[email protected]> > > wrote: > > > > > This has probably been asked a hundred times but all my google > searching > > > shows nothing. Is there a reason for that? > > > > > > What is the procedure to restore a zookeeper node from it's snapshots? > > > > > >
