开始新对话

此帖子已超过 5 年

Solved!

Go to Solution

4709

2017年4月17日 02:00

Networker save命令具体用法

Hi all,

我想问一下Netowrker 的备份命令怎用?有没有具体的实例提供一下.命令手册写的太笼统了.

78 消息

2017年4月18日 20:00

这段报错信息是等设备超时。因为日志没有render,没有办法看出具体的池的名字:

71191 1492569016 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 15 %s %s event: %s 3 11 10 2932:Media 11 13 19361:Waiting 49 155 67897 58 Waiting for %u writable volume(s) to %s pool '%s' %s on %s 5 5 1 1 0 6 backup 27 14 GZDailyPool01C 0 7 tape(s) 12 29 pwchfsgz02.r1-core.r1.aig.net

这个是您客户端的配置问题了。您看看这个客户端是不是没有对应可以用的设备可以保存备份数据的。如果配置正常,不会出现等设备的情况。

2 Intern

 • 

4K 消息

2017年4月17日 19:00

官方文档有一些简单的用例,觉得大段英文麻烦可以看看8.2中文版手册:

NetWorker 8.2 管理指南

NetWorker 8.2 命令参考指南

比如:

在 UNIX 上执行手动备份 从系统提示符处,使用 save 程序来执行手动备份。 例如,要将 /tmp/myfile.txt 备份到名为 jupiter 的服务器,请键入: save -s jupiter /tmp/myfile.txt

关于这段,论坛还有过延伸讨论,有兴趣可以参考下:/nsr/res/servers文件不存在,如何选择备份服务器

更多NetWorker中文手册:NetWorker中文技术资料大全(新增8.2中文文档)

1 Rookie

 • 

79 消息

2017年4月17日 20:00

save [ -BEiKLnquSVvx ] [ -s 服务器 ] [ -J 存储节点 ]

[ -c 客户机名称 ] [ -N 名称 ] [ -e 过期 ]

[ -f dirfile ] [ -o save_operations ] [ -b 池 ] [ -F 文件 ]

[ -I 输入文件 ] [ -g 组 ] [ -l 级别 ] [ -t 日期 ]

[ -m 伪装 ] [ -w 浏览时间 ] [ -y 保留时间 ]

[ -W 宽度 ] [ 路径 ... ]

savepnpc

-s 服务器 -g 组 [ -BEiKLnquSVvx ] [ -J 存储节点 ]

[ -c 客户机名称 ] [ -N 名称 ] [ -e 过期 ]

[ -f dirfile ] [ -b 池 ] [ -F 文件 ] [ -I 输入文件 ]

[ -l 级别 ] [ -t 日期 ] [ -m 伪装 ]

[ -w 浏览时间 ] [ -y 保留时间 ] [ -W 宽度 ]

[ 路径 ... ]

命令的解析我有,我就是想要一个具体的写法例子。

我现在是有客户端无法进行文件级的硬盘的备份。我想用命令试试,就是不知道具体怎么写这个命令。数据是备份到磁带机上的。

2 Intern

 • 

4K 消息

2017年4月18日 01:00

GUI上备份失败的东西估计CLI一样会出错,还是先从分析错误日志来入手吧。

1 Rookie

 • 

79 消息

2017年4月18日 05:00

error.jpg

使用命令后出现上面的报错信息。我加了其中的提示的参数还是不行。使用管理平台运行任务提示连接超时。

savegrp.log中的信息

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: NetWorker savegroup: (alert) GZBAK01DailyC aborted, Total 2 client(s), 2 Failed. See group completion details for more information.

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: Failed: chgpwr8cfax01, pwchfsgz02.r1-core.r1.aig.net

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: Start time:   Tue Apr 18 16:17:49 2017

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: End time:     Tue Apr 18 16:26:44 2017

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: --- Unsuccessful Save Sets ---

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net:   chgpwr8cfax01:D:\Test: retried 1 times.

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: * chgpwr8cfax01:index Termination request was sent to job 64026 as requested; Reason given: Aborted

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: * chgpwr8cfax01:index chgpwr8cfax01:chgpwr8cfax01:index aborted.

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: --- Successful Save Sets ---

