在做vxsnap addmir时报错如下:

#> vxsnap -g OLS_DATA_DG -b addmir OLS_DATA_ACC_P mirvol=OLS_DATA_ACC_SM1
VxVM vxsnap ERROR V-5-1-0 Volume OLS_DATA_ACC_SM1 in DG OLS_DATA_DG cannot be linked to volume OLS_DATA_ACC_P in DG OLS_DATA_DG due to size/regionsize incompatibility

VxVM vxsnap ERROR V-5-1-12745 Unable to create mirror relationship between volume OLS_DATA_ACC_P (dg OLS_DATA_DG) and volume OLS_DATA_ACC_SM1 (dg OLS_DATA_DG)

报错里提示原卷和镜像卷的regionsize不匹配。先来看一下regionsize的作用:

The value of the regionsize attribute specifies the size of the tracked regions in the volume. A write to a region is tracked by setting a bit in the change map. The default value is 64k (64KB).A smaller value requires more disk space for the change maps, but the finer granularity provides faster resynchronization.

regionsize主要是用于增量同步的。VXVM按照regionsize值把一个卷划分为很多个region,然后用DCO change map的1个bit代表一个region. 当一个region的数据发生改变后,change map中的对应bit就设置为1。因此通过chang map就可以知道哪些region的数据发生了变化。在快照刷新时,只需要把对应region中的数据同步到快照卷中即可,这样就实现了快照的增量刷新。

 

创建快照时,镜像卷需要与原卷的regionsize保持一致。本例中的报错就是由于regionsize不一致造成的。

解决方法如下:

  • 先删除镜像卷的DCO

#> vxsnap -g OLS_DATA_DG unprepare OLS_DATA_ACC_SM1

  • 查询原卷regionsize大小

#> vxprint -g OLS_DATA_DG -F%dco_name OLS_DATA_ACC_P

OLS_DATA_ACC_P_dco

查询原卷DCO名称

#> vxprint -g OLS_DATA_DG -F%regionsz OLS_DATA_ACC_P_dco

32

查询原卷regionsize大小,此处单位是block (1个block = 512 bytes)

  • 重建镜像卷的DCO, 使regionsize与原卷一致

#> vxsnap -g OLS_DATA_DG prepare OLS_DATA_ACC_SM1 regionsize=32

  • vxsnap addmir

#> vxsnap -g OLS_DATA_DG -b addmir OLS_DATA_ACC_P mirvol=OLS_DATA_ACC_SM1

VxVM vxsnap ERROR V-5-1-0 Volume cannot be linked due to size/regionsize incompatibility的更多相关文章

  1. ORA-00600: internal error code, arguments: [2662], [0], [1106971], [0], [1107731], [12583040]

    今天是2014-06-06,在进行数据库恢复的时候出现了一个久违的ora-600 [2662]错误.特整理例如以下: 问题描写叙述: system及数据文件误删,採用恢复数据文件的方式将数据库恢复到開 ...

  2. 07 oracle 归档模式 inactive/current redo log损坏修复--以及错误ORA-00600: internal error code, arguments: [2663], [0], [9710724], [0], [9711142], [], [], [], [], [], [], []

    07 oracle 归档模式 inactive/current redo log损坏修复--以及错误ORA-00600: internal error code, arguments: [2663], ...

  3. [ios] 定位报错Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"

    Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error ...

  4. IOS8解决获取位置坐标信息出错(Error Domain=kCLErrorDomain Code=0)(转)

    标题:IOS8解决获取位置坐标信息出错(Error Domain=kCLErrorDomain Code=0) 前几天解决了在ios8上无法使用地址位置服务的问题,最近在模拟器上调试发现获取位置坐标信 ...

  5. IOS8解决获取位置坐标信息出错(Error Domain=kCLErrorDomain Code=0)

    最近在模拟器上调试发现获取位置坐标信息的时候会报错,错误信息: didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation ...

  6. caffe 训练时,出现错误:Check failed: error == cudaSuccess (4 vs. 0) unspecified launch failure

    I0415 15:03:37.603461 27311 solver.cpp:42] Solver scaffolding done.I0415 15:03:37.603549 27311 solve ...

  7. Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed.

    地图定位 错误:使用CoreLocation获取地理位置信息,报错 Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be ...

  8. sqlplus 连接数据库报错SP2-0642: SQL*Plus internal error state 2130, context 0:0:0

    sqlplus 连接数据库报错SP2-0642: SQL*Plus internal error state 2130, context 0:0:0 问题描述: 使用sqlplus客户端登录数据库,报 ...

  9. nuxt npm run dev 报错Solution to the "Error: listen EADDRINUSE 127.0.0.1:8080"

    Solution to the "Error: listen EADDRINUSE 127.0.0.1:8080" Hello, Just sharing a solution t ...

随机推荐

  1. Spring初学之Spel初配

    Spel又时候可以方便我们为bean的属性赋值,如下配置文件就是常用的一些使用: <?xml version="1.0" encoding="UTF-8" ...

  2. Django---model基础(单表)

    ORM 一.映射关系:           表名<--------------->类名           字段<-------------->属性          表记录& ...

  3. Mac下git安装(使用Xcode)

    (不使用Xcode的出门右转百度其他方法:比如直接安装git软件包.) 一.AppStore 最安全途径:搜索下载Xcode,(需要AppleID). 其他:直接百度Xcode下载. 二.Xcode ...

  4. decimal与 float的区别

      decimal 数据类型最多可存储 38 个数字,所有数字都能够放到小数点的右边.decimal 数据类型存储了一个准确(精确)的数字表达法:不存储值的近似值. 定义 decimal 的列.变量和 ...

  5. php的http数据传输get/post...

    php的http数据传输get/post... 一般有:file_get_contents,curl,fsockopen.... 下面介绍fsockopen: //构造要post的字符串 $argv ...

  6. GitLab删除项目操作

    相关项目:Github删除项目 刚开始找了半天没找到删除按钮在哪,现在记录一下,分享. 第一步:点进入项目 第二步:进入项目Settings 第三步:往下拉,找到Remove,删除即可.

  7. SSM整合(spring、springMVC、mybatis)

    需要用的包: 包括:spring的包.springMVC的包.mybatis的包.数据库驱动包.json相关的包 配置如下,首先是mybatis的配置 <?xml version="1 ...

  8. WebView的简单使用

    activity_main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout ...

  9. TreeView的用法总结

    1.循环往treeview中添加数据 public AuthorNavUserControl() { InitializeComponent(); LoadTrees(MainForm.Project ...

  10. 数据库迁移到Azure SQL Database用户无法登陆的问题

    业务情景:数据库是运维迁移上去的,好像使用了一个工具叫做Microsoft Data Migration Assistant,迁移之后,我的web应用无法连接数据库. 迁移之后的数据库内有User,但 ...