需求:
根目录磁盘空间只有50G
/home磁盘有300G
想将/home的200G扩展到根目录让它变成250G
具体挂载点如下:
root@node:~# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/vda3 49G 45G 1.6G 97% /
/dev/vdb1 296G 51G 230G 18% /home
不是centos系统,服务器信息如下:
Operating System: Linx GNU/Linux 6.0.80 (jessie)
Kernel: Linux 4.9.0-0.bpo.1-linx-security-amd64
执行了"umount /home"后,后面lvremove和lvextend命令都执行不了,不能按照centos步骤操作
查看fdisk如下(这里看到的已经是执行"umount /home"后的状态)
root@node:~# fdisk -l
Disk /dev/vda: 80 GiB, 85899345920 bytes, 167772160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7d6833d7
Device Boot Start End Sectors Size Id Type
/dev/vda1 * 2048 976895 974848 476M 83 Linux
/dev/vda2 976896 63477759 62500864 29.8G 82 Linux swap / Solaris
/dev/vda3 63477760 167770111 104292352 49.7G 83 Linux
Disk /dev/vdb: 300 GiB, 322122547200 bytes, 629145600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5d2844a9
Device Boot Start End Sectors Size Id Type
/dev/vdb1 2048 629145599 629143552 300G 83 Linux
哪位知道具体怎么操作,最好有详细步骤:
1. 现在已经"umount /home"了,"df -h"看不到home挂载点了
2. /dev/vdb1这个空间应该是闲置的,怎么划分到/dev/vda3下,扩大根目录变成250G