当备份完成时如何使StandLone磁带机不弹出磁带
(2007-05-19 01:40)
分类: NetBackup
For NetBackup 4.5 and 5.x systems, there are two different ways to configure NetBackup so it will leave a tape in a standalone drive once a backup completes. This can be done via the NO_STANDALONE_UNLOAD touch file, or the DO_NOT_EJECT_STANDALONE entry in the vm.conf file. It is only necessary to choose one of these options in order to prevent the ejection of tapes from a standalone drive after a backup completes.
The first method to leave tapes in a standalone drive, after a backup completes, is to add the DO_NOT_EJECT_STANDALONE entry to the vm.conf file.
1. Edit the /usr/openv/volmgr/vm.conf file and add the following entry:
DO_NOT_EJECT_STANDALONE
2. It will be necessary to restart NetBackup before this change will take affect. When no backups or restores are running, issue the following commands:
# /usr/openv/netbackup/bin/goodies/netbackup stop
# /usr/openv/netbackup/bin/goodies/netbackup start
When this option is present in the vm.conf, it prevents the Media Manager from ejecting the tape after an operation completes.
A second method to leave tapes in a standalone drive, after a backup completes, is to create an touch file named NO_STANDALONE_UNLOAD in the /usr/openv/volmgr directory.
1. To create the touch file run the command:
# touch /usr/openv/volmgr/NO_STANDALONE_UNLOAD
2. It will be necessary to restart NetBackup before this change will take affect. When no backups or restores are running issue the following commands:
# /usr/openv/netbackup/bin/goodies/netbackup stop
# /usr/openv/netbackup/bin/goodies/netbackup start
When NetBackup detects the presence of this file, it prevents Media Manager from ejecting the tape after an operation completes.
For NetBackup 6.0 systems the DO_NOT_EJECT_STANDALONE and NO_STANDALONE_UNLOAD options no longer apply. A new NetBackup server called the Enterprise Media Manager (<EMM>) server now handles drive configuration. The nbemmcmd command must now be used to configure the DO_NOT_EJECT_STANDALONE setting on the <EMM> server.
1. To enable the DO_NOT_EJECT_STANDALONE setting use the command:
# cd /usr/openv/netbackup/bin/admincmd
# ./nbemmcmd -changesetting -do_not_eject_standalone yes -machinename <hostname>
2. It is not necessary to restart NetBackup in order for this command to take effect.
# nbemmcmd -listsettings -machinename <hostname>


