mount
Mount storage.
Synopsis
mount [storage=<storage>] [sd=<sd>] [<storage-name>] [slot=<slot>]
[drive=<drive>] [device=<device>] [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 use a device again: on tape drives to read the loaded tape and make it available to jobs, on autochangers to load a volume from a slot first (slot=). Needed after unmount, after inserting a tape, or when a job waits for a volume. It changes the device state in the Storage Daemon, not the catalog. File devices are always mounted.
The storage is given as storage=, sd= or by its bare name; without it a selection list appears. jobid=, job= or ujobid= use the storage of a running job. A keyword without a value is read as a storage name.
Onesimus deviation: a job waiting for a volume whose Job resource has no Max Wait Time is cancelled after 10 minutes (unlimited in Bareos). Until then mount or a newly labelled volume lets the job continue.
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. | |
slot= | integer | Slot. | |||
drive= | integer | Drive number. | |||
device= | string | Device name. | |||
jobid= | integer | Storage of a job. | |||
job= | resource | from .jobs | Storage of a job. | ||
ujobid= | string | Storage of a job. |
Examples
Load slot 3 into drive 0 and mount it:
mount storage=Autochanger slot=3 drive=0
Mount the storage the running job 42 waits on:
mount jobid=42