GSTRIPE(8)
π GSTRIPE(8) β the striped-device control utility bestie π«
okay so this is the gstripe manual page, from the System Manager's Manual section 8 β yes, that section, the admin-y one. buckle up π
β¨ NAME β¨
gstripe β control utility for striped devices π¦
πΈ SYNOPSIS πΈ
gstripe create [-v] [-s stripesize] name prov prov ...
gstripe destroy [-fv] name ...
gstripe label [-hv] [-s stripesize] name prov prov ...
gstripe stop [-fv] name ...
gstripe clear [-v] prov ...
gstripe dump prov ...
gstripe list
gstripe status
gstripe load
gstripe unload
π DESCRIPTION π
So the gstripe utility is literally how you set up a stripe across two or more disks. that's the whole vibe. and it can configure your striped device two different ways: "manual" or "automatic" β¨
- with the "manual" method, no metadata gets stored on the devices at all, so the striped device has to be configured by hand every single time it's needed π (iconic but highkey exhausting).
- the "automatic" method uses on-disk metadata to detect devices. once devices are labeled, they'll be automatically detected and configured π«Ά no cap.
The first argument to gstripe tells it which action to perform:
createβ set up a striped device from the given devices with the specifiedname. this is the "manual" method, and the stripe will not exist after a reboot (see "DESCRIPTION" above π). the kernel modulegeom_stripe.kowill be loaded if it's not loaded already.labelβ set up a striped device from the given devices with the specifiedname. this is the "automatic" method, where metadata gets stored in every device's last sector πΎ. the kernel modulegeom_stripe.kowill be loaded if it's not loaded already.stopβ turn off an existing striped device by its name. this command does not touch on-disk metadata! πdestroyβ same asstop.clearβ clear metadata on the given devices.dumpβ dump metadata stored on the given devices.listβ seegeom(8).statusβ seegeom(8).loadβ seegeom(8).unloadβ seegeom(8).
π Additional options π
-fβ force the removal of the specified striped device π-hβ hardcode providers' names in metadata-sstripesizeβ specifies size of stripe block in bytes. thestripesizemust be a multiple of the largest sector size of all the providers β οΈ (fr fr, it has to be)-vβ be more verbose π£οΈ
β SYSCTL VARIABLES β
The following sysctl(8) variables can be used to control the behavior of the STRIPE GEOM class. the default value is shown next to each variable π
kern.geom.stripe.debug:0β debug level of the STRIPE GEOM class. this can be set to a number between0and3inclusive. if set to0minimal debug information is printed, and if set to3the maximum amount of debug information is printed πkern.geom.stripe.fast:0β if set to a non-zero value, enable "fast mode" instead of the normal "economic mode". compared to "economic mode", "fast mode" uses more memory, but it's much faster for smaller stripe sizes π₯. if enough memory cannot be allocated, STRIPE will fall back to "economic mode".kern.geom.stripe.maxmem:13107200β maximum amount of memory that can be consumed by "fast mode" (in bytes). thissysctl(8)variable is read-only and can only be set as a tunable inloader.conf(5)π«kern.geom.stripe.fast_failedβ a count of how many times "fast mode" has failed due to an insufficient amount of memory. if this value is large, you should consider increasing thekern.geom.stripe.maxmemvalue π
π¦ EXIT STATUS π¦
Exit status is 0 on success, and 1 if the command fails. simple as that π
π EXAMPLES π
the following example shows how to set up a striped device from four disks with a 128KB stripe size for automatic configuration, create a file system on it, and mount it π:
gstripe label -v -s 131072 data /dev/da0 /dev/da1 /dev/da2 /dev/da3
newfs /dev/stripe/data
mount /dev/stripe/data /mnt
[...]
umount /mnt
gstripe stop data
gstripe unload
π COMPATIBILITY π
The gstripe interleave is in number of bytes, unlike ccdconfig(8) which uses the number of sectors. a ccdconfig(8) ileave of '128' is 64 KB (128 512B sectors). the same stripe interleave would be specified as '65536' for gstripe. don't mix these up bestie, i'm begging π
π SEE ALSO π
geom(4), loader.conf(5), ccdconfig(8), geom(8), mount(8), newfs(8), sysctl(8), umount(8)
π HISTORY π
The gstripe utility appeared in FreeBSD 5.3. vintage β¨
π AUTHORS π
Pawel Jakub Dawidek <pjd@FreeBSD.org> β king behavior π
this page is from the Debian build, dated January 23, 2025 β so that's the source, version vibe and date all in one cute lil sign-off π§π tysm for reading, go stripe some disks responsibly!! ππ
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2004-2005 Pawel Jakub Dawidek <pjd@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms