免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4559 | 回复: 6
打印 上一主题 下一主题

如何增大hp unix文件系统跟目录的大小 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-25 11:28 |只看该作者 |倒序浏览
10可用积分
如何增大hp unix文件系统跟目录的大小,即/目录,

论坛徽章:
0
2 [报告]
发表于 2009-09-25 11:29 |只看该作者

回复 #1 shmalong 的帖子

根目录空间逐渐减少,怎么办?-在线等候!

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 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2009-09-25 11:35 |只看该作者
ziggler真勤快

论坛徽章:
0
4 [报告]
发表于 2009-09-25 12:27 |只看该作者

回复 #3 yuio654 的帖子

我为人人,人人为我。

论坛徽章:
0
5 [报告]
发表于 2009-09-25 13:22 |只看该作者
路过 学习一下

论坛徽章:
0
6 [报告]
发表于 2009-09-25 20:42 |只看该作者
三种方法:
1.清理/,如果不是设置的特别小的话应该都够用。
2.备份后再恢复一次,在恢复的时候修改。
3.把/相邻的lv删除,把空间给/。一般是/tmp。具体方法网上搜搜。

论坛徽章:
0
7 [报告]
发表于 2009-09-26 12:53 |只看该作者
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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP