Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(migrate): support migrate service #375

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

caoxianfei1
Copy link
Contributor

@caoxianfei1 caoxianfei1 commented Dec 4, 2023

  1. start chunkserver
    Curveadm migrate topology.yaml
NOTICE: cluster 'bs' is about to migrate services:
  - Migrate services: chunkserver*1
  - Migrate host: from curve16 to curve21
Do you want to continue? [yes/no]: (default=no) yes
Backup Etcd Data: [OK]  
  + host=curve7   role=etcd  containerId=f5e2895d99cb [1/1] [OK]  
  + host=curve15  role=etcd  containerId=6a4df2b16392 [1/1] [OK]  
  + host=curve16  role=etcd  containerId=deee16d5fd10 [1/1] [OK]  

Create Physical Pool: [OK]  
  + host=curve7  role=mds  containerId=b206cb859b15 [1/1] [OK]  

Pull Image: [OK]  
  + host=curve21  image=quay.io/opencurve/curve/curvebs:v1.2.7-rc1_0ff8409 [1/1] [OK]  

Create Container: [OK]  
  + host=curve21  role=chunkserver [1/1] [OK]  

Sync Config: [OK]  
  + host=curve21  role=chunkserver  containerId=c99b311c54ec [1/1] [OK]  

Start Service: [OK]  
  + host=curve21  role=chunkserver  containerId=c99b311c54ec [1/1] [OK]  

Mark Chunkserver Pendding: [OK]  
  + host=curve7  role=mds  containerId=b206cb859b15 [1/1] [OK]  

Services successfully migrateed ^_^.
  1. clean the old container and update topology
    curveadm migrate topology.yaml --clean
Stop Service: [SKIP]  
  + host=curve16  role=chunkserver  containerId=- [1/1] [SKIP]  

Clean Service: [OK]  
  + host=curve16  role=chunkserver  containerId=-  clean=container [1/1] [OK]  

Create Physical Pool: [OK]  
  + host=curve7  role=mds  containerId=b206cb859b15 [1/1] [OK]  

Update Topology: [OK] 

Here maybe need to wait a few more seconds and clean again.

@caoxianfei1 caoxianfei1 marked this pull request as draft December 4, 2023 02:28
@caoxianfei1 caoxianfei1 marked this pull request as ready for review December 11, 2023 01:46
@caoxianfei1 caoxianfei1 changed the title Fix(migrate): chunkserver migrate Fix(migrate): chunkserver and metaserver migrate Dec 18, 2023
@caoxianfei1 caoxianfei1 force-pushed the fix/migrate branch 3 times, most recently from dd16f6a to ce2bd4a Compare December 20, 2023 07:57
@caoxianfei1 caoxianfei1 force-pushed the fix/migrate branch 3 times, most recently from 7317d1a to 812bc79 Compare December 27, 2023 08:00
@caoxianfei1 caoxianfei1 changed the title Fix(migrate): chunkserver and metaserver migrate Fix(migrate): support migrate service Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant