有多个同名卷组时如何重命名逻辑卷

4 lvm

我在主驱动器上安装了 Fedora 24,但后来决定将其安装在我的固态驱动器上。这样做之后,我尝试挂载我的主驱动器(在运行 cryptsetup 之后),但发生了这种情况:

# lvrename /dev/fedora/home /dev/fedora/althome 
  Multiple VGs found with the same name: skipping fedora 
  Use the VG UUID with --select vg_uuid=<uuid>

# lvdisplay

: above lists my partitions uuids


# lvrename --select vg_uuid=my-vg-uuid /dev/fedora/home /dev/fedora/althome

lvrename: unrecognized option '--select'
Run Code Online (Sandbox Code Playgroud)

由于给定的说明不起作用,我该如何解决这个问题?

小智 7

使用 vgdisplay 查找卷组的 UUID(不是逻辑卷的 UUID),然后:

vgrename my-vg-id oldfedora
Run Code Online (Sandbox Code Playgroud)

这似乎是 Fedora 24 中的一个错误。