使用PlateSpin复制居然会由于LVM的卷组VG没有空闲可用的空间(available free space in the LVM volume group)创建快照而导致失败,特此记录一下:免得每次都将卷组VG里面的空间全部使用完。在进行存储分配、规划时,如果有使用PlateSpin做复制,一定要留意这个事情。

The use of LVM snapshots is the default way of migrating hard drive partitions on LVM logical volumes. Snapshots can be taken quickly and allow for greatest inter-volume consistency.
 
For an LVM snapshot to be created, there needs to be available free space in the LVM volume group of the logical volume to be transferred. Free space in an LVM volume group is space that has not been allocated to any logical volume. The free space within each logical volume is not available for LVM snapshot usage.
 
At the beginning of the volumes transfer stage, the PlateSpin software will create a new LVM snapshot for each LVM volume.
 
The amount of space allocated to each LVM snapshot is based on its relative characteristics (eg. size, usage). The software will attempt to create snapshots of the appropriate size that will maximize the chance of success during the transfer. In some cases, this may not be sufficient.
 
1.       In some cases, a snapshot of a logical volume will not be created due to insufficient free space.  In this case, the data transfer will automatically fallback to using the block-based driver monitoring method for that particular logical volume. (NotEnoughSpaceToCreateLvmSnapshot)
2.       In some cases, the rate of change of data on the volume may be greater than the LVM snapshot can hold during the volume transfer. If this happens, the snapshot will be invalidated and the transfer will fail. (LvmSnapshotFailure)

Resolution

To resolve either of these possible issues, the system administrator can do one or both of the following:
 
1.       Increase the size of the free space on the volume group. This would typically involve adding a new hard drive to the source workload and extending the volume group to include the new hard drive. Once this is done, the system will be able to make a better decision on snapshot sizes.
2.       Reserve space for use by a snapshot of a logical volume.  This space will be used as the backing store for the snapshot of the logical volume during migration.  To reserve free space, the system administrator must create a new logical volume with a name suffix of "-PS-user-snapshot" in the same volume group. At the beginning of the data transfer, the volume will be temporarily replaced by a snapshot of the same size. At the completion of the data transfer, the snapshot will be deleted, and the “reserved” volume will be recreated.
 
For example, to reserve 200MB for an LVM snapshot for a volume named “/dev/myVG/myLV”, the system administrator must create a new volume with the name “/dev/myVG/myLV-PS-user-snapshot”.
 
# lvcreate -L 200MB -n myLV-PS-user-snapshost myVG
 
This will create a 200MB volume named myLV-PS-user-snapshot on the myVG volume group.

参考资料:

https://www.netiq.com/support/kb/doc.php?id=7005872

