Skip to content

Instantly share code, notes, and snippets.

@tonyhutter
Created May 28, 2024 22:54
Show Gist options
  • Save tonyhutter/12e00cfe8db3c552f3cde2e402042fba to your computer and use it in GitHub Desktop.
Save tonyhutter/12e00cfe8db3c552f3cde2e402042fba to your computer and use it in GitHub Desktop.
zpool-status.json
{
"pools": [
{
"pool_name": "pool1",
"vdevs": [
{
"name": "file1",
"pool": "pool1",
"disk_type": "file",
"group_type": "raidz",
"vdev_type": "data",
"parent": "raidz-0",
"read_errors": 5
},
{
"name": "file2",
"pool": "pool1",
"disk_type": "file",
"group_type": "raidz",
"vdev_type": "data",
"parent": "raidz-0",
"read_errors": 0
},
{
"name": "file3",
"pool": "pool1",
"disk_type": "file",
"group_type": "raidz",
"vdev_type": "data",
"parent": "raidz-0",
"read_errors": 0
},
{
"name": "file6",
"pool": "pool1",
"disk_type": "file",
"group_type": "",
"vdev_type": "dedup",
"parent": "pool1",
"read_errors": 0
},
{
"name": "file4",
"pool": "pool1",
"disk_type": "file",
"group_type": "mirror",
"vdev_type": "special",
"parent": "mirror-1",
"read_errors": 0
},
{
"name": "file5",
"pool": "pool1",
"disk_type": "file",
"group_type": "mirror",
"vdev_type": "special",
"parent": "pool1",
"read_errors": 0
},
{
"name": "file7",
"pool": "pool1",
"disk_type": "file",
"group_type": "",
"vdev_type": "logs",
"parent": "pool1",
"read_errors": 0
},
{
"name": "file8",
"pool": "pool1",
"disk_type": "file",
"group_type": "",
"vdev_type": "cache",
"parent": "pool1",
"read_errors": 0
},
{
"name": "file9",
"pool": "pool1",
"disk_type": "file",
"group_type": "",
"vdev_type": "spares",
"parent": "pool1",
"read_errors": 0
}
]
},
{
"pool_name": "pool2",
"vdevs": [
{
"name": "file10",
"pool": "pool2",
"disk_type": "file",
"group_type": "mirror",
"vdev_type": "data",
"parent": "mirror-0",
"read_errors": 0
},
{
"name": "file11",
"pool": "pool2",
"disk_type": "file",
"group_type": "mirror",
"vdev_type": "data",
"parent": "mirror-0",
"read_errors": 0
},
{
"name": "file12",
"pool": "pool2",
"disk_type": "file",
"group_type": "mirror",
"vdev_type": "data",
"parent": "mirror-0",
"read_errors": 0
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment