Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3335100
  • 博文数量: 815
  • 博客积分: 12898
  • 博客等级: 上将
  • 技术积分: 7883
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-25 09:57
文章分类

全部博文(815)

文章存档

2014年(1)

2011年(46)

2010年(192)

2009年(121)

2008年(70)

2007年(385)

分类: 服务器与存储

2011-03-19 01:18:36

诡异:
磁盘SN号居然一样:
# sdparm --quiet -p sn /dev/sda
Unit serial number VPD page:
       WD-WMAZA1508075
# sdparm --quiet -p sn /dev/sdc
Unit serial number VPD page:
       WD-WMAZA1508075
 
# mount /dev/sda1 /data/data027
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
# dmesg | tail
Filesystem "sda1": xfs_log_force: error 5 returned.
Filesystem "sda1": xfs_log_force: error 5 returned.
Filesystem "sdc1": xfs_log_force: error 5 returned.
XFS: Filesystem sda1 has duplicate UUID - can't mount
Filesystem "sdc1": xfs_log_force: error 5 returned.
XFS: Filesystem sda1 has duplicate UUID - can't mount
Filesystem "sdc1": xfs_log_force: error 5 returned.
Filesystem "sdc1": xfs_log_force: error 5 returned.
Filesystem "sdc1": xfs_log_force: error 5 returned.
Filesystem "sdc1": xfs_log_force: error 5 returned.
 
# tail -f /var/log/messages
Mar 19 01:15:56 tmp05 kernel: Filesystem "sda1": xfs_log_force: error 5 returned.
Mar 19 01:15:56 tmp05 kernel: Filesystem "sda1": xfs_log_force: error 5 returned.
Mar 19 01:15:56 tmp05 kernel: xfs_force_shutdown(sda1,0x1) called from line 420 of file fs/xfs/xfs_rw.c.  Return address = 0xffffffff884edcfd
Mar 19 01:15:56 tmp05 kernel: Filesystem "sda1": xfs_log_force: error 5 returned.
Mar 19 01:15:56 tmp05 last message repeated 4 times
Mar 19 01:16:23 tmp05 kernel: Filesystem "sdc1": xfs_log_force: error 5 returned.
Mar 19 01:16:30 tmp05 kernel: XFS: Filesystem sda1 has duplicate UUID - can't mount
Mar 19 01:16:53 tmp05 kernel: Filesystem "sdc1": xfs_log_force: error 5 returned.
Mar 19 01:17:09 tmp05 kernel: XFS: Filesystem sda1 has duplicate UUID - can't mount
Mar 19 01:17:23 tmp05 kernel: Filesystem "sdc1": xfs_log_force: error 5 returned.
Mar 19 01:17:53 tmp05 kernel: Filesystem "sdc1": xfs_log_force: error 5 returned.
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sda, 12 Currently unreadable (pending) sectors
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sda, 12 Offline uncorrectable sectors
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sdb, 48 Currently unreadable (pending) sectors
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sdb, 48 Offline uncorrectable sectors
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sdc, 12 Currently unreadable (pending) sectors
Mar 19 01:18:09 tmp05 smartd[3403]: Device: /dev/sdc, 12 Offline uncorrectable sectors
Mar 19 01:18:23 tmp05 kernel: Filesystem "sdc1": xfs_log_force: error 5 returned.

处理办法:

[root@atyu30 ~]# blkid /dev/sdc1
/dev/sdc1: UUID="208a7154-baa3-4159-a6ad-ae16c0938171" TYPE="xfs"
[root@atyu30 ~]# blkid /dev/sda1
/dev/sda1: UUID="208a7154-baa3-4159-a6ad-ae16c0938171" TYPE="xfs"

2个磁盘的UUID居然也一样

修改磁盘UUID

uuidgen 会返回一个合法的 uuid,结合 xfs_admin -U 可以新生成一个 uuid 并写入 xfs 分区中:
比如新建或改变 sdc1 的 uuid (需要 root 权限)

[root@atyu30 ~]# uuidgen
8c922c24-7110-4ba8-9af7-d275ded029b9

[root@atyu30 ~]# xfs_admin -U 8c922c24-7110-4ba8-9af7-d275ded029b9 /dev/sdc1
Clearing log and setting UUID
writing all SBs
new UUID = 8c922c24-7110-4ba8-9af7-d275ded029b9
阅读(7416) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~