Skip to content

Latest commit

 

History

History
348 lines (338 loc) · 10.6 KB

volumes.adoc

File metadata and controls

348 lines (338 loc) · 10.6 KB

Gluster Volume

List Volumes

Sample Request

curl -XGET  -H "Authorization: Bearer
4b1b225d84104405b52a5646c997c22882aaeba094330c375cb7b0278e9d642a"
http://127.0.0.1/api/1.0/clusters/5291c055-70d3-4450-9769-2f6fd4932afb/volumes

Sample Response

Status: 200 OK
{
  "volumes": [{
    "client_count": "0",
    "redundancy_count": "0",
    "snap_count": "0",
    "state": "up",
    "snapd_status": "Offline",
    "name": "vol1",
    "replica_count": "1",
    "rebalancedetails": {
      "66898e03-4db2-4898-b21e-6f034ba10077": {
        "rebal_skipped": "0",
        "rebal_failures": "0",
        "time_left": "",
        "rebal_data": "0Bytes",
        "rebal_lookedup": "0",
        "rebal_status": "not_started",
        "hash": "96c33e389a9a875d131fbbfcc031519c",
        "updated_at": "2017-09-11 14:07:57.129559+00:00",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
        "rebal_files": "0"
      },
      "2f8dcb72-43d8-4ee6-8a12-dfa93a8edbf3": {
        "rebal_files": "0",
        "rebal_skipped": "0",
        "rebal_failures": "0",
        "updated_at": "2017-09-11 14:08:05.348291+00:00",
        "rebal_data": "0Bytes",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
        "time_left": "",
        "rebal_lookedup": "0",
        "rebal_status": "not_started",
        "hash": "96c33e389a9a875d131fbbfcc031519c"
      },
      "35b27276-9058-4c09-b64b-9d239ed262cb": {
        "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
        "rebal_status": "not_started",
        "hash": "96c33e389a9a875d131fbbfcc031519c",
        "rebal_skipped": "0",
        "time_left": "",
        "updated_at": "2017-09-12 05:46:55.028369+00:00",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "rebal_lookedup": "0",
        "rebal_failures": "0",
        "rebal_data": "0Bytes",
        "rebal_files": "0"
      }
    },
    "rebal_estimated_time": "0",
    "used_capacity": "4379144192",
    "arbiter_count": "0",
    "updated_at": "2017-09-12 05:58:02.994041+00:00",
    "brick_count": "3",
    "usable_capacity": "40221278208",
    "deleted": "",
    "pcnt_used": "10.8876305953",
    "stripe_count": "1",
    "disperse_count": "0",
    "rebal_status": "not_started",
    "quorum_status": "not_applicable",
    "vol_type": "Distribute",
    "status": "Started",
    "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
    "snapd_inited": "True",
    "hash": "64ee6d999dfe2ec298b9883a3c7f904e",
    "profiling_enabled": "",
    "subvol_count": "3",
    "transport_type": "tcp"
  }, {
    "hash": "2334a3546a9d8b414c36d11e82856ca4",
    "rebal_estimated_time": "0",
    "client_count": "0",
    "status": "Created",
    "deleted": "",
    "subvol_count": "1",
    "replica_count": "1",
    "vol_type": "Distribute",
    "used_capacity": "1528754176",
    "disperse_count": "0",
    "pcnt_used": "11.4025777706",
    "name": "vol2",
    "updated_at": "2017-09-12 05:58:03.511590+00:00",
    "snap_count": "0",
    "quorum_status": "not_applicable",
    "vol_id": "11249c24-e09c-45ac-a1ad-1a36e289e9e1",
    "usable_capacity": "13407092736",
    "arbiter_count": "0",
    "state": "down",
    "snapd_status": "Offline",
    "transport_type": "tcp",
    "snapd_inited": "False",
    "brick_count": "1",
    "stripe_count": "1",
    "profiling_enabled": "",
    "redundancy_count": "0",
    "rebalancedetails": {
      "35b27276-9058-4c09-b64b-9d239ed262cb": {
        "updated_at": "2017-09-12 05:47:01.551187+00:00",
        "rebal_status": "not_started",
        "rebal_files": "0",
        "rebal_failures": "0",
        "time_left": "",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "rebal_lookedup": "0",
        "vol_id": "11249c24-e09c-45ac-a1ad-1a36e289e9e1",
        "hash": "c935c806aac9285c492ad8e762b3bd58",
        "rebal_skipped": "0",
        "rebal_data": "0Bytes"
      },
      "66898e03-4db2-4898-b21e-6f034ba10077": {
        "vol_id": "11249c24-e09c-45ac-a1ad-1a36e289e9e1",
        "hash": "c935c806aac9285c492ad8e762b3bd58",
        "rebal_skipped": "0",
        "rebal_failures": "0",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "rebal_lookedup": "0",
        "rebal_files": "0",
        "time_left": "",
        "updated_at": "2017-09-11 14:08:01.618013+00:00",
        "rebal_data": "0Bytes",
        "rebal_status": "not_started"
      },
      "2f8dcb72-43d8-4ee6-8a12-dfa93a8edbf3": {
        "rebal_skipped": "0",
        "rebal_failures": "0",
        "rebal_lookedup": "0",
        "rebal_status": "not_started",
        "hash": "c935c806aac9285c492ad8e762b3bd58",
        "time_left": "",
        "updated_at": "2017-09-11 14:08:09.995976+00:00",
        "rebal_data": "0Bytes",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "vol_id": "11249c24-e09c-45ac-a1ad-1a36e289e9e1",
        "rebal_files": "0"
      }
    },
    "rebal_status": "not_started"
  }, {
    "replica_count": "1",
    "snap_count": "0",
    "arbiter_count": "0",
    "snapd_status": "Offline",
    "snapd_inited": "False",
    "profiling_enabled": "",
    "vol_type": "Distribute",
    "quorum_status": "not_applicable",
    "state": "down",
    "used_capacity": "2714722304",
    "disperse_count": "0",
    "hash": "2445c7cb461194f15c77dfd0f6b59541",
    "rebalancedetails": {
      "35b27276-9058-4c09-b64b-9d239ed262cb": {
        "vol_id": "3ea3d010-c6ca-41f5-ab5e-9c244e244a4e",
        "rebal_status": "not_started",
        "hash": "782ac265a0f813976795262e6560d483",
        "rebal_files": "0",
        "rebal_failures": "0",
        "time_left": "",
        "rebal_data": "0Bytes",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "rebal_lookedup": "0",
        "rebal_skipped": "0",
        "updated_at": "2017-09-12 05:47:14.171856+00:00"
      },
      "66898e03-4db2-4898-b21e-6f034ba10077": {
        "rebal_files": "0",
        "rebal_data": "0Bytes",
        "rebal_lookedup": "0",
        "rebal_status": "not_started",
        "updated_at": "2017-09-11 14:08:26.234576+00:00",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "vol_id": "3ea3d010-c6ca-41f5-ab5e-9c244e244a4e",
        "hash": "782ac265a0f813976795262e6560d483",
        "rebal_skipped": "0",
        "rebal_failures": "0",
        "time_left": ""
      },
      "2f8dcb72-43d8-4ee6-8a12-dfa93a8edbf3": {
        "rebal_failures": "0",
        "vol_id": "3ea3d010-c6ca-41f5-ab5e-9c244e244a4e",
        "rebal_status": "not_started",
        "hash": "782ac265a0f813976795262e6560d483",
        "rebal_skipped": "0",
        "time_left": "",
        "updated_at": "2017-09-11 14:08:37.197984+00:00",
        "rebal_data": "0Bytes",
        "rebal_id": "00000000-0000-0000-0000-000000000000",
        "rebal_lookedup": "0",
        "rebal_files": "0"
      }
    },
    "rebal_estimated_time": "0",
    "stripe_count": "1",
    "subvol_count": "2",
    "pcnt_used": "10.1242020081",
    "name": "vol3",
    "transport_type": "tcp",
    "client_count": "0",
    "updated_at": "2017-09-12 05:58:02.307921+00:00",
    "usable_capacity": "26814185472",
    "redundancy_count": "0",
    "brick_count": "2",
    "deleted": "",
    "rebal_status": "not_started",
    "vol_id": "3ea3d010-c6ca-41f5-ab5e-9c244e244a4e",
    "status": "Created"
  }]
}

