Skip to content

Instantly share code, notes, and snippets.

@HugoKuo
Created May 16, 2019 04:55
Show Gist options
  • Save HugoKuo/29299f2b6834414fed091a1696822314 to your computer and use it in GitHub Desktop.
Save HugoKuo/29299f2b6834414fed091a1696822314 to your computer and use it in GitHub Desktop.
device api response
[root@d-node1 lib]# fdisk -l | grep sdd -A 6
Disk /dev/sdd: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
[root@d-node1 lib]# df -h | grep srv
/dev/sdb                 3.0G   33M  3.0G   2% /srv/node/d0
/dev/sdc                 3.0G   35M  3.0G   2% /srv/node/d1
[root@d-node1 lib]# blkid
/dev/sda1: UUID="a5c28de1-c021-4ad4-912b-fefc989b8705" TYPE="xfs"
/dev/sda2: UUID="M5lc7O-CE3h-PHQ5-rkFh-lXlx-2Hwn-T11iuw" TYPE="LVM2_member"
/dev/sdb: LABEL="d0" UUID="304fe302-e19d-4dfb-83ef-17196515c084" TYPE="xfs"
/dev/sdc: LABEL="d1" UUID="0482dae3-3a19-4038-8202-c8cff16b2c08" TYPE="xfs"
/dev/mapper/centos-root: UUID="a77c8942-17e7-4697-8ed1-e27e48aebe9b" TYPE="xfs"
/dev/mapper/centos-swap: UUID="e7168850-242e-4a53-80e7-0463d8587df9" TYPE="swap"
        {
            "blinking": null,
            "cluster": "/api/v1/clusters/3572/",
            "desired_mount_point": "",
            "failed": false,
            "gb": 3.221225472,
            "id": 1960950,
            "kernel_dev": "sdd",
            "label": "",
            "missing": false,
            "mounted": true,
            "node": "/api/v1/nodes/7909/",
            "node_hostname": "d-node1",
            "resource_uri": "/api/v1/devices/1960950/",
            "rotational": true,
            "serial": "VBb3cdb467-b680c459",
            "uuid": ""
        }
@HugoKuo
Copy link
Author

HugoKuo commented May 16, 2019

Screen Shot 2019-05-16 at 12 50 17 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment