Veritas NetBackup™ Appliance 命令参考指南
- 概述
- 附录 A. Main > Appliance 命令
- 附录 B. Main > Manage > FibreChannel 命令
- 附录 C. Main > Manage > HighAvailability 命令
- 附录 D. Main > Manage > Libraries 命令
- 附录 E. Main > Manage > Libraries > Advanced > ACS 命令
- 附录 F. Main > Manage > License 命令
- 附录 G. Main > Manage > MountPoints 命令
- 附录 H. Main > Manage > NetBackup CLI 命令
- 附录 I. Main > Manage > OpenStorage 命令
- 附录 J. Main > Manage > Software 命令
- 附录 K. Main > Manage > Storage 命令
- 附录 L. Main > Manage > Tapes 命令
- 附录 M. Main > Monitor 命令
- 附录 N. Main > Network 命令
- 附录 O. Main > Network > Security 命令 (DeviceCert)
- 附录 P. Main > Reports 命令
- 附录 Q. Main > Settings 命令
- 附录 R. Main > Settings > Alerts 命令
- 附录 S. Main > Settings > Notifications 视图命令
- 附录 T. Main > Settings > Security 命令
- 附录 U. Main > Support 命令
名称
Main > Support > FactoryReset — 将设备重置为出厂默认设置。
大纲
FactoryReset
FactoryReset ResetAll
描述
使用此命令将设备重置为出厂默认设置。如果已更改出厂设置的默认密码,则此命令会将其重置回默认值。
注意:
从 NetBackup Appliance 5.0 版本开始,如果在保留存储的情况下执行恢复出厂设置,则只能将系统重置为当前版本。如果在不保留存储的情况下执行恢复出厂设置,则可以将设备重置为其他版本。重置完成后,原始网络配置将丢失,因此必须使用 IPMI 登录才能重新配置设备
对于高可用性 (HA) 设置中的设备节点,必须先从 HA 设置中移除节点,并在执行恢复出厂设置之前断开其以太网和光纤通道 (FC) 电缆。
对任意 HA 节点执行恢复出厂设置之前,按显示的顺序执行以下任务:
在无需移除的节点上,运行以下命令以从 HA 设置中移除其他节点:
Manage > High Availability > Remove Node HostName
其中 HostName 是要移除的节点的主机名。
移除两个节点之间的以太网电缆。
移除节点和主存储扩展架之间的 FC 电缆。
完成前面所述的任务后,可以运行 FactoryReset 命令。
注意:
如果不从 HA 设置中移除节点并在执行恢复出厂设置之前断开以太网和 FC 电缆,则命令失败。将显示一条错误消息,提醒您执行前面所述的任务,然后再次尝试执行恢复出厂设置。
选项
- FactoryReset
使用此命令将设备重置为出厂默认设置。
- FactoryReset ResetAll
使用此命令可在非交互模式下重置设备出厂安装的映像。
示例
从 Appliance 命令行操作界面开始恢复出厂设置
- 打开一个 SSH 会话,并以管理员身份登录到设备。
- 输入 Main_Menu > Support > FactoryReset。此命令将显示以下消息,并且在开始恢复出厂设置之前需要您回答以下问题:
[信息] 禁用中断 (CTRL-C)、退出和暂停信号。
[信息] IPMI sysadmin 用户及其关联的密码、状态和权限已重置为默认值。
设备恢复出厂设置
Appliance factory reset will reset the entire system to the factory installed image. The appliance will have the following components reset to the factory restored settings/image: 1) Appliance Operating System 2) Appliance Software 3) NetBackup Software 4) Tape device configuration and associated tape images(data) on the primary server 5) Networking configuration (optionally retain) 6) Storage configuration and backup data (optionally retain) 7) Fibre Transport Deduplication target port configuration
- [Info] Successfully copied /usr/openv/netbackup/bp.conf to /cat/conf. - [Info] Running factory reset validation...please wait (approx 2 mins) - [Info] Factory reset validation successful.
RESET NETWORK CONFIGURATION [Optional] -- Resets the IP and routing configuration. -- Resets the DNS configuration. >> Do you want to reset the network configuration? [yes/no] (yes) no
RESET STORAGE CONFIGURATION and BACKUP DATA [Optional] -- Removes all the images on the AdvancedDisk, MSDP, Share partitions and associated tape images(data). -- Resets the storage partitions. -- Resets storage expansion units, if any. - [Warning] Performing a factory reset interrupts all share activity and removes and resets all share data. Unmount all the shares on clients before continuing with this operation. - [Info] Performing a factory reset removes the current Fibre Transport Deduplication target port configuration. >> Do you want to delete images and reset backup data? [yes/no] (yes) yes >> Resetting the storage configuration will remove all backup data on the storage partitions and any connected expansion units. This is not reversible. Are you sure you want to reset storage configuration? [yes/no] (yes) yes
- 回答这些问题之后,将显示以下摘要信息:
FACTORY RESET SUMMARY --------------------- Reset Appliance OS, software configuration : [YES] Reset Appliance network configuration : [NO] Reset Appliance storage configuration (REMOVE DATA) : [YES]
Appliance will make the following version changes: +------------------------------------------------------------------------------+ | Appliance | Version before factory reset | Version after factory reset | |------------+--------------------------------+--------------------------------| |n40-h129 | NetBackup 10.0 Appliance 5.0 | NetBackup 10.0 Appliance 5.0 | +------------------------------------------------------------------------------+
- 将显示以下警告。如果要开始恢复出厂设置操作,请输入 Yes。
WARNING: An appliance factory reset cannot be reversed! The reset process takes about 90 minutes. The appliance will be restarted to start the reset process. Do you want to continue? (yes/no) yes
继续恢复出厂设置时会显示以下摘要消息:
Performing factory reset. This operation could take 15-20 mins. Please wait... - [Info] Skipping NetBackup configuration reset for primary server 'n40-h129'. - [Info] PERFORMING APPLIANCE RESET TO FACTORY STATE - [Info] Delete checkpoints (type: NON_FACT) succeeded - [Info] Successfully copied /usr/openv/netbackup/bp.conf to /cat/conf. - [Info] Reset of the appliance to FACTORY STATE successful. - [Info] Stopping NetBackup processes... (6 mins approx) - [Info] Moving NetBackup Appliance Directory to n40-h129... - [Info] Acquired lock on the storage. - [Info] Resetting the storage configuration... - [Info] Checking whether the 'MSDP' partition exists... - [Info] Initiating deletion of 'MSDP' storage partition... - [Info] Removing the mount point for the 'MSDP' partition '0'... - [Info] Deleting the 'MSDP' partition '0'... - [Info] Checking whether the 'NetBackup Catalog' partition exists... - [Info] Initiating deletion of 'NetBackup Catalog' storage partition... - [Info] Removing the mount point for the 'NetBackup Catalog' partition '0'... - [Info] Deleting the 'NetBackup Catalog' partition '0'... - [Info] Checking whether the 'Share' partition exists... - [Info] The 'Share' partition does not exist. - [Info] Checking whether the 'MSDP Catalog' partition exists... - [Info] Initiating deletion of 'MSDP Catalog' storage partition... - [Info] Removing the mount point for the 'MSDP Catalog' partition '0'... - [Info] Deleting the 'MSDP Catalog' partition '0'... - [Info] Checking whether the 'Configuration' partition exists... - [Info] Initiating deletion of 'Configuration' storage partition... - [Info] Removing the mount point for the 'Configuration' partition '0'... - [Info] Deleting the 'Configuration' partition '0'... - [Info] Checking whether the 'NetBackup VxUpdate Repository' partition exists... - [Info] Initiating deletion of 'NetBackup VxUpdate Repository' storage partition... - [Info] Removing the mount point for the 'NetBackup VxUpdate Repository' partition '0'... - [Info] Deleting the 'NetBackup VxUpdate Repository' partition '0'... - [Info] Checking whether the 'AdvancedDisk' partition exists... - [Info] Initiating deletion of 'AdvancedDisk' storage partition... - [Info] Removing the mount point for the 'AdvancedDisk' partition '0'... - [Info] Deleting the 'AdvancedDisk' partition '0'... - [Info] Checking whether the 'NetBackup Cloud Catalyst Cache' partition exists... - [Info] The 'NetBackup Cloud Catalyst Cache' partition does not exist. - [Info] Optimized Share Reserve does not exist. - [Info] Removing the storage configuration... - [Info] Starting NetBackup processes... (6 min approx) - [Info] Successfully started NetBackup services. Rebooting the appliance now... - [Info] Rebooting appliance to complete the reset. Please reconnect to the appliance shell menu to continue using this appliance. Broadcast message from root@n40-h129 (pts/1) (Sun Jan 12 17:55:22 2020): The system is going down for reboot NOW!