I rebooted my ubuntu 20.10 server today and it suddenly started complaining that it cannot find one of the PVs in the root LV
After some digging around in the shell that it dropped me to I could see that the PV was indeed missing. I couldn't activate the VG without adding the --activationmode partial
option
There are some worrying messages that keep printing on the console. Namely ata2 softreset...
and ata2: SATA link down
.
Here are some images of that session: https://photos.app.goo.gl/r5FBfdY5XaPa5y9h9
I booted into a live ubuntu desktop and continued exploring where i promptly discovered that the PV now does exist and I was able to activate and mount the VG without any issues. I also see the SATA messages in the live instance via dmesg, but they don't keep repeating. The disk in question is an SSD. Here's the rest of the dmesg output about it.
[ 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
And here's the output from verbose 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
I checked my BIOS for SATA settings, upon seeing some posts related to that message and needing to change the SATA mode, but I couldn't find a section for SATA. BIOS options have got a lot more complex since the last time I've needed to go in that deep though!!
Any pointers plzzzzzzz.