Today I felt happy because I solved a problem on LVM resizing which defeated me last time I came across it.It felt good to conquer it.Now I will describe the problem.
As time goes by,the data on my /home is booming and It is said that the free space of the /home is low.
Here is my partition structure:
lv lv_var250G(mount /var) lv_home200G(mount /home)
vg vg01
pv /dev/sda1
Clearly,my partition is not wise because the /var doesn’t need so many space.
So I wanna shrank the /var and extend the /home.
I tried it in the winter holiday but failed.And finally I have to reinstall the virtual machine.
The right sequence of the LVM_resize is below.
Because the /var stores
- /var 某些大文件的溢出区,比如说各种服务的日志
- /mnt 供用户临时挂载其他文件系统
- /tmp 共用的临时文件存储点
- /lost+found非正常关机留下的“无家可归”的文件
- /proc 虚拟的目录,是系统内存的映射,可以直接访问这个目录来获取系统信息
- /usr 要用到的应用程序和文件几乎都在这个目录
/usr/bin 众多应用