PMEMPOOL-TRANSFORM(1)
π NAME π
okay so bestie, this is PMEMPOOL-TRANSFORM(1) from the PMDK Programmer's Manual β and pmempool-transform is literally here to do the internal-structure glow-up on a pool set. π
β¨
πΈ SYNOPSIS πΈ
pmempool transform [options] <poolset_file_src> <poolset_file_dst>
β οΈ NOTE β οΈ
π¨ NOTICE bestie:libpmemblkandlibpmemlogare deprecated since thePMDK 1.13.0release. They're still in the docs, but don't build your whole personality on them, okay? ππ
π¦ DESCRIPTION π¦
The pmempool transform command modifies the internal structure of a pool set defined by the poolset_file_src file, according to a structure described in the poolset_file_dst file. It's giving source pool set in, target pool set out, and the insides get rearranged to match. π
The following operations are supported:
- adding replicas β one or more new replicas can be added and synchronized with the other replicas in the pool set. β¨
- removing replicas β one or more replicas can be removed from the pool set. π«Ά
- adding or removing pool set options β yup, pool set options can come or go. π
Only one of the above operations can be performed at a time. fr fr, don't try to stack them. π ββοΈ
Currently adding and removing replicas are allowed only for pmemobj pools (see libpmemobj(7)). π
The poolset_file_src argument provides the source pool set to be changed. π
The poolset_file_dst argument points to the target pool set. π―
π οΈ Available options π οΈ
-d,--dry-runβ enable dry run mode. In this mode no changes are applied, only a check for viability of the operation is performed. it's basically a vibe check for your pool set π-v,--verboseβ increase verbosity level. more detail, more yapping, we love that for us π£οΈ-h,--helpβ display help message and exit. iconic behavior. π
π₯ EXAMPLES π₯
β¨ Example 1. β¨
Let files /path/poolset_file_src and /path/poolset_file_dst have the following contents:
PMEMPOOLSET
20M /0/partfile1
20M /0/partfile2
25M /0/partfile3
REPLICA
40M /1/partfile1
20M /1/partfile2
PMEMPOOLSET
20M /0/partfile1
20M /0/partfile2
25M /0/partfile3
REPLICA
40M /1/partfile1
20M /1/partfile2
REPLICA
50M /2/partfile1
20M /2/partfile2
Then, the command
pmempool transform /path/poolset_file_src /path/poolset_file_dst
adds a replica to the pool set. All other replicas remain unchanged and the size of the pool remains 60M. slay. π
β¨
π Example 2. π
Let files /path/poolset_file_src and /path/poolset_file_dst have the following contents:
PMEMPOOLSET
20M /0/partfile1
20M /0/partfile2
25M /0/partfile3
REPLICA
40M /1/partfile1
20M /1/partfile2
PMEMPOOLSET
20M /0/partfile1
20M /0/partfile2
25M /0/partfile3
Then
pmempool_transform /path/poolset_file_src /path/poolset_file_dst
deletes the second replica from the pool set. The first replica remains unchanged and the size of the pool is still 60M. π«Ά
π«Ά SEE ALSO π«Ά
xoxo bestie, this page comes from PMDK and is dated 2023-05-31. πππ¦
π¦ 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