Forums

Resolved
0 votes
Hi all,

After moving segment from a defective drive that is failing I've got this messages :
WARNING: PV /dev/sdk is marked in use but no VG was found using it.
WARNING: PV /dev/sdk might need repairing.
WARNING: PV /dev/sdl is marked in use but no VG was found using it.
WARNING: PV /dev/sdl might need repairing.
WARNING: PV /dev/sdj is marked in use but no VG was found using it.
WARNING: PV /dev/sdj might need repairing.

I'm sure to have made a pvmove to /dev/sdj.
Why /dev/sdk & /dev/sdl are found has been used I'm quite sure they aren't

Here are the segments from the VG point of view
[root@home store]# lvs -a -o +devices WD_Group
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices
Store WD_Group -wi-ao---- <11.83t /dev/sdb(476932)
Store WD_Group -wi-ao---- <11.83t /dev/sdb(0)
Store WD_Group -wi-ao---- <11.83t /dev/sdg(0)
Store WD_Group -wi-ao---- <11.83t /dev/sdb(953843)
Store WD_Group -wi-ao---- <11.83t /dev/sdb(476911)
Store WD_Group -wi-ao---- <11.83t /dev/sde(953843)
Store WD_Group -wi-ao---- <11.83t /dev/sdg(476911)
Store WD_Group -wi-ao---- <11.83t /dev/sdj(0)
Store WD_Group -wi-ao---- <11.83t /dev/sdb(953864)
Store WD_Group -wi-ao---- <11.83t /dev/sde(1430754)

Here are the segment from PVS point of view :
[root@home store]# pvs --segment /dev/sdj
PV VG Fmt Attr PSize PFree Start SSize
/dev/sdj WD_Group lvm2 a-- <1.82t 4.00m 0 476931
/dev/sdj WD_Group lvm2 a-- <1.82t 4.00m 476931 1
[root@home store]# pvs --segment /dev/sdk
PV VG Fmt Attr PSize PFree Start SSize
/dev/sdk WD_Group lvm2 a-- <1.82t <1.82t 0 476932
[root@home store]# pvs --segment /dev/sdl
PV VG Fmt Attr PSize PFree Start SSize
/dev/sdl WD_Group lvm2 a-- <1.82t <1.82t 0 476932

So for sdk & sdl it probably unused disk but for sdj I'm sure it is used for strore LV.

Any recomandation on how troubleshoot that without loosing data that I can't backup for sure.

How could I found the file in the suspected segments
Friday, March 15 2019, 08:06 PM
Share this post:

Accepted Answer

Saturday, March 23 2019, 11:05 AM - #Permalink
Resolved
0 votes
Here is the answer from Red-Hat :
Hello,
>> $ pvscan --cache
>> $ vgchange --refresh WD_Group
Above command update lvmetad cache and also update the lvm metadata on disk.

>> WARNING: PV /dev/sdk is marked in use but no VG was found using it.
Above message shows currently lv activated on this device but currently it doesn't have any lvm label.
This issue may report due, online device add/removal, online lvm/storage migration, corrupted lvm metadata cache or a bug.
At this time, we are unable to find the problem as the issue is already fixed and the device layout/cache has been updated. If you are able to reproduce this issue again, capture following details at the time of the issue for further troubleshooting.
$ lvs -ao +devices,seg_pe_ranges
$ pvs -av
$ blkid
$ dmsetup table
$ dmsetup ls --tree
$ dmsetup info -c
$ vgs -v
$ vgdisplay -vv
$ pvdisplay -v
$ uname -r
$ cat /proc/partitions
$ lvmdump -am

If it could help you in such situation.
The reply is currently minimized Show
Responses (0)
  • There are no replies here yet.
Your Reply