2.如果直接扩卷 会出现以下信息 # lvextend -l 2500 /dev/vg00/lvol3 lvextend: Not enough free physical extends available. Logical volume "/dev/vg00/lvol3" could not be extended. Failure possible caused by contiguous allocation policy. Failure possible caused by strict allocation policy
3.是因为 it is contiguous/strict
4.有以下两种办法改变 lvol3 (/)
1.back it up, remove it (lvremove), then recreate it - this time without contiguous/strict.
发布评论
评论(6)
1.最简单的,清理根分区。
执行du -kx|sort -n查找占用空间大的文件,能清理的话就清理。
2.如果清理之后还是比较小,只能磁带恢复了。
备份系统,make_tape_recovery -Av
之后启动小机,用磁带机引导重撞系统,将根分区分大点即可。
3.直接扩根,有一定的风险性,不推荐,仅供参考。
新建一个lv,将lvol4上面的文件拷贝到新建的卷上,然后lvremove掉lvol4,之后将lvol4的空间扩给根。
之后使onlineJFS在线扩根即可。
root@rp2470:/#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 103328 1978296 5% /
/dev/vg00/lvol1 298928 30856 238176 11% /stand
/dev/vg00/lvol8 4096000 304200 3762832 7% /var
/dev/vg00/lvol7 3080192 922416 2140984 30% /usr
/dev/vg00/lvol6 1048576 2512 1037960 0% /tmp
/dev/vg00/lvol5 5128192 2471232 2636264 48% /opt
/dev/vg00/lvol4 512000 2304 505720 0% /home
/dev/vg00/test 2097152 922400 1165640 44% /test
root@rp2470:/#
root@rp2470:/#umount /home
root@rp2470:/#lvremove /dev/vg00/lvol4
The logical volume "/dev/vg00/lvol4" is not empty;
do you really want to delete the logical volume (y/n) : y
Logical volume "/dev/vg00/lvol4" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
root@rp2470:/#
root@rp2470:/#
root@rp2470:/#lvextend -L 2500 /dev/vg00/lvol3
Warning: rounding up logical volume size to extent boundary at size "2512" MB.
Logical volume "/dev/vg00/lvol3" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
root@rp2470:/#fsadm -b 2500m /
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rlvol3 is currently 2097152 sectors - size will be increased
root@rp2470:/#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2560000 103344 2437512 4% /
/dev/vg00/lvol1 298928 30856 238176 11% /stand
/dev/vg00/lvol8 4096000 304192 3762848 7% /var
/dev/vg00/lvol7 3080192 922416 2140984 30% /usr
/dev/vg00/lvol6 1048576 2512 1037960 0% /tmp
/dev/vg00/lvol5 5128192 2471232 2636264 48% /opt
/dev/vg00/test 2097152 922400 1165640 44% /test
[ 本帖最后由 hbh231 于 2009-9-26 12:57 编辑 ]
三种方法:
1.清理/,如果不是设置的特别小的话应该都够用。
2.备份后再恢复一次,在恢复的时候修改。
3.把/相邻的lv删除,把空间给/。一般是/tmp。具体方法网上搜搜。
路过 学习一下
我为人人,人人为我。
ziggler真勤快
根目录空间逐渐减少,怎么办?-在线等候!
1 .vgdisplay -v 看
free pe 有没有多余的空间
2.如果直接扩卷 会出现以下信息
# lvextend -l 2500 /dev/vg00/lvol3
lvextend: Not enough free physical extends available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possible caused by contiguous allocation policy.
Failure possible caused by strict allocation policy
3.是因为
it is contiguous/strict
4.有以下两种办法改变 lvol3 (/)
1.back it up, remove it (lvremove), then recreate it - this time without contiguous/strict.
2.ignite 的 make_recovery
根目录空间逐渐减少,怎么办?-在线等候!(页 1) - HP-UX - ChinaUnix.net - powered by Discuz! Archiver (25 September 2009)
http://bbs.chinaunix.net/archiver/?tid-348921.html
[ 本帖最后由 ziggler 于 2009-9-25 11:31 编辑 ]