Unsolved
This post is more than 5 years old
36 Posts
0
3076
February 6th, 2008 05:00
pvdisplay -- ERROR "pv_read(): pv_create_name_from_kdev_t" no VALID physica
Hello, i have the following problem with powerpath on linux: on some devices i can not use powerpath device name but only one of the SAN path device file.
Any idea ?
[root@lnxjyXXX snap]# powermt config
[root@lnxjyXXX snap]# pvdisplay /dev/emcpowerq1
pvdisplay -- ERROR "pv_read(): pv_create_name_from_kdev_t" no VALID physical volume "/dev/emcpowerq1"
[root@lnxjyXXX snap]# powermt display dev=emcpowerq
Pseudo name=emcpowerq
CLARiiON ID=CK200053500*** [Backup Refermag]
Logical device ID=6006016041A31600D00E85BA8584DA11 [snap504]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 lpfc sdbd SP B0 active alive 0 0
2 lpfc sdez SP A0 active alive 0 0
2 lpfc sdgf SP B1 active alive 0 0
1 lpfc sdx SP A1 active alive 0 0
[root@lnxjyXXX snap]# pvdisplay /dev/sdbd1
--- Physical volume ---
PV Name /dev/sdbd1
VG Name vgoracle
PV Size 50 GB [104856192 secs] / NOT usable 32.19 MB [LVM: 134 KB]
PV# 10
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 32768
Total PE 1598
Free PE 0
Allocated PE 1598
PV UUID xKf1sO-33a7-SX0H-xS1p-7rNp-YpPL-ZJXgCA
Any idea ?
[root@lnxjyXXX snap]# powermt config
[root@lnxjyXXX snap]# pvdisplay /dev/emcpowerq1
pvdisplay -- ERROR "pv_read(): pv_create_name_from_kdev_t" no VALID physical volume "/dev/emcpowerq1"
[root@lnxjyXXX snap]# powermt display dev=emcpowerq
Pseudo name=emcpowerq
CLARiiON ID=CK200053500*** [Backup Refermag]
Logical device ID=6006016041A31600D00E85BA8584DA11 [snap504]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 lpfc sdbd SP B0 active alive 0 0
2 lpfc sdez SP A0 active alive 0 0
2 lpfc sdgf SP B1 active alive 0 0
1 lpfc sdx SP A1 active alive 0 0
[root@lnxjyXXX snap]# pvdisplay /dev/sdbd1
--- Physical volume ---
PV Name /dev/sdbd1
VG Name vgoracle
PV Size 50 GB [104856192 secs] / NOT usable 32.19 MB [LVM: 134 KB]
PV# 10
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 32768
Total PE 1598
Free PE 0
Allocated PE 1598
PV UUID xKf1sO-33a7-SX0H-xS1p-7rNp-YpPL-ZJXgCA
0 events found
No Events found!


