aoe-mkshelf(8)
π aoe-mkshelf β it's giving "make me some device files" π
okay so bestie, welcome to aoe-mkshelf(8), straight out of the System Manager's Manual β¨ she makes special device files for exactly one shelf address, and she does it with main character energy.
β¨ NAME β¨
aoe-mkshelf β create special device files for one shelf address π
πΈ SYNOPSIS πΈ
aoe-mkshelf {device-dir} {shelf-address}
env n_partitions=1 aoe-mkshelf {device-dir} {shelf-address}
π¦ DESCRIPTION π¦
okay so first thing's first, and it's lowkey important: aoe-mkshelf is not needed on systems that have udev installed, and it's incompatible with aoe drivers that have the aoe_dyndevs module parameter set to 1. so if that's you, bestie, this page is not your moment π
but if your system is out here lacking udev and has an aoe driver that uses static minor device numbers, then aoe-mkshelf is your girl π«Ά she creates the block special files you need to actually access the AoE devices with the given shelf address.
a lil history lesson, no cap: all aoe drivers prior to aoe6-50 use static minor device numbers. versions 50 and up use dynamic minor device numbers β but only when the module parameter aoe_dyndevs=1 is set. it's giving "glow up but conditional" β¨
and if you're on static minor device numbers and your aoe driver only supports one partition per device (whole-disk partitions, bestie, the simple life), then the device files have to match that. which means you want the n_partitions environment variable described below π
π Arguments π
device-dirβ this should be the name of the directory where the block device files will be created. it's the lil home for your new babies πshelf-addressβ this is the AoE major address, aka the shelf address, for which to create device nodes. like, for example, specifying a shelf address of1means thee1.*device nodes will be created in device-dir. iconic behavior honestly π
π ENVIRONMENT VARIABLES π
n_partitionsβ if this variable is set in the environment, it overrides the default number of partitions per aoe disk, namely16. so yeah, the default is16, but you can absolutely change her mind π
π₯ EXAMPLE π₯
so in this example, the root user on a host named nai creates special files for using the aoe disks in shelf 7. and then he remembers the driver doesn't have partition support π so the command gets called again with n_partitions set to 1. character development fr fr.
nai:~# aoe-mkshelf /dev/etherd 7
nai:~# ls /dev/etherd/e7.* | wc -l
160
nai:~# rm /dev/etherd/e7.*
nai:~# n_partitions=1 aoe-mkshelf /dev/etherd 7
nai:~# ls /dev/etherd/e7.* | wc -l
10
nai:~#
160 files?? then 10 files?? the way that n_partitions changes everything π slay.
π SEE ALSO π
aoe-discover(8), aoe-interfaces(8), aoe-mkdevs(8), aoe-stat(8), aoetools(8), udev(7).
the whole friend group, together at last π«Ά
π AUTHOR π
Ed L. Cashin (ecashin@coraid.com) β the legend, the blueprint, the moment β
and that's the whole page bestie!! π this was aoe-mkshelf(8) from the System Manager's Manual β go forth and make those special files, you've got this π§β¨π
π¦ where this page comes from
- fedora 43: aoetools 36-30.fc41 Β· GPLv2
- fedora 43: aoetools 37-1.fc43 Β· GPL-2.0-only
- fedora 44: aoetools 37-1.fc44 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms