OS Manuals

/usr/bin/sg_rem_rest_elem

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_rem_rest_elem --help (exit 0). permalink

Usage: sg_rem_rest_elem  [--capacity=RC] [--element=EID] [--help] [--quick]
                         [--remove] [--restore] [--timeout=SE] [--verbose]
                         [--version] DEVICE
  where:
    --capacity=RC|-c RC    RC is requested capacity (unit: block; def: 0)
    --element=EID|-e EID    EID is the element identifier to remove;
                            default is 0 which is an invalid EID
    --help|-h          print out usage message
    --modify|-m        issue REMOVE ELEMENT AND MODIFY ZONES command
    --quick|-q         bypass 15 second warn and wait
    --remove|-r        issue REMOVE ELEMENT AND TRUNCATE command
    --restore|-R       issue RESTORE ELEMENTS AND REBUILD command
    --timeout=SE|-t SE    command timeout in seconds (def: 60 secs)
    --verbose|-v       increase verbosity
    --version|-V       print version string and exit

Performs a SCSI REMOVE ELEMENT AND TRUNCATE, REMOVE ELEMENT
AND MODIFY ZONES or RESTORE ELEMENTS AND REBUILD command.
Either the --remove, --modify or --restore option must be
given.
Options (10)
OptionDescriptionSource
--capacity, -c RC|-cRC stands for Requested Capacity and is the number of logical blocks the DEVICE should have after the element is removed with the REAT command.help + man
--element, -e EID|-ewhere EID is an element identifier which is a 32 bit unsigned integer starting at one.help + man
--timeout, -t SE|-twhere SE is the command timeout in seconds.help + man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-m, --modifycauses the REMOVE ELEMENT AND MODIFY ZONES command [REAMZ] to be sent to the DEVICE. (in the manual page but not in --help)man
-q, --quickthe default action (i.e. when this option is not given) is to give the user 15 seconds to reconsider doing a remove or restore element operation on the DEVICE. (in the manual page but not in --help)man
-r, --removecauses the REMOVE ELEMENT AND TRUNCATE command to be sent to the DEVICE. (in the manual page but not in --help)man
-R, --restorecauses the RESTORE ELEMENTS AND REBUILD command to be sent to the DEVICE. (in the manual page but not in --help)man
-v, --verboseincrease the level of verbosity, (i.e. debug output). (in the manual page but not in --help)man
-V, --versionprint the version string and then exit. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

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