OS Manuals

/usr/bin/sg_zone

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_zone  [--all] [--close] [--count=ZC] [--element=EID] [--finish]
                [--help] [--open] [--quick] [--remove] [--sequentialize]
                [--timeout=SE] [--verbose] [--version] [--zone=ID]
                DEVICE
  where:
    --all|-a           sets the ALL flag in the cdb
    --close|-c         issue CLOSE ZONE command
    --count=ZC|-C ZC    set zone count field (def: 0)
    --element=EID|-e EID    EID is the element identifier to remove;
                            default is 0 which is an invalid EID
    --finish|-f        issue FINISH ZONE command
    --help|-h          print out usage message
    --open|-o          issue OPEN ZONE command
    --quick|-q         bypass 15 second warn and wait (for --remove)
    --remove|-r        issue REMOVE ELEMENT AND MODIFY ZONES command
    --sequentialize|-S    issue SEQUENTIALIZE ZONE command
    --timeout=SE|-t SE    command timeout in seconds (def: 60 secs)
    --verbose|-v       increase verbosity
    --version|-V       print version string and exit
    --zone=ID|-z ID    ID is the starting LBA of the zone (def: 0)

Performs a SCSI OPEN ZONE, CLOSE ZONE, FINISH ZONE, REMOVE ELEMENT AND
MODIFY ZONES or SEQUENTIALIZE ZONE command. Either --close, --finish,
--open, --remove or --sequentialize option needs to be given.
Options (13)
OptionDescriptionSource
--count, -C ZC|-CZC is placed in the Zone Count field in the cdb of all four commands supported by this utility.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
--zone, -z ID|-zwhere ID is placed in the cdb's ZONE ID field.help + man
-a, --allsets the ALL field in the cdb. (in the manual page but not in --help)man
-c, --closecauses the CLOSE ZONE command to be sent to the DEVICE. (in the manual page but not in --help)man
-f, --finishcauses the FINISH ZONE command to be sent to the DEVICE. (in the manual page but not in --help)man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-o, --opencauses the OPEN ZONE command to be sent to the DEVICE. (in the manual page but not in --help)man
-r, --removecauses the REMOVE ELEMENT AND MODIFY ZONES command to be sent to the DEVICE. (in the manual page but not in --help)man
-S, --sequentializecauses the SEQUENTIALIZE ZONE 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.