诡异:
磁盘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
[root@135 ~]# sdparm --quiet -p sn /dev/sda
Unit serial number VPD page:
PDKRH0ARH4E3SN
[root@135 ~]# sdparm --quiet -p sn /dev/sdb
Unit serial number VPD page:
PDKRH0ARH4E3SN
# 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