Mounting a disk cloned from another server fails: `mount: /mnt/clone: wrong fs type ... ` and `dmesg` says `XFS (nvme1n1p1): Filesystem has duplicate UUID`.
IntermediateTroubleshootingDisk space, inodes and filesystems
Answer
Likely causes → The clone has the same XFS UUID as a mounted filesystem (common when mounting a snapshot of the root volume on the same instance).
Diagnose →
sudo blkid
dmesg -T | tail
Fix → Mount with -o nouuid for a temporary mount, or give it a new UUID permanently: sudo xfs_admin -U generate /dev/nvme1n1p1.
Prevent → Use nouuid in rescue runbooks.
More on Disk space, inodes and filesystems
Writes fail with `No space left on device`, but `df -h` shows the filesystem is only 40% used.Intermediate`df -h` shows `/` at 100%, but `du -sh /` only adds up to 12 GB on a 50 GB disk.Intermediate`du` and `df` disagree by 20 GB and `lsof +L1` shows nothing. What else could hide the space?AdvancedA cron job that runs `rm /var/spool/app/*` fails with `/bin/rm: Argument list too long`.Beginner`touch /data/test` returns `touch: cannot touch '/data/test': Read-only file system`.BeginnerAfter a power failure, mounting an XFS volume fails with `mount: /data: wrong fs type, bad option, bad superblock on /dev/sdb1`.Intermediate