List Bricks per Volume

Sample Request

curl -XGET  -H "Authorization: Bearer
4b1b225d84104405b52a5646c997c22882aaeba094330c375cb7b0278e9d642a"
http://127.0.0.1/api/1.0/clusters/5291c055-70d3-4450-9769-2f6fd4932afb/volumes/2f99fd35-957b-4fe5-b13c-0255722a8c80/bricks

Sample Response

Status: 200 OK
{
  "bricks": [{
    "stripe_size": "",
    "hostname": "dhcp-2.lab.tendrl",
    "fqdn": "dhcp-2.lab.tendrl",
    "vg": "cl_dhcp-2",
    "node_id": "2f8dcb72-43d8-4ee6-8a12-dfa93a8edbf3",
    "utilization": {
      "metadata_used": null,
      "used_percent": 11.082067300172056,
      "thinpool_used_percent": null,
      "used": 1485783040,
      "free_inode": 6513157,
      "used_inode": 38395,
      "used_percent_inode": 0.5860443449124659,
      "free": 11921309696,
      "total_inode": 6551552,
      "mount_point": "/",
      "metadata_used_percent": null,
      "metadata_free": null,
      "thinpool_used": null,
      "total": 13407092736,
      "thinpool_size": null,
      "thinpool_free": null,
      "metadata_size": null
    },
    "lv": "cl_dhcp42-78-root",
    "brick_path": "dhcp-2.lab.tendrl:/root/gluster_bricks/vol1_b3",
    "hash": "59b5b8eceab854c5a2631f6f93f4b60c",
    "sequence_number": "3",
    "updated_at": "2017-09-12 05:16:01.260552+00:00",
    "is_arbiter": "",
    "status": "Started",
    "used": "True",
    "name": "dhcp-2.lab.tendrl:_root_gluster_bricks_vol1_b3",
    "devices": [],
    "pv": [],
    "disk_count": "",
    "mount_path": "/",
    "filesystem_type": "",
    "client_count": "",
    "size": "13417578496",
    "mount_opts": "",
    "vol_name": "vol1",
    "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
    "port": "49152",
    "disk_type": "",
    "brick_dir": "root_gluster_bricks_vol1_b3",
    "pool": "",
    "brick_id": "root_gluster_bricks_vol1_b3",
    "subvolume": "subvolume0"
  }, {
    "size": "13417578496",
    "mount_opts": "",
    "updated_at": "2017-09-12 05:16:05.954257+00:00",
    "disk_type": "",
    "disk_count": "",
    "hostname": "dhcp-1.lab.tendrl",
    "vol_id": "2f99fd35-957b-4fe5-b13c-0255722a8c80",
    "port": "49152",
    "is_arbiter": "",
    "client_count": "",
    "used": "True",
    "hash": "407555d2356a6e3fab78997110825919",
    "pool": "",
    "brick_dir": "root_gluster_bricks_vol1_b2",
    "vg": "cl_dhcp-1",
    "stripe_size": "",
    "pv": [],
    "node_id": "66898e03-4db2-4898-b21e-6f034ba10077",
    "vol_name": "vol1",
    "brick_path": "dhcp-1.lab.tendrl:/root/gluster_bricks/vol1_b2",
    "devices": [],
    "sequence_number": "2",
    "filesystem_type": "",
    "utilization": {
      "metadata_used": null,
      "used_percent": 11.217499853355235,
      "thinpool_used_percent": null,
      "used": 1503940608,
      "free_inode": 6513149,
      "used_inode": 38403,
      "used_percent_inode": 0.5861664533838677,
      "free": 11903152128,
      "total_inode": 6551552,
      "mount_point": "/",
      "metadata_used_percent": null,
      "metadata_free": null,
      "thinpool_used": null,
      "total": 13407092736,
      "thinpool_size": null,
      "thinpool_free": null,
      "metadata_size": null
    },
    "lv": "cl_dhcp43-148-root",
    "status": "Started",
    "name": "dhcp-1.lab.tendrl:_root_gluster_bricks_vol1_b2",
    "mount_path": "/",
    "fqdn": "dhcp-1.lab.tendrl",
    "brick_id": "root_gluster_bricks_vol1_b2"
    "subvolume": "subvolume1"
  }]
}