- 论坛徽章:
- 0
|
看了回复,赶紧操作一下
我再没umount lvol7的状况下lvextend lvol7 到4096M
我按janson版版指点用lvreduce恢复
我进入单用户模式,umount lvol7(/usr)不成功,用fuser -ku -c /usr后在umount还是不行,手动kill在/usr上的进程还是无法UMOUNT
没办法只能在没有umount的状况下lvreduce
vgdisplay显示FREE PE 501
lvdisplay lvol7 LV size 4096
bdf 显示lvol7 为1060864K
先lvreduce -L 3072 /dev/vg00/lvol7
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg00/lvol7" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
ok,成功。
然后我在lvreduce -L 1024 /dev/vg00/lvol7
The Logical Volume has a mounted filesystem on it.
Logical volume "/dev/vg00/lvol7" is not reduced.
这是为啥啊?刚刚使用lvreduce,无需umount也可以的啊?
在瞎试一下lvreduce -L 2048 /dev/vg00/lvol7
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg00/lvol7" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
明白了原来只要是没有extendfs的空间都可以在没有umount的状况下lvreduce
然后我就# lvreduce -L 1036 /dev/vg00/lvol7
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg00/lvol7" has been successfully reduced.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
OK。成功LVREDUCE,第一步搞定!
然后应该restore数据,restore数据是否是将LVREDUCE出来的空间在划回给LVOL7,然后在extendfs就可以了。
问题是我现在没法umount lvol7,以前都能很顺利的UMOUNT usr
几位老大,麻烦你们在指点一二!
非常感谢! |
|