Skip to content

Commit c47f5b4

Browse files
authored
Merge pull request ceph#66624 from leonidc/stretched-cluster
Stretched cluster Reviewed-by: Samuel Just <sjust@redhat.com> Reviewed-by: baum <alexander.indenbaum@gmail.com>
2 parents ef86dd5 + c319e6a commit c47f5b4

File tree

6 files changed

+777
-87
lines changed

6 files changed

+777
-87
lines changed

src/mon/MonCommands.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,43 @@ COMMAND("nvme-gw listeners"
14591459
" show all nvmeof gateways listeners within (pool, group)",
14601460
"mon", "r")
14611461

1462+
COMMAND("nvme-gw enable"
1463+
" name=id,type=CephString"
1464+
" name=pool,type=CephString"
1465+
" name=group,type=CephString",
1466+
"administratively enables nvmeof gateway id for (pool, group)",
1467+
"mgr", "rw")
1468+
1469+
COMMAND("nvme-gw disable"
1470+
" name=id,type=CephString"
1471+
" name=pool,type=CephString"
1472+
" name=group,type=CephString",
1473+
"administratively disables nvmeof gateway id for (pool, group)",
1474+
"mgr", "rw")
1475+
1476+
COMMAND("nvme-gw set-location"
1477+
" name=id,type=CephString"
1478+
" name=pool,type=CephString"
1479+
" name=group,type=CephString"
1480+
" name=location,type=CephString",
1481+
"set location for nvmeof gateway id for (pool, group)",
1482+
"mgr", "rw")
1483+
1484+
COMMAND("nvme-gw disaster-set"
1485+
" name=pool,type=CephString"
1486+
" name=group,type=CephString"
1487+
" name=location,type=CephString",
1488+
" set location to Disaster state",
1489+
"mgr", "rw")
1490+
1491+
COMMAND("nvme-gw disaster-clear"
1492+
" name=pool,type=CephString"
1493+
" name=group,type=CephString"
1494+
" name=location,type=CephString",
1495+
" set location to clear Disaster state - failbacks allowed for recovered location",
1496+
"mgr", "rw")
1497+
1498+
14621499
// these are tell commands that were implemented as CLI commands in
14631500
// the broken pre-octopus way that we want to allow to work when a
14641501
// monitor has upgraded to octopus+ but the monmap min_mon_release is

0 commit comments

Comments
 (0)