Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Upgrade existing MS to 4.2. This MS will become region 1
  • Disable all the zones in region 1
  • Dump region 1 DB
    • mysqldump -u cloud -p -h <region1_db_host> cloud  > region1.sql
  • Install 4.2 MS in the remaining Regions
    • Set the region_id while installing the DB
    • cloud-setup-databases cloud:<dbpassword>@localhost --deploy-as=root:<password> -e <encryption_type> -m <management_server_key> -k <database_key-r <region_id>
  • Copy region 1 DB to other regions
    • mysql -u cloud -p -h <region2_db_host> cloud < region1.sql
  • In each Region, delete all zones from the DB which are not supposed to be in that region using zone delete script. e.g if zone 2 is moved to region2, it has to be deleted from region1 using the script
    • $ ./zone_delete.sh -h
      Wiki Markup
      Usage: \[-d\] \[-u\] \[-p\]&nbsp;
       -d - cloud DB server ip address, defaulted to localhost if not specified 
       -u - user name to access cloud DB, defaulted to cloud if not specified 
       -p - cloud DB user password, defaulted to cloud if not specified 
       -z - zone id 
      Example: zone_delete.sh -dlocalhost -ucloud -pcloud -z1
      Wiki Markup
      <span style="color: #000000">$ ./zone_delete.sh &#45;h</span>
       Usage: \[-d\] \[-u\] \[-p\]&nbsp;
       &nbsp;
       &nbsp;-d - cloud DB server ip address, defaulted to localhost if not specified&nbsp;
       &nbsp;-u - user name to access cloud DB, defaulted to cloud if not specified&nbsp;
       &nbsp;-p - cloud DB user password, defaulted to cloud if not specified&nbsp;
       &nbsp;-z - zone id&nbsp;
       &nbsp;
       Example: zone_delete.sh \-dlocalhost \-ucloud \-pcloud \-z1
  • Start all management servers. At this point all regions contain only the desired zones
  • Enable zones in the required regions
  • Destroy CPVM and SSVM in each zone, so that they will be recreated

...