User:Dustin/Notes/Device Configuration

From wiki.zmanda.com
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Device Definitions

Define the idea of "named" devices, vs. device specifiers:

named device
"LTO-3-drive-1"
device specifier
"tape:/dev/nst0"

Named devices can have properties associated with them:

define device tape-drive {
  comment "generic tape drive"
  device_property "BLOCK_SIZE" "32768"
  tapetype "LTO-3" # future addition?
}

define device LTO-3-drive-1 {
  tape-drive
  tapedev "tape:/dev/nst0"
  comment "the one on the left"
}

define device LTO-3-drive-2 {
  tape-drive
  tapedev "tape:/dev/nst1"
  comment "the one on the right"
}

tapedev "rait:{LTO-3-drive-1,LTO-3-drive-2}"

Changer Definitions

A bit trickier -- how does a changer "invent" a device definition and send it back to Amanda?