Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-2120

[QE] Change log.dirs mount point - Rolling scenario

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • kafka-broker
    • None

      Requirement:
      change mount point in log.dirs property and perform a rolling restart of the kafka cluster

      Description:

      imagine you need to substitute the mount point in log.dirs with a new one. The new mount point will contain the copied data from the old one, e.g

      #old
      log.dirs=/tmp/kakfa-logs-0

      #new
      log.dirs=/data/kakfa-logs-0

      Steps:

      1. create an AMQ Streams cluster (minimum 3 brokers)
      2. create a topic with rf = 3 and partition = 3 (or more)
      3. send tons of messages with kafka producer to the new topic
      4. verify ISR and RF with kafka-topics --describe
      5. stop one of the brokers
      6. copy the data (cp command or similar) from the old mount point to the new mount point
      7. modify log.dirs property in server.properties for the stopped broker with the new mount point
      8. change the permission to the old mount point: chmod ugo-rwx
      9. restart the stopped broker
      10. send again tons of messages with kafka producer to the new topic
      11. verify ISR and RF with kafka-topics --describe
      12. verify errors on kafka logs

      REPEAT the steps for the remaining brokers

              mtoth@redhat.com Michal Toth
              gmarigi@redhat.com Giovanni Marigi (Inactive)
              Michal Toth Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: