My RAID arrays and LVM are no longer auto-detected and then mounted on booting. I've encountered this before and have gone through the advice I was given and what worked for me then.
On booting
When I boot LVM/RAID are failing to start, although it flys by too fast to read whats happening so after having booted if I restart lvm and RAID I'm told...
Code: Select all
# /etc/init.d/lvm restart
* Setting up the Logical Volume Manager ...
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
Refusing activation of partial LV vg/pics. Use '--activationmode partial' to override.
Refusing activation of partial LV vg/video. Use '--activationmode partial' to override.
Refusing activation of partial LV vg/music. Use '--activationmode partial' to override.
* Failed to setup the LVM [ !! ]
* ERROR: lvm failed to start
# /etc/init.d/mdadm restart
* Stopping mdadm monitor ... [ ok ]
* Setting up the Logical Volume Manager ...
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
Refusing activation of partial LV vg/pics. Use '--activationmode partial' to override.
Refusing activation of partial LV vg/video. Use '--activationmode partial' to override.
Refusing activation of partial LV vg/music. Use '--activationmode partial' to override.
* Failed to setup the LVM [ !! ]
* ERROR: lvm failed to start
* Starting mdadm monitor ... [ ok ]
If I look for the Physical Volume (PV) with the reported UUID then sure enough its not there...
Code: Select all
# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Oct 7 18:59 0e07d3aa-9d48-46dd-87ab-b8a351d21fc8 -> ../../sde1
lrwxrwxrwx 1 root root 10 Oct 7 18:59 1209cd2e-928b-44c4-9f33-e58b44cd1125 -> ../../sde5
lrwxrwxrwx 1 root root 10 Oct 7 18:59 2fb4b5ab-9017-4b15-945b-24c34f16aa5c -> ../../sdc3
lrwxrwxrwx 1 root root 10 Oct 7 18:59 2fb8529d-3ab8-4abe-b223-17b826fab4da -> ../../sdc1
lrwxrwxrwx 1 root root 10 Oct 7 18:59 3e54d3ee-ac61-4bce-ae90-1da94ec8bd78 -> ../../sde2
lrwxrwxrwx 1 root root 10 Oct 7 18:59 42bd67ec-074c-4dcf-972e-fcbf2865af3b -> ../../sdc6
lrwxrwxrwx 1 root root 10 Oct 7 18:59 4dfa7aa1-fb2c-468d-ad08-0923995fa854 -> ../../sde6
lrwxrwxrwx 1 root root 10 Oct 7 18:59 b710d9ce-219f-4ad2-949b-50fedf72ff1c -> ../../sdc5
lrwxrwxrwx 1 root root 10 Oct 7 18:59 be01baea-9777-4514-8c97-1a471d7cbb8d -> ../../sde3
lrwxrwxrwx 1 root root 10 Oct 7 18:59 cfcdfa40-2ddc-4347-a416-bcfb87913edf -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 7 18:59 e40b3aef-5830-4584-a034-0416e9f31306 -> ../../sdc2
Code: Select all
# ls -lha /dev/vg/
total 0
drwxr-xr-x 2 root root 60 Oct 7 18:59 .
drwxr-xr-x 21 root root 5.3K Oct 7 18:59 ..
lrwxrwxrwx 1 root root 7 Oct 7 18:59 work -> ../dm-0
Code: Select all
# ls -lha /dev/dm*
brw-rw---- 1 root disk 252, 0 Oct 7 18:59 /dev/dm-0
First things first, lets try and fix it using the advice previously given.
What block devices are detected...
Code: Select all
# ls -lha /dev/sd*
brw-rw---- 1 root disk 8, 0 Oct 7 18:59 /dev/sda
brw-rw---- 1 root disk 8, 1 Oct 7 18:59 /dev/sda1
brw-rw---- 1 root disk 8, 16 Oct 7 18:59 /dev/sdb
brw-rw---- 1 root disk 8, 17 Oct 7 18:59 /dev/sdb1
brw-rw---- 1 root disk 8, 32 Oct 7 18:59 /dev/sdc
brw-rw---- 1 root disk 8, 33 Oct 7 18:59 /dev/sdc1
brw-rw---- 1 root disk 8, 34 Oct 7 18:59 /dev/sdc2
brw-rw---- 1 root disk 8, 35 Oct 7 18:59 /dev/sdc3
brw-rw---- 1 root disk 8, 36 Oct 7 18:59 /dev/sdc4
brw-rw---- 1 root disk 8, 37 Oct 7 18:59 /dev/sdc5
brw-rw---- 1 root disk 8, 38 Oct 7 18:59 /dev/sdc6
brw-rw---- 1 root disk 8, 48 Oct 7 18:59 /dev/sdd
brw-rw---- 1 root disk 8, 49 Oct 7 18:59 /dev/sdd1
brw-rw---- 1 root disk 8, 64 Oct 7 18:59 /dev/sde
brw-rw---- 1 root disk 8, 65 Oct 7 18:59 /dev/sde1
brw-rw---- 1 root disk 8, 66 Oct 7 18:59 /dev/sde2
brw-rw---- 1 root disk 8, 67 Oct 7 18:59 /dev/sde3
brw-rw---- 1 root disk 8, 68 Oct 7 18:59 /dev/sde4
brw-rw---- 1 root disk 8, 69 Oct 7 18:59 /dev/sde5
brw-rw---- 1 root disk 8, 70 Oct 7 18:59 /dev/sde6
brw-rw---- 1 root disk 8, 80 Oct 7 18:59 /dev/sdf
brw-rw---- 1 root disk 8, 81 Oct 7 18:59 /dev/sdf1
brw-rw---- 1 root disk 8, 96 Oct 7 18:59 /dev/sdg
brw-rw---- 1 root disk 8, 112 Oct 7 18:59 /dev/sdh
brw-rw---- 1 root disk 8, 128 Oct 7 18:59 /dev/sdi
brw-rw---- 1 root disk 8, 144 Oct 7 18:59 /dev/sdj
Code: Select all
# mdadm --examine /dev/sd*
/dev/sda:
MBR Magic : aa55
Partition[0] : 1953522992 sectors at 63 (type fd)
/dev/sda1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1c2d7311:c6b39a77:188edc34:4aa1c004
Creation Time : Thu May 17 14:25:51 2012
Raid Level : raid1
Used Dev Size : 976761408 (931.51 GiB 1000.20 GB)
Array Size : 976761408 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 127
Update Time : Tue Oct 7 18:44:10 2014
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Checksum : cd5fce29 - correct
Events : 49068
Number Major Minor RaidDevice State
this 0 8 1 0 active sync /dev/sda1
0 0 8 1 0 active sync /dev/sda1
1 1 0 0 1 faulty removed
/dev/sdb:
MBR Magic : aa55
Partition[0] : 1953522992 sectors at 63 (type fd)
/dev/sdb1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1c2d7311:c6b39a77:188edc34:4aa1c004
Creation Time : Thu May 17 14:25:51 2012
Raid Level : raid1
Used Dev Size : 976761408 (931.51 GiB 1000.20 GB)
Array Size : 976761408 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Update Time : Sat Apr 12 21:26:06 2014
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : cc73cc10 - correct
Events : 671
Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1
0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
/dev/sdc:
MBR Magic : aa55
Partition[0] : 96327 sectors at 63 (type 83)
Partition[1] : 41961780 sectors at 96390 (type 83)
Partition[2] : 20980890 sectors at 42058170 (type 83)
Partition[3] : 873518310 sectors at 63039060 (type 05)
/dev/sdc1:
MBR Magic : aa55
mdadm: No md superblock detected on /dev/sdc2.
mdadm: No md superblock detected on /dev/sdc3.
/dev/sdc4:
MBR Magic : aa55
Partition[0] : 64693692 sectors at 63 (type 83)
Partition[1] : 808824555 sectors at 64693755 (type 05)
mdadm: No md superblock detected on /dev/sdc5.
mdadm: No md superblock detected on /dev/sdc6.
/dev/sdd:
MBR Magic : aa55
Partition[0] : 1953520002 sectors at 63 (type fd)
/dev/sdd1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1072c19c:6a50e9c5:188edc34:4aa1c004
Creation Time : Sun Nov 8 07:36:27 2009
Raid Level : raid1
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 126
Update Time : Tue Oct 7 18:59:43 2014
State : clean
Active Devices : 1
Working Devices : 1
Failed Devices : 1
Spare Devices : 0
Checksum : 6086a146 - correct
Events : 138974
Number Major Minor RaidDevice State
this 0 8 49 0 active sync /dev/sdd1
0 0 8 49 0 active sync /dev/sdd1
1 1 0 0 1 faulty removed
/dev/sde:
MBR Magic : aa55
Partition[0] : 80003637 sectors at 63 (type 83)
Partition[1] : 16000740 sectors at 80003700 (type 82)
Partition[2] : 192780 sectors at 96004440 (type 83)
Partition[3] : 392199948 sectors at 96197220 (type 05)
mdadm: No md superblock detected on /dev/sde1.
mdadm: No md superblock detected on /dev/sde2.
mdadm: No md superblock detected on /dev/sde3.
/dev/sde4:
MBR Magic : aa55
Partition[0] : 20000862 sectors at 63 (type 83)
Partition[1] : 372199023 sectors at 20000925 (type 05)
mdadm: No md superblock detected on /dev/sde5.
mdadm: No md superblock detected on /dev/sde6.
/dev/sdf:
MBR Magic : aa55
Partition[0] : 1953520002 sectors at 63 (type fd)
/dev/sdf1:
Magic : a92b4efc
Version : 0.90.00
UUID : 1072c19c:6a50e9c5:188edc34:4aa1c004
Creation Time : Sun Nov 8 07:36:27 2009
Raid Level : raid1
Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
Array Size : 976759936 (931.51 GiB 1000.20 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Update Time : Sat Apr 12 18:26:21 2014
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Checksum : 5f9862a1 - correct
Events : 45357
Number Major Minor RaidDevice State
this 1 8 145 1 active sync
0 0 8 113 0 active sync
1 1 8 145 1 active sync
mdadm: cannot open /dev/sdg: No medium found
mdadm: cannot open /dev/sdh: No medium found
mdadm: cannot open /dev/sdi: No medium found
mdadm: cannot open /dev/sdj: No medium found
I decided to skip recreating the RAID in a non-descructive manner since it didn't solve the problem anyway and I appear to be at the stage where the UUID of something (I think its a RAID array, but this bit is unclear) isn't found...
Code: Select all
# vgscan
Reading all physical volumes. This may take a while...
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
Found volume group "vg" using metadata type lvm2
kimura by-uuid # vgdisplay -v
DEGRADED MODE. Incomplete RAID LVs will be processed.
Finding all volume groups
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
Finding volume group "vg"
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
There are 1 physical volumes missing.
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 18
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 1
Max PV 0
Cur PV 2
Act PV 1
VG Size 1.82 TiB
PE Size 4.00 MiB
Total PE 476932
Alloc PE / Size 304640 / 1.16 TiB
Free PE / Size 172292 / 673.02 GiB
VG UUID r7Ys3b-EvBQ-KcTa-gOqO-tR81-9toT-dk1b61
--- Logical volume ---
LV Path /dev/vg/pics
LV Name pics
VG Name vg
LV UUID tK7jFv-hyMu-VayK-DGiA-M1oP-4FPA-LR3IvB
LV Write Access read/write
LV Creation host, time ,
LV Status NOT available
LV Size 340.00 GiB
Current LE 87040
Segments 3
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/vg/video
LV Name video
VG Name vg
LV UUID 6u82kr-14bK-809S-393K-tlk5-ffHd-wxdIGW
LV Write Access read/write
LV Creation host, time ,
LV Status NOT available
LV Size 450.00 GiB
Current LE 115200
Segments 4
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/vg/music
LV Name music
VG Name vg
LV UUID P78exE-Jdz1-LpwC-LzfI-ys55-MSHO-NhKLU6
LV Write Access read/write
LV Creation host, time ,
LV Status NOT available
LV Size 350.00 GiB
Current LE 89600
Segments 4
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/vg/work
LV Name work
VG Name vg
LV UUID uckSUt-6Lv5-LiUn-zmTZ-Myzj-43uZ-7hrUez
LV Write Access read/write
LV Creation host, time ,
LV Status available
# open 1
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Physical volumes ---
PV Name /dev/md126
PV UUID QgN6eY-UJQn-VmC0-qqx6-MEfD-FCe0-wKoM3J
PV Status allocatable
Total PE / Free PE 238466 / 0
PV Name unknown device
PV UUID JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn
PV Status allocatable
Total PE / Free PE 238466 / 172292
Code: Select all
# pvdisplay -v
DEGRADED MODE. Incomplete RAID LVs will be processed.
Scanning for physical volume names
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
There are 1 physical volumes missing.
--- Physical volume ---
PV Name /dev/md126
VG Name vg
PV Size 931.51 GiB / not usable 3.12 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238466
Free PE 0
Allocated PE 238466
PV UUID QgN6eY-UJQn-VmC0-qqx6-MEfD-FCe0-wKoM3J
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
There are 1 physical volumes missing.
--- Physical volume ---
PV Name unknown device
VG Name vg
PV Size 931.51 GiB / not usable 3.52 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 238466
Free PE 172292
Allocated PE 66174
PV UUID JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn
Code: Select all
# ls -lha /dev/md*
brw-rw---- 1 root disk 9, 126 Oct 7 18:59 /dev/md126
brw-rw---- 1 root disk 9, 127 Oct 7 18:59 /dev/md127
-rw-r--r-- 1 root root 3 Oct 7 18:59 /dev/mdev.seq
/dev/md:
total 0
drwx------ 2 root root 100 Oct 7 18:59 .
drwxr-xr-x 21 root root 5.3K Oct 7 18:59 ..
lrwxrwxrwx 1 root root 8 Oct 7 18:59 126_0 -> ../md126
lrwxrwxrwx 1 root root 10 Oct 7 18:59 1_0 -> /dev/md127
lrwxrwxrwx 1 root root 10 Oct 7 18:59 2_0 -> /dev/md127
Code: Select all
# pvcreate --uuid JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn /dev/md127 --norestorefile
No device found for PV JqPNBk-noWD-H6HZ-foaW-RrbJ-92Iu-GeEvPn.
Device /dev/md127 not found (or ignored by filtering).
Thanks in advance for reading this far. If anyone has any idea on how to fix this it would be very much appreciated.
Cheers,
slackline


