OS Manuals

/usr/bin/ldev

Lustre client utilities for mounting and managing Lustre filesystems

From lustre-client 2.17.61-r0 (enterprise-packages), captured 2026-11-08 by running ldev --help (exit 0). permalink

Usage: ldev [OPTIONS]...

Parse ldev.conf and answer the following queries:

  -h, --help          Display this help.
  -c, --config FILE   Set path to config file.
  -H, --hostname NAME Use NAME instead of local hostname for queries.
  -p, --partner       Print hostname of failover partner.
  -l, --local         Print labels for local devices.
  -f, --foreign       Print labels for foreign devices.
  -a, --all           Print labels for local and foreign devices.
  -F, --filesys NAME  Print labels for file system NAME.
  -s, --sanity        Sanity check config on this node.
  -d, --device LABEL  Print storage device of LABEL.
  -j, --journal LABEL Print journal device of LABEL if it exists.
  -r, --raidtab LABEL Print raidtab of LABEL if it exists.
  -t, --type LABEL    Print device type of LABEL, i.e. "zfs" or "md".
  -z, --zpool LABEL   Print zpool containing LABEL.
  -R, --role ROLE     Filter output based on role, i.e. mdt, ost, mgs.
  CMD [ARGS] ...      Run CMD in parallel for each device substituting:
                      %f=fsname  %d=device  %i=dec-index %n=main-nid %l=label
                      %t=srvtype %j=journal %I=hex-index %N=fail-nid %m=mgs-nid
                      %H=hostname %b=backing-fs
                      May be used in combination with -l, -f, -a, -F options.
Options (15)
OptionDescriptionSource
-h, --helpDisplay help message.help + man
-c, --config FILESet path to config file.help + man
-p, --partnerPrint hostname of failover partner.help + man
-l, --localPrint labels for local devices.help + man
-f, --foreignPrint labels for foreign devices.help + man
-a, --allPrint labels for local and foreign devices.help + man
-F, --filesys NAMEPrint labels for file system NAME.help + man
-s, --sanitySanity check config on this node.help + man
-d, --device LABELPrint storage device of LABEL.help + man
-t, --type LABELPrint device type of LABEL, i.e. "zfs" or "md".help + man
-z, --zpool LABELPrint zpool containing LABEL.help + man
-R, --role ROLEFilter output based on role, i.e. mdt, ost, mgs.help + man
-HUse NAME instead of local hostname for queries. (in the manual page but not in --help)man
-jPrint journal device corresponding to label if defined. (in the manual page but not in --help)man
-rPrint Linux software raid configuration file or ZFS cache file associated with LABEL, if any. (in the manual page but not in --help)man
Examples (2) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.