PMEMPOOL-CHECK(1)
π pmempool-check β check and repair persistent memory pool β¨
okay so this is straight out of the PMDK Programmer's Manual, and it's literally the vibe check for your persistent memory pool files π«Ά
πΈ NAME πΈ
pmempool-check β check and repair persistent memory pool. yes bestie, it does exactly what it says on the tin π
β¨ SYNOPSIS β¨
$ pmempool check [<options>] <file>
π¨ NOTE π¨
NOTICE: Thelibpmemblkandlibpmemloglibraries are deprecated since PMDK1.13.0release. π so if you're still using them... iykyk, but like, maybe don't start anything new with them fr fr.
π DESCRIPTION π
So when pmempool gets called with the check command, it checks the consistency of a given pool file. that's the whole bit π
If the pool file is consistent, pmempool exits with 0 value. slay. β¨ If the pool file is not consistent, a non-zero error code is returned. π
In case of any errors, the proper message is printed. ngl that's pretty helpful of it. The verbosity level may be increased using the -v option, and the output messages may also be suppressed using the -q option. pick your fighter π¦
It is possible to try to fix encountered problems using the -r option. and because we're responsible main characters, in order to be sure this will not corrupt your data you can either create a backup of the pool file using the -b option, or just print what would be fixed without modifying the original pool using the -N option. protect your data, periodt π
NOTE: Currently, checking the consistency of a pmemobj pool is not supported. π yeah. that one's not invited to the party yet.
π Available options: π
-r,--repairβ Try to repair a pool file if possible. the "let me fix her" option π-y,--yesβ Answer yes on all questions. no more popping up to ask, you already said yes π-d,--dry-runβ Don't execute, just show what would be done. Not supported on Device DAX. lowkey the safest way to peek π-N,--no-execβ Deprecated alias fordry-run. it's giving legacy era, still works tho π«Ά-b,--backup <file>β Create backup of a pool file before executing. Terminate if it is not possible to create a backup file. This option requires the-roption. no backup, no entry, rules are rules β¨-a,--advancedβ Perform advanced repairs. This option enables more aggressive steps in attempts to repair a pool. This option requires-r,--repair. ok go off, more aggressive steps π₯-q,--quietβ Be quiet and don't print any messages. π€« silent mode activated-v,--verboseβ Be more verbose. tell me EVERYTHING bestie π£οΈ-h,--helpβ Display help message and exit. our classic exit strategy πͺ
π EXAMPLE π
$ pmempool check pool.bin
Check consistency of "pool.bin" pool file β that's it, that's the whole cute lil command π¦
$ pmempool check --repair --backup pool.bin.backup pool.bin
Check consistency of "pool.bin" pool file, create backup and repair if necessary. icon behaviour honestly π
$ pmempool check -rvN pool.bin
Check consistency of "pool.bin" pool file, print what would be repaired with increased verbosity level. the way this combo ate π
β¨
π SEE ALSO π
pmempool(1), libpmemblk(7), libpmemlog(7), libpmemobj(7), libpmempool(7) and <https://pmem.io> β go read the family, they're all iconic in their own way π«Ά
π that's the whole page! brought to you by the PMDK Programmer's Manual, PMDK, dated 2023-05-31 β stay consistent out there bestie, mwah π
π¦ where this page comes from
- debian trixie: pmdk-tools 1.13.1-1.1+b1 Β· BSD-3-Clause
- ubuntu noble: pmdk-tools 1.13.1-1.1ubuntu2 Β· BSD-3-Clause
- ubuntu questing: pmdk-tools 1.13.1-1.1ubuntu3
- ubuntu resolute: pmdk-tools 1.13.1-1.1ubuntu4 Β· BSD-3-Clause
- ubuntu stonking: pmdk-tools 1.13.1-1.1ubuntu5 Β· BSD-3-Clause
- π the page's license: BSD-3-Clause
- Copyright 2016-2023, Intel Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms