exabr 备份错误一例

来源:这里教程网 时间:2026-03-03 12:44:23 作者:

[root@el01cn01 bin]# ./exabr  backup 10.135.162.200

ExaBR   1.2.6 (b12259) 中间略 Creating snapshot for LVM disk /dev/VolGroup00/LogVol00 Removing LVM snapshot volume /dev/VolGroup00/exabr_snap_LogVol00_201812110938 INTERNAL ERROR: Traceback (most recent call last):   File "./exabr", line 453, in handleCommand     runningPassword, target, module.doCheckType, module.doBackup, backupName)   File "/exalogic-lctools/lib/exabr/exabr_main.py", line 82, in backup     doBackup(targetRepoSubdirPath, user, password, target)   File "/exalogic-lctools/lib/exabr/exabr_cnode.py", line 429, in doBackup     doLVMBackup(obd, user, password, target)   File "/exalogic-lctools/lib/exabr/exabr_generic_oel.py", line 339, in doLVMBackup     LVMBackingUp(obd, user, password, target, lvmUtil, rootvg, rootvol)   File "/exalogic-lctools/lib/exabr/exabr_generic_oel.py", line 416, in LVMBackingUp     mountSnapshotLVM(target, user, password, lvmUtil, snapshotFullName, mountpoint)   File "/exalogic-lctools/lib/exabr/exabr_generic_oel.py", line 349, in mountSnapshotLVM     ret,output = lvmUtil.mountSnapshot(snapshotFullName, mountpoint)   File "/exalogic-lctools/lib/exabr/exabr_lvm.py", line 339, in mountSnapshot     fstype = self.getRootFsType()   File "/exalogic-lctools/lib/exabr/exabr_lvm.py", line 172, in getRootFsType     elements = lines[0].strip().split() TypeError: unsubscriptable object 以上为 exabr 备份时报错信息 mos 上搜索没有结果。 查看  /exalogic-lctools/lib/exabr/exabr_lvm.py  文件的  172 行     168   def getRootFsType(self):     169     cmd = "df -T -P / "     170     output = self.__sshExecute(cmd)     171     lines = self.__getRelevantLines(output, 'Filesystem')     172     elements = lines[0].strip().split()     173     return elements[1] 在这个函数报错。 操作系统执行  df -T -P [root@el01cn01 bin]# df -T -P  文件系统      类型 1024-blocks      Used Available Capacity 挂载点 发现系统是中文的 执行 LANG=”en_US.UTF-8″  LANGUAGE=”en_US:en”  将字符修改为英文,再次进行测试 [root@el01cn01 badf -h Filesystem            Size  Used Avail Use% Mounted on [root@el01cn01 bin]# ./exabr  backup 10.135.162.200 ExaBR   1.2.6 (b12259) Logging to file /root/exabr.log ------------------------ Using backup repository: /exalogic-lcdata/backups Using configuration file: /exalogic-lcdata/backups/exabr.config WARNING: Number of storage node entries doesn't match the number of their ILOMs in configuration file.          Edit the file (/exalogic-lcdata/backups/exabr.config) to fill in the correct values. --------------------------------------------------- Targets: 1 total Compute node: el01cn01.xx.com.cn --------------------------------------------------- --------------------------------------------------- Backing up Compute node el01cn01.xx.com.cn Destination directory: /exalogic-lcdata/backups/compute_nodes/el01cn01.xx.com.cn/201812111046 --------------------------------------------------- Exalogic install is of type LINUX Starting backup operation using LVM snapshot Creating snapshot for LVM disk /dev/VolGroup00/LogVol00 Exclude list: /tmp,/var/tmp,/var/run,/var/lib/nfs,/sys,/proc,/dev (to override this list, pass comma separated list of paths to --exclude-paths parameter) (Backing up from LVM root volume and /boot) Backing up file system for el01cn01.xx.com.cn (takes a couple of minutes) 修改后备份恢复正常

相关推荐