guoh321 发表于 2013-5-3 10:17:20

虚拟机备份报错

我用ghettoVCB.sh备份我的虚拟机,用的是nfs存储,我备份经常出问题,下面是其中的一个ghettoVCB的log,
2013-03-04 19:38:11 -- info: Initiate backup for Xuchang_229.79                                                   
2013-03-04 19:38:11 -- info: Creating Snapshot "ghettoVCB-snapshot-2013-03-04" for Xuchang_229.79                  
Destination disk format: VMFS thin-provisioned                                                                     
Cloning disk '/vmfs/volumes/datastore3-229.180/Xuchang_229.79/Xuchang_229.79.vmdk'...                              
^MClone: 10% done.^MClone: 11% done.^MClone: 12% done.^MClone: 13% done.^MClone: 14% done.^MClone: 15% done.^MClone
                                                                                                                  
2013-03-04 20:29:37 -- info: ERROR: error in backing up of "/vmfs/volumes/datastore3-229.180/Xuchang_229.79/Xuchang
Failed to clone object parameters                                                                                 
Destination disk format: VMFS thin-provisioned                                                                     
                                                                                                                  
2013-03-04 20:29:37 -- info: ERROR: error in backing up of "/vmfs/volumes/datastore3-229.180/Xuchang_229.79/centos5
2013-03-04 20:30:18 -- info: Removing snapshot from Xuchang_229.79 ...                                             
2013-03-04 20:30:19 -- info: Backup Duration: 52.13 Minutes                                                      
2013-03-04 20:30:19 -- info: ERROR: Unable to backup Xuchang_229.79 due to error in VMDK backup!
我的nfs也报错,日志如下
kernel: rpc-srv/tcp: nfsd: got error -104 when sending 140 bytes - shutting down socket
我不清楚是哪个出现问题导致备份失败的,
nfs报错基本上天天有,但备份报错不是天天有!请高手指教!谢谢

winxp2000 发表于 2013-5-3 11:15:28

Failed to clone object parameters
你要检测一下你的NAS是不是没有足够的空间

guoh321 发表于 2013-5-3 15:26:16

nas 是网络存储吗,我的网络存储nfs的存储空间有足够的空间!!

dilidolo 发表于 2013-5-3 15:37:22

你nfs服务器用的什么系统?可能nfsd的资源不够,需要优化内核参数

guoh321 发表于 2013-5-3 15:41:05

我的nfs用的centos5.6 64位系统,我怀疑也跟内核有关系或者需要优化nfs,不知道怎么优化!

dilidolo 发表于 2013-5-3 15:45:46

仅作参考
http://veerapen.blogspot.ca/2011 ... -linux-rhel-54.html
顺便说一句,俺不喜欢datastore和vm名用很多符号和中文,你可能会碰到意想不到的问题。

dyitdev 发表于 2013-5-3 15:46:00

试着用以下两个办法解决:
a) Increased TCP buffering on the server and the two busiest clients with the following tunes:
# increase Linux TCP buffer limits
net.core.rmem_max = 8388608
net.core.wmem_max = 8388608
# increase Linux autotuning TCP buffer limits
net.ipv4.tcp_rmem = 32768 87380 8388608
net.ipv4.tcp_wmem = 16384 65536 8388608
net.ipv4.tcp_mem = 8388608 8388608 8388608
b) Upgraded the two most busy clients to kernel 2.4.21-37.
a办法操作步骤:
Change /etc/sysctl.conf again Add:
net.core.wmem_default = 524288
net.core.rmem_default = 524288
net.ipv4.tcp_window_scaling = 1
can do this live by changing /etc/sysctl.conf
sysctl -p

guoh321 发表于 2013-5-3 15:56:51


此问题在内核的什么问题,能具体说说吗!解决的办是增加了限制吗??谢谢

dyitdev 发表于 2013-5-3 15:46:00


可能原因:缓冲区大小不够
办法:      Increased TCP buffering on the server,通过调整设置参数解决

guoh321 发表于 2013-5-3 16:09:10


我试试,多谢,
页: [1]
查看完整版本: 虚拟机备份报错