How to resize /dev/mapper/centos-home
来源:互联网 发布:mac怎么安装阿里旺旺 编辑:程序博客网 时间:2024/06/16 19:54
• backup the contents of /home
> tar -czvf /root/home.tgz -C /home .
• test the backup
> tar -tvf /root/home.tgz
• unmount home
> umount /dev/mapper/centos-home
• remove the home logical volume
> lvremove /dev/mapper/centos-home
• recreate a new 400GB logical volume for /home, format and mount it
> lvcreate -L 400GB -n home centos> mkfs.xfs /dev/centos/home> mount /dev/mapper/centos-home
• extend your /root volume with ALL of the remaining space and resize (-r) the file system while doing so
> lvextend -r -l +100%FREE /dev/mapper/centos-root
• restore your backup
> tar -xzvf /root/home.tgz -C /home
• check /etc/fstab for any mapping of /home volume. IF it is using UUID you should update the UUID portion. (Since we created a new volume, UUID has changed)
Copied from:
http://serverfault.com/questions/771921/how-to-shrink-home-and-add-more-space-on-centos7
0 0
- How to resize /dev/mapper/centos-home
- 修复 failed to start file system check on /dev/mapper/fedora-home
- How to resize disk partitions in ubuntu
- how to change home to another partition
- centos linux,/dev/mapper/vg_pvm-lv_root 磁盘满/root full
- "multipath -r" momentarily cause /dev/mapper/<wwid> to disappear
- How To Flip Websites Home Study Course
- Fedora 19: How to resize/extend (LVM) partition?
- How To Resize ext3 Partitions Without Losing Data
- 转 How To Resize the Online Redo Logfiles
- How to dev Gstreamer In Windows
- How to dev Gstreamer In Windows
- [android-dev] How to create TabActivity
- How to dev Gstreamer In Windows
- How to debug in Dev C++?
- [DEV]How to compile TWRP touch recovery
- How to become a qualified dev&ops
- how to upgrade CentOS kernel
- Android 自定义控件-自定义进度条。
- linux内核启动地址的确定
- C++第1次实验-【项目2】分段函数求值
- 一致性Hash算法
- Linux IP_FORWARD说明
- How to resize /dev/mapper/centos-home
- MySql学习(二)
- Python Beautiful Soup+requests实现爬虫
- PAT 1107
- MySQL数据库编程开发规范
- 如何在 Mac 上查看 Wi-Fi 密码
- mybatis 动态 SQL
- ADMM算法求解一个简单的例子
- PWA 程序开发实践