简体   繁体   English

什么是文件系统 UUID?

[英]What is the filesystem UUID?

What is the filesystem UUID?什么是文件系统 UUID?
I want to know how filesystem UUID is used.我想知道文件系统 UUID 是如何使用的。

For example, if duplicate UUID in xfs, mounting is failed.例如,如果 xfs 中有重复的 UUID,则挂载失败。

$ dmesg | tail
[345633.687773] XFS (sdc): Filesystem has duplicate UUID 4e6fb31f-a2c4-45a1-8502-63fdc0fd42e0 - can't mount
...

Should UUID duplication be avoided on other filesystems(eg ext4, btrfs, etc...)?是否应该在其他文件系统(例如 ext4、btrfs 等...)上避免 UUID 重复?

Here is a useful article explaining what UUID is and the problems it solves.是一篇有用的文章,解释了什么是 UUID 及其解决的问题。 In a nutshell, it's a universally unique identifier which allows administrators to distinguish between multiple filesystems in a Linux machine.简而言之,它是一个universally unique identifier ,允许管理员区分 Linux 机器中的多个文件系统。

Should UUID duplication be avoided on other filesystems(eg ext4, btrfs, etc...)?是否应该在其他文件系统(例如 ext4、btrfs 等...)上避免 UUID 重复?

Yes, UUID 's should be unique, no matter what the filesystem type is.是的, UUID应该是唯一的,无论文件系统类型是什么。

For XFS , the following command can be used to regenerate the UUID of an XFS filesystem:对于XFS ,以下命令可用于重新生成 XFS 文件系统的 UUID:

xfs_admin -U generate /dev/sdc

Running this command should show you the new UUID.运行此命令应该会显示新的 UUID。 Edit /etc/fstab , then you should be good to go.编辑/etc/fstab ,然后你应该很高兴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM