DMPD¶
thin_check, thin_dump, thin_repair, cache_check and related tools
for inspecting and repairing device-mapper persistent data (dm-thin metadata,
dm-cache metadata).
sts.dmpd
¶
Wrappers for Device Mapper Persistent Data (DMPD) CLI tools.
Covers cache_, thin_, and era_* utilities for inspecting and repairing device-mapper target metadata on block devices or dump files.
CacheCheck
¶
Bases: DmpdTool
Check cache metadata integrity.
Usage: cache_check [options] {device|file}
For available options, see: cache_check --help
Source code in sts_libs/src/sts/dmpd.py
73 74 75 76 77 78 79 80 81 | |
CacheDump
¶
Bases: DmpdTool
Dump cache metadata to stdout or file.
Usage: cache_dump [options] {device|file}
For available options, see: cache_dump --help
Source code in sts_libs/src/sts/dmpd.py
84 85 86 87 88 89 90 91 92 | |
CacheMetadataSize
¶
Bases: DmpdTool
Calculate cache metadata size requirements.
Usage: cache_metadata_size [options]
For available options, see: cache_metadata_size --help
Source code in sts_libs/src/sts/dmpd.py
117 118 119 120 121 122 123 124 125 | |
CacheRepair
¶
Bases: DmpdTool
Repair corrupted cache metadata.
Usage: cache_repair [options] --input {device|file} --output {device|file}
For available options, see: cache_repair --help
Source code in sts_libs/src/sts/dmpd.py
95 96 97 98 99 100 101 102 103 | |
CacheRestore
¶
Bases: DmpdTool
Restore cache metadata from backup.
Usage: cache_restore [options] --input
For available options, see: cache_restore --help
Source code in sts_libs/src/sts/dmpd.py
106 107 108 109 110 111 112 113 114 | |
DmpdTool
¶
Bases: ABC
Base class for DMPD command-line tools.
Source code in sts_libs/src/sts/dmpd.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
help()
classmethod
¶
Get help information for the tool.
Source code in sts_libs/src/sts/dmpd.py
59 60 61 62 | |
run(device_or_file=None, **options)
classmethod
¶
Run the DMPD tool with specified options.
Source code in sts_libs/src/sts/dmpd.py
53 54 55 56 57 | |
version()
classmethod
¶
Get version information for the tool.
Source code in sts_libs/src/sts/dmpd.py
64 65 66 67 | |
EraCheck
¶
Bases: DmpdTool
Check era metadata integrity.
Usage: era_check [options] {device|file}
For available options, see: era_check --help
Source code in sts_libs/src/sts/dmpd.py
222 223 224 225 226 227 228 229 230 | |
EraDump
¶
Bases: DmpdTool
Dump era metadata to stdout or file.
Usage: era_dump [options] {device|file}
For available options, see: era_dump --help
Source code in sts_libs/src/sts/dmpd.py
233 234 235 236 237 238 239 240 241 | |
EraRepair
¶
Bases: DmpdTool
Repair corrupted era metadata.
Usage: era_repair [options] --input {device|file} --output {device|file}
For available options, see: era_repair --help
Source code in sts_libs/src/sts/dmpd.py
244 245 246 247 248 249 250 251 252 | |
EraRestore
¶
Bases: DmpdTool
Restore era metadata from backup.
Usage: era_restore [options] --input
For available options, see: era_restore --help
Source code in sts_libs/src/sts/dmpd.py
255 256 257 258 259 260 261 262 263 | |
ThinCheck
¶
Bases: DmpdTool
Check thin provisioning metadata integrity.
Usage: thin_check [options] {device|file}
For available options, see: thin_check --help
Source code in sts_libs/src/sts/dmpd.py
131 132 133 134 135 136 137 138 139 | |
ThinDelta
¶
Bases: DmpdTool
Print differences between thin devices.
Usage: thin_delta [options]
For available options, see: thin_delta --help
Source code in sts_libs/src/sts/dmpd.py
208 209 210 211 212 213 214 215 216 | |
ThinDump
¶
Bases: DmpdTool
Dump thin metadata to stdout or file.
Usage: thin_dump [options] {device|file}
For available options, see: thin_dump --help
Source code in sts_libs/src/sts/dmpd.py
142 143 144 145 146 147 148 149 150 | |
ThinLs
¶
Bases: DmpdTool
List thin devices.
Usage: thin_ls [options] {device|file}
For available options, see: thin_ls --help
Source code in sts_libs/src/sts/dmpd.py
197 198 199 200 201 202 203 204 205 | |
ThinMetadataSize
¶
Bases: DmpdTool
Calculate thin metadata size requirements.
Usage: thin_metadata_size [options]
For available options, see: thin_metadata_size --help
Source code in sts_libs/src/sts/dmpd.py
175 176 177 178 179 180 181 182 183 | |
ThinRepair
¶
Bases: DmpdTool
Repair corrupted thin metadata.
Usage: thin_repair [options] --input {device|file} --output {device|file}
For available options, see: thin_repair --help
Source code in sts_libs/src/sts/dmpd.py
153 154 155 156 157 158 159 160 161 | |
ThinRestore
¶
Bases: DmpdTool
Restore thin metadata from backup.
Usage: thin_restore [options] --input
For available options, see: thin_restore --help
Source code in sts_libs/src/sts/dmpd.py
164 165 166 167 168 169 170 171 172 | |
ThinTrim
¶
Bases: DmpdTool
Trim thin metadata.
Usage: thin_trim [options] --data-dev {device} --metadata-dev {device}
For available options, see: thin_trim --help
Source code in sts_libs/src/sts/dmpd.py
186 187 188 189 190 191 192 193 194 | |
cache_check(device_or_file, **options)
¶
Check cache metadata integrity.
Source code in sts_libs/src/sts/dmpd.py
269 270 271 | |
cache_dump(device_or_file, **options)
¶
Dump cache metadata.
Source code in sts_libs/src/sts/dmpd.py
274 275 276 | |
cache_metadata_size(**options)
¶
Calculate cache metadata size.
Source code in sts_libs/src/sts/dmpd.py
289 290 291 | |
cache_repair(**options)
¶
Repair cache metadata.
Source code in sts_libs/src/sts/dmpd.py
279 280 281 | |
cache_restore(**options)
¶
Restore cache metadata.
Source code in sts_libs/src/sts/dmpd.py
284 285 286 | |
era_check(device_or_file, **options)
¶
Check era metadata integrity.
Source code in sts_libs/src/sts/dmpd.py
334 335 336 | |
era_dump(device_or_file, **options)
¶
Dump era metadata.
Source code in sts_libs/src/sts/dmpd.py
339 340 341 | |
era_repair(**options)
¶
Repair era metadata.
Source code in sts_libs/src/sts/dmpd.py
344 345 346 | |
era_restore(**options)
¶
Restore era metadata.
Source code in sts_libs/src/sts/dmpd.py
349 350 351 | |
get_help(tool_name)
¶
Get help for any DMPD tool.
Source code in sts_libs/src/sts/dmpd.py
354 355 356 | |
get_version(tool_name)
¶
Get version for any DMPD tool.
Source code in sts_libs/src/sts/dmpd.py
359 360 361 | |
thin_check(device_or_file, **options)
¶
Check thin metadata integrity.
Source code in sts_libs/src/sts/dmpd.py
294 295 296 | |
thin_delta(device_or_file, **options)
¶
Print differences between thin devices.
Source code in sts_libs/src/sts/dmpd.py
329 330 331 | |
thin_dump(device_or_file, **options)
¶
Dump thin metadata.
Source code in sts_libs/src/sts/dmpd.py
299 300 301 | |
thin_ls(device_or_file, **options)
¶
List thin devices.
Source code in sts_libs/src/sts/dmpd.py
324 325 326 | |
thin_metadata_size(**options)
¶
Calculate thin metadata size.
Source code in sts_libs/src/sts/dmpd.py
314 315 316 | |
thin_repair(**options)
¶
Repair thin metadata.
Source code in sts_libs/src/sts/dmpd.py
304 305 306 | |
thin_restore(**options)
¶
Restore thin metadata.
Source code in sts_libs/src/sts/dmpd.py
309 310 311 | |
thin_trim(**options)
¶
Trim thin metadata.
Source code in sts_libs/src/sts/dmpd.py
319 320 321 | |