Apr 18 16:26:44 pwchfsgz02.r1-core.r1.aig.net: * chgpwr8cfax01:savefs savefs chgpwr8cfax01: succeeded.

savepnpc.log中的信息

4/18/2017 3:55:26 PM preclntsave: Starting up the precmds.

4/18/2017 3:55:27 PM preclntsave: All command(s) ran successfully.

4/18/2017 3:56:30 PM pstclntsave: Savegroup is not running.

4/18/2017 3:56:30 PM pstclntsave: All savesets on the worklist are done.

4/18/2017 3:56:30 PM pstclntsave: Starting up the pstcmds.

4/18/2017 3:56:31 PM pstclntsave: All command(s) ran successfully.

4/18/2017 3:56:31 PM pstclntsave: Exited.

4/18/2017 3:56:31 PM pstclntsave: Pstcmds completed. The group temp file and group precmd temp file deleted.

4/18/2017 4:27:02 PM preclntsave: Starting up the precmds.

4/18/2017 4:27:03 PM preclntsave: All command(s) ran successfully.

4/18/2017 4:28:06 PM pstclntsave: Savegroup is not running.

4/18/2017 4:28:06 PM pstclntsave: All savesets on the worklist are done.

4/18/2017 4:28:06 PM pstclntsave: Starting up the pstcmds.

4/18/2017 4:28:07 PM pstclntsave: All command(s) ran successfully.

4/18/2017 4:28:07 PM pstclntsave: Exited.

4/18/2017 4:28:07 PM pstclntsave: Pstcmds completed. The group temp file and group precmd temp file deleted.

4/18/2017 4:28:58 PM preclntsave: Starting up the precmds.

4/18/2017 4:28:59 PM preclntsave: All command(s) ran successfully.

4/18/2017 4:29:45 PM preclntsave: Group temp file exists(precmds done).

4/18/2017 4:29:45 PM preclntsave: Group precmds ran successfully.

4/18/2017 4:29:59 PM pstclntsave: Savegroup is not running.

4/18/2017 4:29:59 PM pstclntsave: All savesets on the worklist are done.

4/18/2017 4:29:59 PM pstclntsave: Starting up the pstcmds.

4/18/2017 4:30:00 PM pstclntsave: All command(s) ran successfully.

4/18/2017 4:30:00 PM pstclntsave: Exited.

4/18/2017 4:30:00 PM pstclntsave: Pstcmds completed. The group temp file and group precmd temp file deleted.

78 消息

2017年4月18日 19:00

Hi Wolf,

根据您提供的截图信息,您使用的是savepnpc的命令。这个命令是我们在备份之前进行的操作。也不是备份命令。所以您可以需要确认您的需求是什么。

一般来说您如果需要进行定时备份,那么nmc窗口和savegrp可以实现,这个命令是在备份服务器发起的。如:savegrp -c client -G group_name

如果您需要手动备份,那么可以在备份客户端运行save命令。如:save -s server_name -b pool_name full_path_of_the_file

所以您看看您具体的需求是什么,再确实使用对应的命令行来发起备份。

Best Regards

Mandy

2 Intern

 • 

4K 消息

2017年4月18日 19:00

NetWorker备份和恢复出问题的话主要是看daemon.raw文件:

Networker日志文件及说明

如何使用nsr_render_log查看NetWorker日志文件

开NetWorker case之前建议准备好的日志文件和信息

Windows下save命令报错的问题我帮你去咨询一下NW工程师,CLI一般Unix下用的多些。

1 Rookie

 • 

79 消息

2017年4月18日 19:00

67246:Task Manager 11 9 2394:Info 49 97 103452 36 Skipping '%s' '%s' based on schedule 2 11 14 67248:NSR task 42 21 DefaultReportHomeTask

