storcli64x86 使用(硬盘找回)
背景
使用 lsblk 在服务器操作系统看不到硬盘,丢失了硬盘状态信息
查看服务器硬盘状态
-
![]()
-
![]()
-
./storcli64x86 /c0 show
252:4 发现是 UBad 状态

- 设置 good 状态
EID: 252
Slt: 4
./storcli64x86 /c0/e252/s4 set good
执行完后查看硬盘是 UGood状态


- ./storcli64x86 /c0 /fall import
执行后发现硬盘变为 Onln状态,lsblk 查看硬盘信息已恢复


如何将 2块盘做成raid1
./storcli64x86 /c0 add VD r1 drives=252:0,252:1

mount 磁盘报错
# 查看系统日志
[root@lexun-20 ~]# tail -f /var/log/messages |grep sdd1
Jul 10 18:41:54 lexun-20 kernel: XFS (sdg1): Filesystem has duplicate UUID aa0ea670-a710-4250-b906-d75cffbc0715 - can't mount
# 生成新的uid
[root@lexun-20 ~]# xfs_admin -U generate /dev/sdg1
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_admin. If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
[root@lexun-20 ~]# mount -o nouuid /dev/sdg1 /mnt1/
[root@lexun-20 ~]# umount /mnt1/
[root@lexun-20 ~]# xfs_admin -U generate /dev/sdg1
# 将新生产的uid 放入 /etc/fstab
[root@lexun-20 ~]# mount -a



浙公网安备 33010602011771号