Advertisement
Guest User

svcmgr_print_status

a guest
Nov 5th, 2018
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.96 KB | None | 0 0
  1. [root@node-1-1 ~]# svcmgr -s servdrbd print status --format json
  2. {
  3.     "app": "default",
  4.     "avail": "up",
  5.     "cluster": {
  6.         "avail": "up",
  7.         "compat": true,
  8.         "overall": "warn",
  9.         "placement": "optimal"
  10.     },
  11.     "csum": "aa1b170bb9490f46f30223bf69dc9bf1",
  12.     "env": "TST",
  13.     "monitor": {
  14.         "global_expect": null,
  15.         "global_expect_updated": 1541433079.624664,
  16.         "local_expect": "started",
  17.         "placement": "leader",
  18.         "status": "idle",
  19.         "status_updated": 1541433079.605888
  20.     },
  21.     "mtime": 1541435407.92148,
  22.     "optional": "n/a",
  23.     "orchestrate": "ha",
  24.     "overall": "warn",
  25.     "placement": "nodes order",
  26.     "provisioned": true,
  27.     "resources": {
  28.         "app#1": {
  29.             "disable": true,
  30.             "label": "forking: redis_init_script",
  31.             "status": "n/a",
  32.             "type": "app.forking"
  33.         },
  34.         "disk#0": {
  35.             "label": "loop /root/loopback.file",
  36.             "provisioned": {
  37.                 "mtime": 1535017367.6809719,
  38.                 "state": true
  39.             },
  40.             "standby": true,
  41.             "status": "stdby up",
  42.             "type": "disk.loop"
  43.         },
  44.         "disk#1": {
  45.             "label": "vg drdbvg",
  46.             "provisioned": {
  47.                 "mtime": 1535017367.755972,
  48.                 "state": true
  49.             },
  50.             "standby": true,
  51.             "status": "stdby up",
  52.             "type": "disk.vg"
  53.         },
  54.         "disk#2": {
  55.             "label": "drbd servdrbd",
  56.             "log": [
  57.                 "info: Primary",
  58.                 "warn: unexpected drbd resource servdrbd state: UpToDate/DUnknown"
  59.             ],
  60.             "standby": true,
  61.             "status": "stdby up",
  62.             "type": "disk.drbd"
  63.         },
  64.         "fs#0": {
  65.             "label": "ext4 /dev/drbd11@/srv/servdrbd",
  66.             "monitor": true,
  67.             "provisioned": {
  68.                 "mtime": 1535017791.372143,
  69.                 "state": true
  70.             },
  71.             "status": "up",
  72.             "type": "fs"
  73.         },
  74.         "ip#vip": {
  75.             "info": {
  76.                 "ipaddr": "192.168.100.13",
  77.                 "ipdev": "br-prd"
  78.             },
  79.             "label": "192.168.100.13@br-prd",
  80.             "provisioned": {
  81.                 "mtime": 1541432997.9581158,
  82.                 "state": true
  83.             },
  84.             "status": "up",
  85.             "type": "ip"
  86.         },
  87.         "sync#i0": {
  88.             "label": "rsync svc config to nodes",
  89.             "optional": true,
  90.             "status": "up",
  91.             "type": "sync.rsync"
  92.         }
  93.     },
  94.     "running": [],
  95.     "status_group": {
  96.         "app": "n/a",
  97.         "container": "n/a",
  98.         "disk": "stdby up",
  99.         "fs": "up",
  100.         "ip": "up",
  101.         "share": "n/a",
  102.         "sync": "n/a",
  103.         "task": "n/a"
  104.     },
  105.     "topology": "failover",
  106.     "updated": "2018-11-05T16:30:07.921480Z"
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement