免费注册 查看新帖 |

Chinaunix

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

一个tips,说是能增加UFS filesystem大小 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-19 14:48 |只看该作者 |倒序浏览
不小心看到一片FAQ,说是这样:

How can I grow a UFS filesystem?
You can grow but not shrink a UFS filesystem if you manage to increase the size of the partition it lives in, with the following command:


/usr/lib/fs/ufs/mkfs -G -M /current/mount /dev/rdsk/cXtYdZsA newsize

Specifying the current mount point and raw device as well as the new size in 512 byte blocks.

You can do this even when the filesystem is mounted and in use.


做了以下实验
# ./mkfs -G -M / /dev/rdsk/c0t0d0s0 1
mkfs: bad value for size: 1 must be between 1024 and 7782480
mkfs: size reset to default 7782480
/dev/rdsk/c0t0d0s0:     7782480 sectors in 3603 cylinders of 16 tracks, 135 sect
ors
        3800.0MB in 79 cyl groups (46 c/g, 48.52MB/g, 6080 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 99536, 199040, 298544, 398048, 497552, 597056, 696560, 796064, 895568,
995072, 1094576, 1194080, 1293584, 1393088, 1492592, 1589792, 1689296,
1788800, 1888304, 1987808, 2087312, 2186816, 2286320, 2385824, 2485328,
2584832, 2684336, 2783840, 2883344, 2982848, 3082352, 3179552, 3279056,
3378560, 3478064, 3577568, 3677072, 3776576, 3876080, 3975584, 4075088,
4174592, 4274096, 4373600, 4473104, 4572608, 4672112, 4769312, 4868816,
4968320, 5067824, 5167328, 5266832, 5366336, 5465840, 5565344, 5664848,
5764352, 5863856, 5963360, 6062864, 6162368, 6261872, 6359072, 6458576,
6558080, 6657584, 6757088, 6856592, 6956096, 7055600, 7155104, 7254608,
7354112, 7453616, 7553120, 7652624, 7752128,

然后就停住了,还以为机器就挂了,把电源一关,再开,又好了。但是还是不知道是不是真的能按照所说的那样,有哪位兄台有机器又不怕机器挂了的可以再试试看。

论坛徽章:
0
2 [报告]
发表于 2003-12-19 17:05 |只看该作者

一个tips,说是能增加UFS filesystem大小

没问题的,这就是growfs命令的后端
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP