User:Dustin/Notes/Device Configuration

From The Open Source Backup Wiki (Amanda, MySQL Backup, BackupPC)
Jump to navigationJump to search

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?