本文中含有需要您注意的重要提示信息,忽略该信息可能对您的业务造成影响,请务必仔细阅读。
问题描述
在操作系统迁移时,出错提示以下信息:
- Available system memory is less than 300M, memory requirement is not satisfied. 
- Total system memory is less than 512M, memory requirement is not satisfied. 
- Available system storage is less than 2G, storge requirement is not satisfied. 
- To ensure the migration, this machine must have 2G free space on disk and 300MB RAM available. 
- To ensure the migration, this machine must have 512MB RAM at least totally. 
- To ensure the migration, this machine must have 4G free space on disk and 600M RAM available 
- Memory detected: *MiB, required: *MiB 
问题原因
待迁移的操作系统的根目录磁盘空间不足或者内存不足,导致操作系统迁移失败。不同报错信息对应的问题原因如下表所示:
| 迁移场景 | 报错信息 | 问题原因 | 
| 
 | Available system memory is less than 300M, memory requirement is not satisfied. | 需要确保服务器可用内存大于300 MiB。 | 
| Total system memory is less than 512M, memory requirement is not satisfied. | 需要确保服务器总内存大于512 MiB。 | |
| Available system storage is less than 2G, storge requirement is not satisfied. | 需要确保服务器系统盘有2 GiB的可用空间。 | |
| 
 | To ensure the migration, this machine must have 2G free space on disk and 300MB RAM available. | 需要确保服务器有2 GiB的系统盘可用空间和300 MiB的可用内存。 | 
| To ensure the migration, this machine must have 512MB RAM at least totally. | 需要确保服务器总内存大于512 MiB。 | |
| 
 | To ensure the migration, this machine must have 4G free space on disk and 600M RAM available | 需要确保服务器有4 GiB的系统盘可用空间和600 MiB的可用内存。 | 
| Memory detected: *MiB, required: *MiB | 
 | 
解决方案
- 远程连接ECS实例。具体操作,请参见通过密码或密钥认证登录Linux实例。 
- 清理磁盘空间或者暂停业务程序。 - 根目录磁盘空间不足 - 可以通过尝试清理 - /tmp和- /var/log来释放磁盘空间。警告- 删除文件时,请确保文件不再需要,避免对您的业务造成影响。 - rm -rf /tmp/* rm -rf /var/log/syslog.* #例如删除旧的syslog文件
- 内存不足 - 可以先暂停部分业务程序,例如,暂停Java程序或者Nginx进程等来释放内存空间,等迁移完成后再手动拉起被暂停的业务进程。 - ps aux | grep nginx #查看Nginx进程PID kill -SIGSTOP <nginx-pid> #暂停Nginx进程
 
- 问题排查解决后,运行SMC客户端再试。具体操作,请参见运行SMC客户端。 
- 如果暂停了进程,手动拉起被暂停的业务进程。 - 以拉起Nginx进程为例。 - kill -SIGCONT <nginx-pid>