Академический Документы
Профессиональный Документы
Культура Документы
0
Administration
Fundamentals
Media Configuration and
Management
At the conclusion of this lesson the participant will be able to:
• Describe a Media Manager ‘volume’ and its characteristics.
• Describe the purpose of the Volume Database and its contents.
• Describe Volume Pools and Volume Groups.
• Describe Barcode Rules, Media ID Generation Rules, and Media
Prefixes and when they would be used.
• Describe the Volume Database Host and how to set it.
• Describe the configuration and use of the Scratch Pool.
• Identify the purposes of the poolDB, ruleDB, volDB, and vm.conf
files.
• Utilize selected GUIs, reports and commands to manipulate
specific volumes.
• Describe how volume usage is tracked.
Volumes
Volume Database
Volume Database Host
• What is a ‘Volume’?
TM
• In NetBackup , a volume is defined as a piece of removable
media. (Volumes are actually Media Manager entities).
• A volume is either a magnetic tape or an optical disk*.
• A volume is a logical unit of data storage. The purpose of most
volumes is to house Client backup images. Other volume types are:
• Volumes used for cleaning heads on tape and optical drives.
TM
• Volumes used for NetBackup database backups
• Volumes used by other applications such as Storage Migrator
• Each volume is known by an identifier known as the ‘media ID’.
• ‘mediaIDs’ are from 1-6 digits in length.
• Information about all ‘volumes’ known to Media Manager is housed
in a Media Manager database, known as the Volume Database.
• The Volume Database is represented by a single file, ‘volDB’.
The Volume Database
• The Volume Database is a Media Manager database which
contains a list of all known ‘volumes’ (‘removable’ media), both
tape and/or optical.
• The Volume Database contains a record for each ‘Volume’ (660
bytes per volume).
• The Volume Database record contains information such as:
mediaID, ASSIGNED or UN-ASSIGNED, name of Volume Pool
mediaID belongs to, creation date/time, assigned date/time, last
mounted date/time, first mounted date/time, number of mounts,
expiration date (if set), maximum mounts (if set), application to
which media is assigned (owner).
• The Volume Database knows nothing about:
The actual data on the tape – how much data, what type, which
client the data came from, where the data is
The Volume Database - volDB
• The Volume Database is a file named ‘volDB’
• ‘volDB’ is maintained by the NetBackupTM Volume Management
service/daemon – represented by the process ‘vmd’
• Although a ‘volDB’ file exists on EACH NetBackupTM server system,
VERITAS strongly recommends that only a single Volume Database
(volDB) be active/maintained.
• The system that maintains the Volume Database is known as the
Volume Database Host.
• The ‘volDB file is located at:
<install path>\VERITAS\volmgr\database\ (Windows)
<install path>/openv/volmgr/database/ (Unix)
• The ‘volDB’ file contain a 660 bytes record per volume.
‘volDB’ files on all other NetBackupTM servers will remain an 8
byte file.
The Volume Database - volDB
TM
Volume Database Host NetBackup
‘volDB’ active Master Server
TM
NetBackup
Media Server
TM
NetBackup
Media Server
volDB volDB
8 bytes 8 bytes
(inactive) (inactive)
TM
NetBackup
TM NetBackup
Clients Clients
The Volume Database Host
• The Volume Database Host is the single system that maintains
the Volume Database - per VERITAS recommendation.
• It is recommended that the NetBackupTM Master server act as the
Volume Database Host.
• On a new installation of NetBackupTM 5.0, the Master server will,
by default, be configured as the Volume Database Host.
Risk is higher that multiple Volume Database Hosts exist in
installations of older versions of NetBackupTM.
If merging NetBackupTM Master servers, multiple Volume
Database Hosts will exist. VERITAS consulting services are
recommended when customers are merging environments.
• All queries for media (volumes) or updates made to volume
records are directed to the NetBackupTM Volume Management
Daemon (vmd) running on the Volume Database Host (the
Master server).
The Volume Database Host
Volume information NetBackup
for entire NetBackup domain
Volume Database Host
‘volDB’ active Master Server
maintained in ‘volDB’ file on
NetBackup Master Server. NetBackup
Media Server
NetBackup
Media Server
NetBackup NetBackup
Clients Clients
Configuring the Volume Database Host – for Robotic Devices
• Using Windows-based NetBackupTM Administration Console
<install path>\VERITAS\NetBackup\bin\NBConsole.exe
Configuring the Volume Database Host – for Robotic Devices
• Using Java-based NetBackupTM Administration Console
<install path>/openv/netbackup/bin/jnbSA& (Unix)
Configuring the Volume Database Host – for Standalone Devices
• Using Windows-based NetBackupTM Administration Console
Configuring the Volume Database Host – for Standalone Devices
• Using Java-based NetBackupTM Administration Console
Configuring the Volume Database Host - using ‘tpconfig’
• ‘vmd’ must be stopped/restarted after changes to the configuration
are made for the changes to take effect.
• Use on each Media server system
<install path>/openv/volmgr/bin/tpconfig (Unix)
<install path>\VERITAS\volmgr\bin\tpconfig (Windows)
Configuring the Volume Database Host - using ‘tpconfig’
• On Unix-based platforms, ‘tpconfig’ is menu-based (as below)
B00006
A00006 “Oraclepool”
Why use Volume Pools?
• When NetBackupTM requires a piece of media on which it will write
a backup image, it does not care which specific piece of media it
uses.
• Using Volumes Pools removes the need for NetBackupTM to specify
(or even be aware of) the specific name (mediaID) of a volume
during backup operations.
Rather than request ‘XYZ001’, NetBackupTM will request an
available volume from pool ‘testpool’ (or some other). There
many be many volumes available in ‘testpool’ to choose from.
Ultimately, a specific piece of media (mediaID) will be selected
and provided (by Media Manager) to satisfy the request from
the NetBackupTM.
• For certain operations (such as restores) NetBackupTM will request
the specific ‘mediaID(s)’ needed for the operation.
Configuring Volume Pools
• NetBackupTM provides three ‘default’ volume pools: NetBackup,
DataStore, None
• No additional pools are absolutely required – but most customers
will create additional pools, based upon their needs.
• Volume Pools can be created/modified/listed using:
The NetBackupTM Administration Console (Windows or Java)
The ‘vmpool’ command line interface
• Media Manager maintains a catalog (database) of Volume Pools
as a single file, named ‘poolDB’.
• ‘poolDB’ is located on the NetBackupTM Master server in:
<install_path>\VERITAS\volmgr\database\ (Windows)
<install_path>/openv/volmgr/database/ (Unix)
• NetBackupTM supports a concept called ‘scratch’ pools that will be
described later in this lesson.
Configuring Volume Pools
• Using the NetBackupTM Administration Console GUI
NetBackupTM provides three Volume Pools by default
None
NetBackup
DataStore
Configuring Volume Pools
• Using the NetBackupTM Administration Console – Java-based
Adding Volume Pools
Configuring Volume Pools
• Using the NetBackupTM Administration Console – Windows-based
Adding Volume Pools
Configuring Volume Pools
• Using the NetBackupTM Administration Console
Volume Pools – using a ‘Scratch Pool’
The problem:
A00001 • This customer has two (or more) primary
“Engrpool” types of backups.
A00002 • The backup administrator has created two
pools (‘engrpool’ and ‘oraclepool’) each
which define the set of tapes that are
A00003 available to each of the backup policies that
will be performing the backups.
A00004 ‘PolicyA’ uses tapes in ‘engrpool’
“Oraclepool” ‘PolicyB’ uses tapes in ‘Oraclepool’.
• In this example the six (6) volumes have
A00005 been divided evenly between the two pools.
• The problem is deciding how many tapes to
A00006 put into each pool.
If during backups one pool runs out of
tapes - backups using that pool will fail.
Volume Pools – using a ‘Scratch Pool’
The Solution:
A00001 “Engrpool”
• Implement a ‘scratch’ pool.
• A ‘SCRATCH’ pool is a special volume pool
A00002 from which Media Manager can dynamically
allocate volumes - into other volume pools
- as those other volume pools has need for
A00003 additional media.
“scratchpool” • This concept reduces the need for the
A00004 backup administrator to precisely plan the
amount of media that is required in specific
pools.
A00005 • When implementing a ‘scratch’ pool, the
majority of the customer’s media is placed
A00006 “Oraclepool” in the pool designated as the
‘SCRATCH_POOL’.
Volume Pools – using a ‘Scratch Pool’
Scratch Pool Implementation
A00001 “Engrpool”
• The ‘scratch pool’ can have any name, but
using a name like ‘scratchpool’ is probably a
A00002 good idea, as it is descriptive of the
purpose/function of the pool.
• The pool names to which backups are
A00003 directed probably have a small number of
“scratchpool” volumes assigned to them initially.
A00004 • In this case, as ‘engrpool’ or ‘Oraclepool’
run out of available media, and require
more volumes, Media Manager
A00005 automatically moves volumes from the
‘scratch pool.
A00006 “Oraclepool” • Backups should NEVER be directed
towards the ‘scratchpool’.
Volume Pools – using a ‘Scratch Pool’
Scratch Pool Implementation
A00001 “Engrpool”
• In this case, as ‘engrpool’ or ‘Oraclepool’
run out of available media, and require
A00002 more volumes, Media Manager
automatically moves volumes from the
‘scratch pool.
A00003 • As you can see in this example, volumes
“scratchpool” have been moved from the ‘scratchpool’ to
A00004 both the ‘engrpool’ and the ‘Oraclepool’.
• In recent releases of NetBackupTM (since
v4.5 FP3), volumes which originated in the
A00005 ‘scratchpool’ can be automatically moved
back to the ‘scratchpool’ once all active
A00006 “Oraclepool” backups on the volume have expired.
Configuring Volume Pools – creating a ‘Scratch’ pool
• From NetBackupTM Administration Console (Java-based)
Adding a ‘scratch’ pool is a simple process
Configuring Volume Pools – creating a ‘Scratch’ pool
• From NetBackupTM Administration Console (Windows-based)
Adding a ‘scratch’ pool is a simple process
Configuring Volume Pools – creating a ‘Scratch’ pool
• Contents of the ‘vm.conf’ file – on a Unix-based Master server
Located in: <install_path>/openv/volmgr/
Configuring Volume Pools – creating a ‘Scratch’ pool
• Contents of the ‘vm.conf’ file – on a Windows-based Master server
Located in: <install_path>\VERITAS\volmgr\
Configuring Volume Pools
• Command Line Interface for working with Volume Pools – ‘vmpool’
Located in: <install_path>\VERITAS\volmgr\bin\ (on Windows)
Located in: <install_path>/openv/volmgr/bin/ (on Unix)
Examples:
vmpool –listall
vmpool –add testpool “just testing” ANYHOST –1 –2
vmpool –delete testpool
vmpool –set_scratch scratchpool
Configuring Volume Pools
• The Volume Pool Database – ‘poolDB’ file
Located in <install_path>/openv/volmgr/database/ (Unix)
Default
pools
Customer
added
pools
Default
pools
Customer
added
pools
Right-mouse click
Creating Barcode Rules
• Using NetBackupTM Administration Console GUI (Java-based)
Right-Mouse Click
Creating Barcode Rules
• Using NetBackupTM Administration Console GUI (Windows-based)
Windows-based GUI
Java-based GUI
Creating Barcode Rules
• The ‘Advanced Robot Inventory Options’ ’Barcode Rules’
displays a list of the ‘barcode rules that have been created
Configuring Bar Code Rules
• ‘barcode’ rules database (Unix-based Master servers)
<install_path>/openv/volmgr/database/ruleDB file
Rule # Version Barcode tag Media Type pool # max mounts comment
(0=none)
Configuring Bar Code Rules
• ‘barcode’ rules database (Windows-based Master servers)
<install_path>\VERITAS\volmgr\database\ruleDB file
Resulting Media ID
And barcode is X A N 4 5 9 L 1 XAN459
Resulting Media ID
And barcode is X A N 4 5 9 L 1 BC D459
Resulting Media ID
And barcode is X A N 4 5 9 L 1 294AXZ
Configuring ‘Media ID Generation’ Rules
• Using the NetBackupTM Administration Console (Java-based)
Configuring ‘Media ID Generation’ Rules
• Using the NetBackupTM Administration Console (Java-based)
‘mediaIDs’ created by
previous operation
Configuring Volumes (Media)
• Manually adding volumes
Using NetBackupTM Administration Console (Windows-based)
Configuring Volumes (Media)
• Manually adding volumes using Windows-based GUI
• Create one or more volumes
• If creating multiples volumes
– must specify ‘naming style’.
‘mediaIDs’ will be
sequential.
All will be same ‘media
type’
All will reside in same
Volume Pool
All will have same
description (if used)
• If robotic media are created:
Slot locations will be
sequential
Take care to match
‘mediaID’ to media label.
Configuring Volumes (Media)
• Manually adding volumes using Windows-based GUI
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’
Possible Preliminary Steps to ‘robot inventory’:
Creating ‘barcode rule(s)’ is optional, but very common.
Creating ‘Media ID Generation’ rules is optional
‘Media ID Prefix’ is applied only in certain situations.
The actual ‘robot inventory’ process:
Show contents of robot. Queries robot for its tape contents
(gathered from library memory).
Compare robot contents with current Volume Database (volDB)
(results of previous step with current ‘volDB’ contents).
Preview the volume configuration update (determines what
changes are required to update the ‘volDB’).
Perform volume configuration update (updates volDB with the
changes).
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Java-based)
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Java-based)
• Steps in ‘robot inventory’:
1. Select ‘robot number’ on
which to perform inventory.
2. Show contents.
3. Compare contents with
volume configuration
(volDB).
4. Preview ‘changes’ (to
volDB’).
5. Update volume
configuration (write
Results of ‘Show Contents’ changes to ‘volDB’).
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Java-based)
• Steps in ‘robot inventory’:
1. Select ‘robot number’ on
which to perform inventory.
2. Show contents.
3. Compare contents with
volume configuration
(volDB).
4. Preview changes (to
‘volDB’)
5. Update volume
configuration (write
changes to ‘volDB’).
Results of ‘Compare’
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Java-based)
• Steps in ‘robot inventory’:
1. Select ‘robot number’ on
which to perform inventory.
2. Show contents.
3. Compare contents with
volume configuration
(volDB).
4. Preview changes (to
‘volDB’.
5. Update volume
configuration (write
changes to ‘volDB’).
Results of ‘Update’
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Java-based)
Results of ‘Compare’
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Widows-based)
• Steps in ‘robot inventory’:
1. Select ‘robot number’ on
which to perform inventory.
2. Show contents.
3. Compare contents with
volume configuration
(volDB).
4. Preview ‘changes’ (to
volDB’).
5. Update volume
configuration (write
changes to ‘volDB’).
Results of ‘Update’
Configuring Volumes (Media)
• Adding volumes using the ‘Robot Inventory’ (Windows-based)
OR
Configuring Volumes (Media)
• Adding volumes using the ‘Volume Configuration Wizard’
Configuring ‘Standalone’ volumes (media)
vmadd -m ABC123 -mt dlt –p 1 -b ABC123 -rt tld -rn 1 -rh Hosta -rc1 2
Media Manager command line interface
• The ‘vmchange’ Command
Changes volume information in Volume Database (volDB).
The following command changes the expiration date of volume
ABC123:
vmdelete -m ABC123
vmdelete -v DELETE_ME
Media Manager command line interface
• The ‘vmpool’ Command
Use this command to add, change, delete, or list volume
pools.
The following command lists all pools configured on the host
where the command is executed:
vmpool -listall
Media Manager command line interface
• The ‘vmrule’ Command
Use this command to add, change, delete, or list barcode
rules.
The following command creates a rule that defines any tape
with a barcode starting with ABC as a DLT tape in the
‘NetBackup’ pool. The tape can be mounted up to 100 times
for writes and is given a description.