Users attempting to increase the redundancy level of a Tanzu GemFire partitioned region (e.g., from 1 to 2) using the "gfsh alter region" command find that the --redundant-copies option is not supported.
In production environments where dropping and recreating the region is not feasible due to data risk and uptime requirements, an online workaround is required.
Tanzu GemFire
10.1.x and earlier
In GemFire v10.1.3 and earlier versions, the redundant-copies attribute is immutable for an existing region. The gfsh alter region command is designed to modify runtime parameters that do not require a structural re-partitioning of existing buckets.
To increase redundancy without a maintenance window or data loss, use one of the following migration strategies:
gfsh> create region --name=NewRegion --type=PARTITION_REDUNDANT --redundant-copies=2gfsh> show metrics --region=/NewRegion to confirm redundancy status.--redundant-copies=2).wan-copy or a snapshot export/import to populate the Green cluster.After migration, ensure the cluster is balanced to avoid resource exhaustion:
gfsh> rebalance --include-redundant=true gfsh> restore redundancy to ensure all buckets have the required number of copies.