PlateSpin 完全复制由于LVM没有可用空闲空间导致失败的更多相关文章

  1. MongoDB如何释放空闲空间?

    当我们从MongoDB中删除文档或集合时,MongoDB并不会将已经占用了的磁盘空间释放,它会一直维护已经占用了磁盘空间的数据文件,尽管数据文件中可能存在大大小小的空记录列表(empty record ...

  2. lvm实现服务器磁盘空间合并

    1    LVM实现将2块磁盘总空间“合二为一”并挂载到同一目录 1.1   磁盘分区 首先查看磁盘信息,对未分区的磁盘进行分区处理(选择你要合并的盘,这里是对vdb.vdc). 如上图,可以看出有5 ...

  3. lvresize 调整LVM逻辑卷的空间大小,可以增大空间和缩小空间

    lvresize 相关命令:lvreduce,lvextend,lvdisplay,lvcreate,lvremove,lvscan   lvresize指令:调整逻辑卷空间大小[语    法]lvr ...

  4. 无法为数据库 XXX 中的对象XXX 分配空间,因为 'PRIMARY' 文件组已满。请删除不需要的文件、删除文件组中的对象、将其他文件添加到文件组或为文件组中的现有文件启用自动增长,以便增加可用磁盘空间。

    无法为数据库 XXX 中的对象XXX 分配空间,因为 'PRIMARY' 文件组已满.请删除不需要的文件.删除文件组中的对象.将其他文件添加到文件组或为文件组中的现有文件启用自动增长,以便增加可用磁盘 ...

  5. 使用g++编译器扩大程序可用栈空间

    如题,在写一些程序的时候我们有时会开一个比较大的数组或进行层数较多的dfs.这时候,程序常常会报错,于是就很无奈. 其实,虽然Windows给程序的默认栈空间比较小,我们还是有办法去扩大这个程序运行栈 ...

  6. mysql5.6主主复制及keepalived 高可用

    1.实验目的 mysql服务器作为生产环境中使用最广泛的数据库软件,以其开源性,稳定性而广泛使用,但同时由于数据存储,读写频率高,极易造成数据库出错,从而给企业造成不可挽回的损失,我们除了做好数据库的 ...

  7. 利用Mongodb的复制集搭建高可用分片,Replica Sets + Sharding的搭建过程

    参考资料 reference:  http://mongodb.blog.51cto.com/1071559/740131  http://docs.mongodb.org/manual/tutori ...

  8. MySQL主主复制+MMM实现高可用

    架构图: 环境规划 角色 IP VIP 用途 DB1 192.168.56.101 192.168.56.111/113 主Master提供wirte+read DB2 192.168.56.102 ...

  9. windows 32位系统中进程最大可用内存空间为3GB (转)

    http://msdn.microsoft.com/zh-cn/library/ms189334.aspx 进程地址空间 所有 32 位应用程序都有 4 GB 的进程地址空间(32 位地址最多可以映射 ...

随机推荐

  1. iOS阶段学习第15天笔记(NSDictionary与NSMutableDictionary 字典)

    iOS学习(OC语言)知识点整理 一.OC中的字典 1)字典:是一个容器对象,元素是以键-值对(key-value)形式存放的,key和value是任意类型的对象,key是唯一的,value可以重复 ...

  2. Windows Server 2012中配置AD域服务

    1.安装完AD域服务后,我们返回服务器管理器界面,点击"将此服务器提升为域控制器",选择"添加新林". 输入域名称:contoso.com 2.按图中所示选择林 ...

  3. 设置surfaceView的背景为透明

    1. [代码][Java]代码    下面三句话加上就好了. surfaceView.setZOrderOnTop(true); surfaceView.setEGLConfigChooser(, , ...

  4. ahjesus配置vsftpd虚拟用户在Ubuntu

    网上搜索了很多资料,过时,不全,货不对版 已下步骤亲测有效,不包含匿名用户登录 1.新建/home/loguser.txt 并填充内容,格式如下 用户名密码用户名密码用户名密码 2.生成db文件用于用 ...

  5. 关于线上的bug什么时候修复的思考

    这里系统专门指的是那种用户量大的系统,比如有几百万或者上千万的注册会员.因为小系统因为用户量少,不存在这种思考,考虑有时候是多余的.另外还有内部系统,给自己公司内部人员使用的,即便是出现了问题,也不会 ...

  6. CentOS 6.5下Redis安装详细步骤

    Redis简介: Redis是一个开源的使用ANSI C语言编写.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API.从2010年3月15日起,Redis的开发工 ...

  7. Java Selenium封装--RemoteWebElement

    package com.liuke.selenium.driver; import java.sql.SQLException; import java.util.List; import org.j ...

  8. ajax的再次封装!(改进版) —— new与不 new 有啥区别?

    生命不息重构不止! 上一篇写了一下我对ajax的再次封装的方法,收到了很多有价值的回复,比如有童鞋建议用$.extend,一开始还以为要做成插件呢,后来才知道,原来这个东东还可以实现合并.省着自己再去 ...

  9. bootstrap的下拉框在firefox界面不友好的处理

    http://output.jsbin.com/titaki 以上这个链接在firefix浏览器打开就会发现里面有个小容器,而且下拉按钮样式跟不友好 上谷歌查了一下 1.小容器可以利用select:p ...

  10. bootstrap源码分析之scrollspy(滚动侦听)

    源码文件: Scrollspy.js 实现功能 1.当滚动区域内设置的hashkey距离顶点到有效位置时,就关联设置其导航上的指定项2.导航必须是 .nav > li > a 结构,并且a ...