unmount
Unmount storage.
Aliases: umount
Synopsis
unmount [storage=<storage>] [sd=<sd>] [<storage-name>] [drive=<drive>]
[device=<device>] [alldrives] [jobid=<jobid>] [job=<job>]
[ujobid=<ujobid>]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Asks the Storage Daemon to stop using a device and release its volume, so a tape can be removed or the device serviced. While a device is unmounted no job writes to it; mount brings it back. It changes the device state in the Storage Daemon, not the catalog. umount is another name for the same command.
The storage is given as storage=, sd= or by its bare name; without it a selection list appears. drive= picks one drive, alldrives unmounts every drive of the autochanger one after another. jobid=, job= or ujobid= use the storage of a running job.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
storage= | resource | from .storages | Storage name. | ||
sd= | resource | from .storages | Storage name (as storage=). | ||
<storage-name> | resource | from .storages | positional | Storage name without key. | |
drive= | integer | Drive number. | |||
device= | string | Device name. | |||
alldrives | keyword | Every drive of the autochanger. | |||
jobid= | integer | Storage of a job. | |||
job= | resource | from .jobs | Storage of a job. | ||
ujobid= | string | Storage of a job. |
Examples
Unmount drive 1 of the autochanger:
unmount storage=Autochanger drive=1
Unmount every drive of the autochanger:
unmount storage=Autochanger alldrives