免费注册 查看新帖 |

Chinaunix

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

意外断电, 磁盘报错, 提示超级块有问题,如何修复? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-05 11:57 |只看该作者 |倒序浏览
意外断电, 导致磁盘阵列及服务器均停机了, 开机后SUN服务器提示有一磁盘有问题.
本想用fsck进行修复, 但提示有错, 该磁盘上阵列上的, 约有557G.   请教谁有这方面的经验,指导一下.


root@library # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
....
       6. c5t6d0 <TOYOU-NetStorDA9220F-342R cyl 36148 alt 2 hd 255 sec 127>
          /pci@8,700000/fibre-channel@3/sd@6,0
       7. c5t7d0 <TOYOU-NetStorDA9220F-342R cyl 36151 alt 2 hd 255 sec 127>
          /pci@8,700000/fibre-channel@3/sd@7,0
....



partition> p
Current partition table (original):
Total disk cylinders available: 36148 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -     8      142.32MB    (9/0/0)         291465
  1       swap    wu       9 -    17      142.32MB    (9/0/0)         291465
  2     backup    wu       0 - 36147      558.21GB    (36148/0/0) 1170652980
  3 unassigned    wm       0                0         (0/0/0)              0
  4 unassigned    wm       0                0         (0/0/0)              0
  5 unassigned    wm       0                0         (0/0/0)              0
  6        usr    wm      18 - 36147      557.93GB    (36130/0/0) 1170070050
  7 unassigned    wm       0                0         (0/0/0)              0




root@library # newfs -N /dev/rdsk/c5t6d0s6
Minimum bytes per inode is 11992
With 32385 sectors per cylinder, minimum cylinders per group is 16
This requires the fragment size to be changed from 1024 to 8192
Please re-run mkfs with corrected parameters



root@library # fsck /dev/rdsk/c5t6d0s6 -y
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 16: MAGIC NUMBER WRONG

LOOK FOR ALTERNATE SUPERBLOCKS WITH MKFS?


LOOK FOR ALTERNATE SUPERBLOCKS WITH NEWFS?

SEARCH FOR ALTERNATE SUPERBLOCKS FAILED.

USE GENERIC SUPERBLOCK FROM MKFS?


USE GENERIC SUPERBLOCK FROM NEWFS?

SEARCH FOR ALTERNATE SUPERBLOCKS FAILED. YOU MUST USE THE -o b OPTION
TO FSCK TO SPECIFY THE LOCATION OF A VALID ALTERNATE SUPERBLOCK TO
SUPPLY NEEDED INFORMATION; SEE fsck(1M).
fsck: operation not applicable to FSType nfs





root@library # fsck -y /dev/rdsk/c5t6d0s6
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 16: MAGIC NUMBER WRONG

LOOK FOR ALTERNATE SUPERBLOCKS WITH MKFS?  yes


LOOK FOR ALTERNATE SUPERBLOCKS WITH NEWFS?  yes

calcsb: short read of superblock from newfs
SEARCH FOR ALTERNATE SUPERBLOCKS FAILED.

USE GENERIC SUPERBLOCK FROM MKFS?  yes

CALCULATED GENERIC SUPERBLOCK WITH MKFS
If filesystem was created with manually-specified geometry, using
auto-discovered superblock may result in irrecoverable damage to
filesystem and user data.

CANCEL FILESYSTEM CHECK?  yes

Please verify that the indicated block contains a proper
superblock for the filesystem (see fsdb(1M)).

FSCK was running in YES mode.  If you wish to run in that mode using
the alternate superblock, run `fsck -y -o b=1170063840 /dev/rdsk/c5t6d0s6'.


root@library # fsck -y -o b=1170063840 /dev/rdsk/c5t6d0s6
Alternate super block location: 1170063840.
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 1170063840: MAGIC NUMBER WRONG
root@library #

论坛徽章:
0
2 [报告]
发表于 2011-07-05 14:10 |只看该作者
Try this
newfs -N -T /dev/rdsk/c5t6d0s6
Then from output, pick alternateive superblock number with fsck.

论坛徽章:
0
3 [报告]
发表于 2011-07-06 12:59 |只看该作者
本帖最后由 xieliangcheng 于 2011-07-06 13:02 编辑

这个我已经试过了.   不行.    只怕没得救了. 数据应是丢失了.

root@library # newfs -N -T /dev/rdsk/c5t6d0s6
Warning: cylinder groups must have a multiple of 16 cylinders with the given
         parameters
Rounded cgsize up to 32
Warning: insufficient space in super block for
rotational layout tables with nsect 127, ntrack 255, and nrpos 8.
Omitting tables - file system performance may be impaired.
Warning: 2 sector(s) in last cylinder unallocated
/dev/rdsk/c5t6d0s6:     1170070048 sectors in 36130 cylinders of 255 tracks, 127 sectors
        571323.2MB in 2259 cyl groups (16 c/g, 253.01MB/g, 256 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 518320, 1036608, 1554896, 2073184, 2591472, 3109760, 3628048, 4146336,
4664624,
Initializing cylinder groups:
............................................
super-block backups for last 10 cylinder groups at:
1165367600, 1165885888, 1166404176, 1166922464, 1167440752, 1167959040,
1168477328, 1168995616, 1169513904, 1170032192,


root@library # fsck -F ufs -o b=32 /dev/rdsk/c5t6d0s6
Alternate super block location: 32.
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 32: MAGIC NUMBER WRONG


root@library # fsck -F ufs -o b=1165367600 /dev/rdsk/c5t6d0s6
Alternate super block location: 1165367600.
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 1165367600: MAGIC NUMBER WRONG
root@library #

root@library # fsck -F ufs -o b=518320 /dev/rdsk/c5t6d0s6
Alternate super block location: 518320.
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 518320: MAGIC NUMBER WRONG
root@library #


root@library # fsck -F ufs -o b=1170032192 /dev/rdsk/c5t6d0s6
Alternate super block location: 1170032192.
** /dev/rdsk/c5t6d0s6
BAD SUPERBLOCK AT BLOCK 1170032192: MAGIC NUMBER WRONG

论坛徽章:
0
4 [报告]
发表于 2011-07-06 13:10 |只看该作者
os版本? 试试找新一点的安装光盘单用户启动再运行fsck

论坛徽章:
20
申猴
日期:2013-09-12 19:39:05狮子座
日期:2014-07-20 21:19:51寅虎
日期:2014-08-16 18:37:47水瓶座
日期:2014-10-15 18:58:25天蝎座
日期:2015-01-22 18:19:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015亚冠之胡齐斯坦钢铁
日期:2015-06-03 11:28:502015亚冠之吉达阿赫利
日期:2015-09-19 12:41:47午马
日期:2013-09-18 14:36:40戌狗
日期:2013-09-18 14:44:39处女座
日期:2013-09-24 17:46:41CU十二周年纪念徽章
日期:2013-10-24 15:41:34
5 [报告]
发表于 2011-07-06 20:08 |只看该作者
先iostat -En看hard error,多的话直接换掉。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP