Bug 134879
Summary: | pvcreate can't see disks | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Jesse Barnes <jbarnes> | ||||||
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | |||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.0 | ||||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | ia64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-01-27 17:37:41 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Jesse Barnes
2004-10-06 23:00:38 UTC
1) What sorts of disks are they? What name/major number in /proc/devices? May need to add this to lvm.conf if it isn't built-in. 2) --uuid is only meant to be used in recovery situations - I don't understand the reason for using it here. Seeing duplicate uuids suggests either a bug in the script (e.g. multiple runs using the same uuid) or you have multiple paths to the disk or are using raid or similar? You should edit filters in lvm.conf so that only one path to each PV is seen. > 1) What sorts of disks are they? Fibre channel mostly, they appear as /dev/sd* > What name/major number in /proc/devices? I've attached the output of /proc/partitions, which includes the device numbers. > May need to add this to lvm.conf if it isn't built-in. The filter settings of my lvm.conf don't seem like they'd exclude /dev/sd* devices. > 2) --uuid is only meant to be used in recovery situations - I don't > understand the reason for using it here. Seeing duplicate uuids > suggests either a bug in the script (e.g. multiple runs using the > same uuid) Running pvcreate on all the disks created duplicate uuids by default, so I though I'd try explicitly passing unique IDs. > or you have multiple paths to the disk or are using raid or > similar? You should edit filters in lvm.conf so that only one path > to each PV is seen. This could definitely be it. I'm an idiot. Number (1) is still a problem though... Thanks, Jesse Created attachment 104904 [details]
output of /proc/partitions
I asked for /proc/devices not /proc/partitions :-) Here's /proc/devices. Sorry, I figured /proc/partitions would be even better since it includes the major/minor as well as all of the disks on the system. Jesse Created attachment 104944 [details]
/proc/devices
OK. For problem 1, your devices are all of type 'sd' which lvm2 already recognises; there should be no need to update lvm.conf for that. Try adding the verbose flags to your vgscan and grep for the missing devices to see if it tells you why it's ignoring your devices when you run it to update your .cache file. (vgscan -vvv) Ahh, vgscan -vvv says that most of the devices are md components: Getting size of /dev/sdcr Opened /dev/sdcr /dev/sdcr: Skipping md component device Closed /dev/sdcr /dev/sdcr: Skipping (cached) Getting size of /dev/sddh Opened /dev/sddh /dev/sddh: Skipping md component device Closed /dev/sddh /dev/sddh: Skipping (cached) If I disable md detection in /etc/lvm/lvm.conf it seems to see everything. I'll double check to see if they actually had md superblocks (they shouldn't have). Thanks, Jesse See also #130713. Thanks for your help Alasdair, is it obvious that I've never used these tools before? :) Jesse Marking as a duplicate of 130713. Once the md superblocks and gpt labels are automatically zeroed by pvcreate, everything should be peachy. *** This bug has been marked as a duplicate of 130713 *** |