DRBDMETA(8)
π DRBDMETA(8) β the DRBD meta data management tool, bestie edition π
okay so. this is drbdmeta, section 8 of the manual (system administration, iykyk). she's the one who handles DRBD's meta data storage. let's get into it π
β¨ NAME β¨
drbdmeta β DRBD's meta data management tool. she creates, she displays, she modifies. main character energy fr π
πΈ SYNOPSIS πΈ
drbdmeta [--force] [--ignore-sanity-checks] {device} {v06 minor |
v07 meta_dev index | v08 meta_dev index} {command}
[cmd args...]
π¦ DESCRIPTION π¦
Drbdmeta is your girl for creating, displaying and modifying the contents of DRBD's meta data storage. but like β lowkey β you usually do not want to run this directly. start it through the frontend drbdadm(8) instead, bestie. that's the vibe.
This command only works if the DRBD resource is currently down, or at least detached from its backing storage. no cap.
- The first parameter is the device node associated to the resource.
- The second parameter lets you select the version of the meta data. Currently all major DRBD releases (
0.6,0.7and8) are supported. all three, periodt π
π OPTIONS π
--forceβ every question thatdrbdmetaasks gets treated like the user already answered 'yes'. no more asking, she just goes π«Ά--ignore-sanity-checksβ some sanity checks makedrbdmetaterminate. e.g. if a file system image would get destroyed by creating the meta data. with this option you can forcedrbdmetato ignore these checks. > β οΈ like, it's literally called ignoring sanity checks. proceed with intention, not on autopilot.
β COMMANDS β
create-md --peer-max-bio-size val
Create-md initializes the meta data storage. this needs to be done before a DRBD resource can be taken online for the first time, fr fr. and in case there's already a meta data signature of an older format sitting there, drbdmeta will ask you if it should convert the older format to the selected format. so polite of her π
If you will use the resource before it is connected to its peer for the first time, DRBD may perform better if you use the --peer-max-bio-size option. For DRBD versions of the peer use up to these values:
<8.3.7β4k8.3.8β32k8.3.9β128k8.4.0β1M
get-gi
Get-gi shows a short textual representation of the data generation identifier. In version 0.6 and 0.7 these are generation counters, while in version 8 it is a set of UUIDs. different eras, same slay β¨
show-gi
Show-gi prints a textual representation of the data generation identifiers including explanatory information. it's giving β¨full contextβ¨
dump-md
Dumps the whole contents of the meta data storage β including the stored bit-map and activity-log β in a textual representation. the whole thing. no crumbs left π
outdate
Sets the outdated flag in the meta data. This is used by the peer node when it wants to become primary, but cannot communicate with the DRBD stack on this host.
dstate
Prints the state of the data on the backing storage. The output is always followed by /DUnknown, since drbdmeta only looks at the local meta data. she's local only, she's not nosy π
check-resize
Examines the device size of a backing device, and it's last known device size, recorded in a file /var/lib/drbd/drbd-minor-??.lkbd. In case the size of the backing device changed, and the meta data can be found at the old position, it moves the meta data to the right position at the end of the block device. she's relocating. she's thriving π§
π EXPERTS COMMANDS π
Drbdmeta allows you to modify the meta data as well. This is intentionally omitted for the command's usage output, since you should only use it if you really know what you are doing.
π By setting the generation identifiers to wrong values, you risk to overwrite your up-to-data data with an older version of your data. read that again. your current data. gone. replaced by old data. that is the actual, real, no-hyperbole stakes here.
set-gi gi
Set-gi allows you to set the generation identifier. Gi needs to be a generation counter for the 0.6 and 0.7 format, and a UUID set for 8.x. Specify it in the same way as get-gi shows it. match the format, bestie, don't freestyle it π
restore-md dump_file
Reads the dump_file and writes it to the meta data. simple as that, she's restoring π
π VERSION π
This document was revised for version 8.3.2 of the DRBD distribution.
π«Ά AUTHOR π«Ά
Written by Philipp Reisner <philipp.reisner@linbit.com> and Lars Ellenberg <lars.ellenberg@linbit.com>. legends, honestly π
π REPORTING BUGS π
Report bugs to <drbd-user@lists.linbit.com>. they wanna hear about it, for real.
π COPYRIGHT π
Copyright 2001-2008 LINBIT Information Technologies, Philipp Reisner, Lars Ellenberg. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
β οΈ "no warranty" is not a vibe, it's a legal statement. she is free software and she comes as-is. π
π₯ SEE ALSO π₯
okay that's the whole page, bestie!! and for the cute sign-off: this lil doc came from DRBD 8.3.2, dated 15 Oct 2008 (yes, she's vintage β vintage is iconic π
), and in the manual she's filed under DRBDMETA(8). now go run her through drbdadm like a good girlboss β¨ππ¦
π¦ where this page comes from
- debian bookworm: drbd-utils 9.22.0-1 Β· GPL-2.0-or-later
- debian trixie: drbd-utils 9.22.0-1.1 Β· GPL-2.0-or-later
- ubuntu noble: drbd-utils 9.22.0-1build1 Β· GPL-2.0-or-later
- ubuntu questing: drbd-utils 9.22.0-1.2
- ubuntu resolute: drbd-utils 9.22.0-1.2build1 Β· GPL-2.0-or-later
- ubuntu stonking: drbd-utils 9.22.0-1.2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms