Ralf Hildebrandt wrote:
We duplicated a fs by using xfsdump and xfsrestore; now we get
XFS: Filesystem sdc5 has duplicate UUID - can't mount
XFS: Filesystem sdc5 has duplicate UUID - can't mount
# xfs_db -r -c "sb 0" -c "p uuid" /dev/sdb5
uuid = f921a9a5-ec6a-45a2-a383-7011b4dfffbc
# xfs_db -r -c "sb 0" -c "p uuid" /dev/sdc5
uuid = f921a9a5-ec6a-45a2-a383-7011b4dfffbc
So, how can we make the uuid unique again?
I'm not sure how xfsrestore would get you in this situation as
it does not restore the UUID, but this should do the trick:
xfs_db -x -c "uuid generate" /dev/sdc5
--
Bill
|