我今天重新启动了我的 ubuntu 20.10 服务器,它突然开始抱怨它在根 LV 中找不到 PV 之一
在外壳中进行了一些挖掘之后,我发现它确实丢失了 PV。我无法在不添加--activationmode partial
选项的情况下激活 VG
控制台上不断出现一些令人担忧的消息。即ata2 softreset...
和ata2: SATA link down
。
以下是该会议的一些图片:https ://photos.app.goo.gl/r5FBfdY5XaPa5y9h9
我启动了一个实时的 ubuntu 桌面并继续探索,我很快发现 PV 现在确实存在,并且我能够毫无问题地激活和安装 VG。我还通过 dmesg 在实时实例中看到 SATA 消息,但它们不会一直重复。有问题的磁盘是 SSD。这是关于它的 dmesg 输出的其余部分。
[ 50.228406] ata2: softreset failed (1st FIS failed)
[ 50.943122] ata2: SATA link down (SStatus 0 SControl 300)
[ 56.855151] ata2: SATA link down (SStatus 0 SControl 300)
[ 56.855157] ata2.00: link offline, clearing class 1 to NONE
[ 56.859920] ata2: limiting SATA link speed to 1.5 Gbps
[ 57.731143] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[ 57.737432] ata2.00: ATA-9: INTEL SSDSC2CT120A3, 300i, max UDMA/133
[ 57.737436] ata2.00: 234441648 sectors, multi 16: LBA48 NCQ (depth 32), AA
[ 57.747452] ata2.00: configured for UDMA/133
[ 57.747606] scsi 1:0:0:0: Direct-Access ATA INTEL SSDSC2CT12 300i PQ: 0 ANSI: 5
[ 57.752238] sd 1:0:0:0: [sdc] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[ 57.755084] sd 1:0:0:0: [sdc] Write Protect is off
[ 57.755127] sd 1:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 57.755444] sd 1:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 57.755515] sd 1:0:0:0: Attached scsi generic sg2 type 0
[ 57.780008] sdc: sdc1
[ 57.780452] sd 1:0:0:0: [sdc] Attached SCSI disk
这是详细 vgdisplay 的输出
root@ubuntu:~# vgdisplay -v
/dev/sdb: open failed: No medium found
/dev/sdb: open failed: No medium found
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 229.52 GiB
PE Size 4.00 MiB
Total PE 58758
Alloc PE / Size 58758 / 229.52 GiB
Free PE / Size 0 / 0
VG UUID ddb9uT-0717-jSfz-phaq-N8il-4OFu-TqR3fG
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID nWtpix-WsV2-dT3v-RWtc-zPl1-6SdL-sSwIOB
LV Write Access read/write
LV Creation host, time ubuntu-server, 2021-01-25 00:43:30 +0000
LV Status available
# open 0
LV Size 229.52 GiB
Current LE 58758
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Physical volumes ---
PV Name /dev/nvme0n1p3
PV UUID 55KfPo-ep2o-n3FB-stZz-65gO-J1Bz-Y9evX0
PV Status allocatable
Total PE / Free PE 30141 / 0
PV Name /dev/sdc1
PV UUID fPg1BI-COwe-n4YJ-Wo4F-c6I5-4f96-hk1oEn
PV Status allocatable
Total PE / Free PE 28617 / 0
我检查了我的 BIOS 的 SATA 设置,看到一些与该消息相关的帖子并需要更改 SATA 模式,但我找不到 SATA 部分。自从上次我需要深入研究以来,BIOS 选项变得更加复杂!!
任何指针plzzzzzzz。