gaozhangmin commented on issue #3150:
URL: https://github.com/apache/bookkeeper/issues/3150#issuecomment-1091123808

   @RaulGracia  Add or remove ledger and journal directory is supported, I 
think we lack of the doc about this.
    I will open a new pr to add doc about how to update cookie.  The step is as 
below:
    1.  Get bookie server instanceid: bin/bookkeeper shell whatisinstanceid
    2. Generate cookie version file:  bin/bookkeeper shell cookie_generate -i 
${instanceid}  -j ${all journal directories} -l  ${all ledger directories}  -o 
VERSION  ${bookie server id}.
    3. Copy VERSION file to all journal and ledger directories.
    4. update cookie in ZOOKEEPER:  bin/bookkeeper shell cookie_update 
--cookie-file /data3/bookkeeper/ledgers/current/VERSION


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to