MarcT2
2 Intern
•
131 Posts
0
February 6th, 2008 06:00
If it is, I'm not sure how the LVM will react because the snap will have the same UUID as the already imported source volume. That may be why its saying it can't find a valid physical volume.
I don't know how you handle that situation in Linux. On other platforms you have to somehow change the UUID, vgid, or equivalent. It can be quite tricky to import array snaps back onto the same host.
If that's not the case here, forgive my intrusion.
scytarzynski
36 Posts
0
February 6th, 2008 06:00
[root@lnxjyXXX root]# pvdisplay /dev/emcpowerq
pvdisplay -- ERROR "pv_read(): pv_create_name_from_kdev_t" no VALID physical volume "/dev/emcpowerq"
2) yes i'm pressenting snap devices on the same server than the source, but its working for 90% of the devices. And even if i have problems with pseudo name, as you can see, the deferent san path devices for this pseudo are working well. So i think it's only a problem related to powerpath itself and the way it's declaring pseudo devices on the system.
dynamox
11 Legend
•
20.4K Posts
•
87.4K Points
0
February 6th, 2008 06:00
MarcT2
2 Intern
•
131 Posts
0
February 6th, 2008 07:00
I did a bit of research and you do need to change the UUID to get an array snapshot to import reliably into the Linux LVM. See below:
http://sources.redhat.com/lvm2/wiki/FrequentlyAskedQuestions
(Item 5 - Is there a way to activate/mount a copy of a volume group taken with a disk-array based point-in-time copy on the same host? The problem I have occurs because the disk-array copy contains all information on the disk, including PVID/VGID's, which is confusing for Linux's LVM.)
Which points to:
https://www.redhat.com/archives/linux-lvm/2006-September/msg00026.html
https://www.redhat.com/archives/linux-lvm/2006-October/msg00045.html
See also the following EMC knowledgebase article:
emc120281 - How to set up a Linux host to use emcpower devices in LVM
Hope that's of some help!
Best Regards,
Marc
scytarzynski
36 Posts
0
February 6th, 2008 07:00
MarcT2
2 Intern
•
131 Posts
0
February 6th, 2008 07:00
http://powerlink.emc.com
Support > Knowledgebase Search > Support Solutions Search
Change the "Search For" dropdown from "Content" to "ID", and paste emc120281 into the box. Click on the "Search" button.
scytarzynski
36 Posts
0
February 6th, 2008 07:00
for example, here is another snap device from the same session that is fully working well:
[root@lnxjyXXX ># powermt display dev=emcpowerm
Pseudo name=emcpowerm
CLARiiON ID=CK200053500xxx [Backup Refermag]
Logical device ID=6006016041A316001C31EE978584DA11 [snap406]
state=alive; policy=CLAROpt; priority=0; queued-IOs=0
Owner: default=SP B, current=SP A
==============================================================================
---------------- Host --------------- - Stor - -- I/O Path - -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 lpfc sdaw SP B0 active alive 0 0
2 lpfc sdes SP A0 active alive 0 0
2 lpfc sdfy SP B1 active alive 0 0
1 lpfc sdq SP A1 active alive 0 0
[root@lnxjyXXX ># pvdisplay /dev/emcpowerm1
--- Physical volume ---
PV Name /dev/emcpowerm1
VG Name vgoracle
PV Size 50 GB [104856192 secs] / NOT usable 32.19 MB [LVM: 134 KB]
PV# 11
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 32768
Total PE 1598
Free PE 0
Allocated PE 1598
PV UUID ujhDeU-5COJ-hwUs-qOSd-61ZW-9eY3-mpdBiG
[root@lnxjyXXX ># pvdisplay /dev/sdaw1
--- Physical volume ---
PV Name /dev/sdaw1
VG Name vgoracle
PV Size 50 GB [104856192 secs] / NOT usable 32.19 MB [LVM: 134 KB]
PV# 11
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 32768
Total PE 1598
Free PE 0
Allocated PE 1598
PV UUID ujhDeU-5COJ-hwUs-qOSd-61ZW-9eY3-mpdBiG
MarcT2
2 Intern
•
131 Posts
0
February 6th, 2008 08:00
If you reboot a host with duplicate UUIDs there's a chance that the LVM will pick up the snap device before the source - and import the snap instead. This can lead to data loss in the future as new writes will go to the snap instead of the source.
Anyway, I take your point about pvdisplay working for some and not others. Try the following which might give some clues (maybe post the output if its not too long):
# lvmdiskscan -v
# powercf -q (not sure if this exists in Linux PowerPath)
# powermt config
# powermt display
# powermt check
# ls -l /dev/emcpowerq*
# pvdisplay -vv /dev/emcpowerq1 (that two v's)
# pvdisplay -vv | grep xKf1sO-33a7-SX0H-xS1p-7rNp-YpPL-ZJXgCA
This should find all the paths with the above ID, as taken from your earlier post.
# pvscan -u
# dmesg
Check the messages/syslog file for any LVM related errors.
M
Message was edited by:
MarcT - added "pvscan -u"
scytarzynski
36 Posts
0
February 7th, 2008 04:00
the pvuuid are the same for the source and the snap. And when i check all the pseudo devices pairs (source/snap): when the pseudo work for the source, it doesn't work for the snap, and when it works for the snap it doesn't work for the source. Anyway for a snap it's strange that pvdisplay work for one the path and not for the pseudo (with the same pvuuid).
I've not not found a simple method to change pvuuid. Does someone ever do this on Linux ?