交换分区步骤说明:新建分区-类型选择swap类型—>kpartx –a /dev/sda5àmkswapàblkid /dev/sda5àswapon –help—>/etc/fstab 命令解释:
1. 新建分区:
2. 格式化/dev/sd5为swap分区类型 3. 验证,已经挂载成功 4. 修改Priority ,优先级的值在0-32767,值越高,优先级越高。 -p, --priority priority Specify the priority of the swap device. priority is a value between 0 and 32767. Higher numbers indicate higher priority. See swapon(2) for a full description of swap priorities. Add pri=value to the option field of /etc/fstab for use with swapon -a. 5. 交换文件 6. 修改交换文件的优先级 PS:需要注意的是,每新增交换分区或者交换文件的时候,priority都会发生变化,所有一新增,就需修改priority |
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....