1
1

More than 3 years have passed since last update.

mount時に、Filesystem has duplicate UUID がでて失敗したときのリカバリ方法

Posted at

備忘録です。

# fstabに追記
% echo "UUID=`blkid -o list | grep vdb | awk '{print $5}'` /data                   xfs     defaults        0 0" >> /etc/fstab

# マウント失敗…
% mount -a
mount: wrong fs type, bad option, bad superblock on /dev/vdb,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# パス指定してもマウントできなかった…
% mount /dev/vda1 /data

# UUIDが重複しててマウントできないみたい
% dmesg | tail -f
XFS (vdb): Filesystem has duplicate UUID e521750b-1437-4012-ad5d-2af7ff11f8b4 - can't mount

# 強制マウントでマウントできるか確認
% sudo mount -t xfs -o nouuid /dev/vdb /data

# 中身確認 ←できた
% ls /data

# マウント解除
% umount -l /dev/vdb

# UUID再生成
% sudo xfs_admin -U generate /dev/vdb

# もっかいマウントしたらできた!
% mount /dev/vdb /data
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1