![邏輯磁碟區在啟動時未激活](https://rvso.com/image/782610/%E9%82%8F%E8%BC%AF%E7%A3%81%E7%A2%9F%E5%8D%80%E5%9C%A8%E5%95%9F%E5%8B%95%E6%99%82%E6%9C%AA%E6%BF%80%E6%B4%BB.png)
這裡是 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
in 中/etc/lvm/lvm.conf
沒有幫助。
為什麼會出現這種情況?
更新#1
我嘗試重新建立邏輯磁碟區。首先,我刪除了交換卷,然後用不同的名稱重新建立了它。重啟後還是同樣的問題。直到 才啟動音量vgchange -ay
。