71193 1492560000 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 9 %s %s: %s 3 11 18 67246:Task Manager 11 9 2394:Info 49 98 97380 32 '%s' '%s' succeeded. Job id '%u' 3 11 14 67248:NSR task 42 21 DefaultReportHomeTask 5 1 0

82327 1492561247 1 9 0 304 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 34 Starting %s purge of jobs database 1 0 4 full

93514 1492561247 1 9 0 304 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 67 Completed %s database purge %s in %d min %d sec. Records purged: %d 5 0 4 full 0 0  1 1 0 1 1 1 1 1 2

82327 1492564851 1 9 0 6988 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 34 Starting %s purge of jobs database 1 0 4 full

93514 1492564851 1 9 0 6988 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 67 Completed %s database purge %s in %d min %d sec. Records purged: %d 5 0 4 full 0 0  1 1 0 1 1 1 1 1 1

82327 1492568454 1 9 0 1148 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 34 Starting %s purge of jobs database 1 0 4 full

93514 1492568454 1 9 0 1148 5068 0 pwchfsgz02.r1-core.r1.aig.net nsrjobd JOBS notice 67 Completed %s database purge %s in %d min %d sec. Records purged: %d 5 0 4 full 0 0  1 1 0 1 1 1 1 1 0

71193 1492569010 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 9 %s %s: %s 3 11 14 2934:Savegroup 11 9 2394:Info 49 115 77560 49 Added '%s' to the group '%s' for bootstrap backup 2 0 29 pwchfsgz02.r1-core.r1.aig.net 26 13 GZBAK01DailyC

77560 1492569010 0 0 2 6816 8116 0 pwchfsgz02.r1-core.r1.aig.net savegrp NSR info 49 Added '%s' to the group '%s' for bootstrap backup 2 0 29 pwchfsgz02.r1-core.r1.aig.net 26 13 GZBAK01DailyC

71193 1492569010 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 9 %s %s: %s 3 11 14 2934:Savegroup 11 9 2394:Info 49 84 108210 46 Starting the group '%s', which has %d clients. 2 26 13 GZBAK01DailyC 1 1 2

128137 1492569015 0 0 2 6816 8116 0 pwchfsgz02.r1-core.r1.aig.net savegrp NSR info 63 Group %s waiting for %d jobs (%d awaiting restart) to complete. 3 26 13 GZBAK01DailyC 1 1 1 1 1 0

71193 1492569015 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 9 %s %s: %s 3 11 14 2934:Savegroup 11 9 2394:Info 49 108 128137 64 Group %s waiting for %d jobs (%d awaiting restart) to complete.  3 26 13 GZBAK01DailyC 1 1 1 1 1 0

71191 1492569016 0 0 0 3840 3836 0 pwchfsgz02.r1-core.r1.aig.net nsrd NSR info 15 %s %s event: %s 3 11 10 2932:Media 11 13 19361:Waiting 49 155 67897 58 Waiting for %u writable volume(s) to %s pool '%s' %s on %s 5 5 1 1 0 6 backup 27 14 GZDailyPool01C 0 7 tape(s) 12 29 pwchfsgz02.r1-core.r1.aig.net

日志里只看到这个些信息,这个具体怎么看呢?

1 Rookie

 • 

79 消息

2017年4月18日 20:00

我是想备份这这个客户端的数据,但是启动备份的时候没有任何的动作,只是报超时,和index没有创建。所以我想试试看用手动命令看看有没有具体的错误信息可以看看。

2 Intern

 • 

4K 消息

2017年4月18日 20:00

从这段里我是没看出来明显报错。上文您说的“使用管理平台运行任务提示连接超时”这个错误,有完整错误提示或错误截屏吗?

另外CLI的问题邀请来了我们的Mandy回答你了哦~

1 Rookie

 • 

79 消息

2017年4月18日 20:00

是你说的这个问题设备对应不对,问题解决了谢谢。我在做进一步的测试

78 消息

2017年4月18日 22:00

好的。有问题欢迎您随时在我们论坛提问。

找不到事件!

Top