PlateSpin 完全复制由于LVM没有可用空闲空间导致失败

简介:

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

image

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.

相关文章
|
4月前
|
监控 Linux
在Linux中,如何检查磁盘使用情况和剩余空间?
在Linux中,如何检查磁盘使用情况和剩余空间?
|
存储 关系型数据库 MySQL
空闲空间管理和文件系统结构的优化策略
对于有科班背景的读者,可以跳过本系列文章。这些文章的主要目的是通过简单易懂的汇总,帮助非科班出身的读者理解底层知识,进一步了解为什么在面试中会涉及这些底层问题。否则,某些概念将始终无法理解。这些计算机基础文章将为你打通知识的任督二脉,祝你在编程领域中取得成功!
空闲空间管理和文件系统结构的优化策略
|
7月前
|
存储 算法 Java
某操纵系统采用可变分区分配存储管理方法,用户区为512K且始址为0,用空闲分区表管理空闲分区。若分配是采用分配空闲区低地址部分的方案,且初始时用户区的512K空间空闲,对下述申请序列:申请300K,申
某操纵系统采用可变分区分配存储管理方法,用户区为512K且始址为0,用空闲分区表管理空闲分区。若分配是采用分配空闲区低地址部分的方案,且初始时用户区的512K空间空闲,对下述申请序列:申请300K,申
165 0
|
API 索引
主机磁盘使用率超过85%导致es索引变为只读模式
主机磁盘使用率超过85%导致es索引变为只读模式
408 0
|
算法 Linux Windows
如何找到系统里的重复文件,快速释放磁盘空间?
不管是 Windows 电脑还是 Linux 电脑,在使用的过程中,或多或少都会留下很多重复的文件。这些文件不仅会占用我们的磁盘,还会拖累我们的系统,所以,很有必要干掉这些重复的文件。
367 0
如何找到系统里的重复文件,快速释放磁盘空间?
磁盘满了,为啥du却显示还有很大空间?
今天有个实习生问了我一个诡异的问题,“线下一台磁盘大小32G的开发机(虚拟机)打不出日志”,把追查过程和大家分享一下。
653 0
|
C#
C#检查文件是否被占用
第一种方法: using System.IO; using System.Runtime.InteropServices; [DllImport("kernel32.dll")] public static extern IntPtr _lopen(string lpPathName, int iReadWrite); [DllImport("kernel32.
1290 0
|
Shell Linux 存储
磁盘格式化/磁盘挂载/手动增加swap空间
  4.5/4.6 磁盘格式化  4.7/4.8 磁盘挂载 4.9 手动增加swap空间     磁盘格式化  查看centos7支持的文件系统格式 cat  /etc/filesystem,centos7默认的文件系统格式xfs     ce...
1564 0
|
Unix 应用服务中间件 Linux