这里是 Ubuntu 22.04.1。我在安装过程中创建了一个名为的卷组system
。该组中有三个逻辑卷。
--- Logical volume ---
LV Path /dev/system/swap
LV Name swap
VG Name system
LV UUID qeGYCG-PseM-IzIW-rpit-0zwI-lbKs-q0jL8D
LV Write Access read/write
LV Creation host, time ubuntu-server, 2022-12-02 19:20:46 +0000
LV Status NOT available
LV Size 1,00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/system/root
LV Name root
VG Name system
LV UUID qx6W1r-e20x-VfwG-1Sdg-uGE3-rRW9-89k24O
LV Write Access read/write
LV Creation host, time ubuntu-server, 2022-12-02 19:20:47 +0000
LV Status available
# open 1
LV Size 10,00 GiB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/system/drbd
LV Name drbd
VG Name system
LV UUID rQxv3f-pJds-JU1z-9Hqd-hi81-3kAt-zlcVbh
LV Write Access read/write
LV Creation host, time ubuntu-server, 2022-12-02 19:20:49 +0000
LV Status NOT available
LV Size <21,00 GiB
Current LE 5375
Segments 1
Allocation inherit
Read ahead sectors auto
这是重启后命令的输出lvdisplay
。每次重启时逻辑卷swap
和drbd
都不会被激活。我需要使用vgchange -ay
命令手动激活它们。只有root
逻辑卷可用,此卷上安装了系统。将卷名添加到auto_activation_volume_list
没有/etc/lvm/lvm.conf
帮助。
为什么会发生这种情况?
更新 #1
我尝试重新创建逻辑卷。首先,我删除了交换卷,然后使用不同的名称重新创建了它。重启后问题仍然存在。直到 才激活卷vgchange -ay
。