免费注册 查看新帖 |

Chinaunix

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

help 关于solaris的一个故障 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-07-09 11:23 |只看该作者 |倒序浏览
我使用的服务器的I/O故障,造成我的硬盘无法mount上来
我进行fsck
# fsck  /dev/vx/rdsk/datadg2/vol02
** /dev/vx/rdsk/datadg2/vol02
** Last Mounted on /export/home22
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE?

606815 files, 100980797 used, 3971481 free (242881 frags, 466075 blocks,  0.2% fragmentation)

还是无法mount
# mount /export/home22
mount: the state of /dev/vx/dsk/datadg2/vol02 is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again

谁能解决,谢谢

论坛徽章:
0
2 [报告]
发表于 2002-07-09 12:11 |只看该作者
步骤如下:
#newfs -o /dev/vx/rdsk/datadg2/vol02
返回备用的superblock的number号,从中任意选一个,加入19836
#fsck -y -o b=19836 /dev/vx/rdsk/datadg2/vol02
就可以了

论坛徽章:
0
3 [报告]
发表于 2002-07-09 12:34 |只看该作者

楼上的newfs选项写错了,应该是N,特此更正

To replace a superblock, you must know what backup superblocks are available
on your disk. This is a simply informational step, and doesn\'t actually affect
anything or change your filesystem. To do this, run the command:
# newfs -Nv devicename.

Here is some sample output from this command.

# newfs -Nv c0t3d0s0
mkfs -F ufs -o N /dev/rdsk/c0t3d0s0 1755600 80 19 8192 1024 16 7 90 2048 t 0
-1 8 128
/dev/rdsk/c0t3d0s0:     1755600 sectors in 1155 cylinders of 19 tracks,
80 sectors 857.2MB in 73 cyl groups (16 c/g, 11.88MB/g, 5696 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 24432, 48832, 73232, 97632, 122032, 146432, 170832, 195232, 219632,
244032, 268432, 292832, 317232, 341632, 366032, 390432, 414832, 439232,
463632, 488032, 512432, 536832, 561232, 585632, 610032, 634432, 658832,
683232, 707632, 732032, 756432, 778272, 802672, 827072, 851472, 875872,
900272, 924672, 949072, 973472, 997872, 1022272, 1046672, 1071072, 1095472,
1119872, 1144272, 1168672, 1193072, 1217472, 1241872, 1266272, 1290672,
1315072, 1339472, 1363872, 1388272, 1412672, 1437072, 1461472, 1485872,
1510272, 1534672, 1556512, 1580912, 1605312, 1629712, 1654112, 1678512,
1702912, 1727312, 1751712,

#

Then you run fsck to replace the superblock. You will notice this syntax is
listed in the above output also, but this implies that you know what it\'s for.

# fsck -F ufs -o b=XX c0t3d0s0

where XX is a superblock backup from the above list.

If this doesn\'t work, then you can try successive superblock backups until
you find one that does. If none of them work, then your filesystem needs to
be recreated at the least, and you will need to restore from backup.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP