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
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
Share this post:
Accepted Answer
Here is the answer from Red-Hat :
If it could help you in such situation.
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.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »