Hide Forgot
Description of problem: lvm show no information Version-Release number of selected component (if applicable): lvm2-2.02.56-8.el5 How reproducible: when I run a command related to lvm (example: lvdisplay, vgdisplay, etc.). freezes and shows no information Steps to Reproduce: 1.when I run vgdisplay shows no information 2. 3. Actual results: [root@localhost ~]# vgdisplay Found duplicate PV tNvFsgYY3NPzyoTYunhlo53eaBo3yfXA: using /dev/sdr not /dev/sdb Expected results: display the output of vgdisplay Additional info:
[root@ ~]# uname -a Linux 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux [root@ ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga) [root@ ~]# rpm -qa | grep lvm system-config-lvm-1.1.5-4.el5 lvm2-2.02.56-8.el5
Do you have any volume groups defined? What do "pvs" and "pvs -a" show?
It has a defined volume group. [root@ ~]# cat /etc/lvm/archive/vg00_00002.vg # Generated by LVM2 version 2.02.56(1)-RHEL5 (2010-02-08): Wed Nov 2 11:42:17 2011 contents = "Text Format Volume Group" version = 1 description = "Created *before* executing 'lvcreate -L 10G -n lvpatrol vg00'" creation_host = "localhost" # Linux localhost 2.6.18-194.el5xen #1 SMP Tue Mar 16 22:01:26 EDT 2010 x86_64 creation_time = 1320255737 # Wed Nov 2 11:42:17 2011 vg00 { id = "R5cugO-6n6W-NFZE-BFF6-x1I6-WiCO-UUPv9J" seqno = 9 status = ["RESIZEABLE", "READ", "WRITE"] flags = [] extent_size = 65536 # 32 Megabytes max_lv = 0 max_pv = 0 physical_volumes { pv0 { id = "Xd5dfA-JOg0-K11y-d2u0-XWTy-lVEx-22kmyX" device = "/dev/cciss/c0d0p2" # Hint only status = ["ALLOCATABLE"] flags = [] dev_size = 286133715 # 136.439 Gigabytes pe_start = 384 pe_count = 4366 # 136.438 Gigabytes } } logical_volumes { lvol00 { id = "5gDl9z-ssnq-8SVd-K9qJ-fLub-BEIU-q0pMKg" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 64 # 2 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 0 ] } } lvol06 { id = "sgjHlr-npgv-X22U-zixI-KOc8-Heym-kLqqv7" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 64 # 2 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 64 ] } } lvol05 { id = "FdQXaM-j8Ab-sTwt-x8pH-gSWf-r33F-HFjJR2" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 128 # 4 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 128 ] } } lvol04 { id = "JVzumJ-IIBO-RFkV-5bQT-nv0q-EyO3-K8EA0l" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 64 # 2 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 256 ] } } lvol03 { id = "R4CBMs-sgFr-iisg-dYDw-HWRl-oCIN-3pCngv" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 192 # 6 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 320 ] } } lvol01 { id = "9qtoJe-EsQq-5Mal-WUug-RdId-q3EI-SgR9l7" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 64 # 2 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 512 ] } } lvol02 { id = "iDyEhc-OYvk-L4Uf-3M5T-cmjN-Yilx-dmYLlh" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 312 # 9.75 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 576 ] } } lvprueba { id = "2ZVKN2-kSOf-obnD-2hn0-qDwN-tJl1-HTMYxR" status = ["READ", "WRITE", "VISIBLE"] flags = [] segment_count = 1 segment1 { start_extent = 0 extent_count = 320 # 10 Gigabytes type = "striped" stripe_count = 1 # linear stripes = [ "pv0", 888 ] } } } } freezes when I run pvs [root@ ~]# pvs Found duplicate PV tNvFsgYY3NPzyoTYunhlo53eaBo3yfXA: using /dev/sdr not /dev/sdb [root@ ~]# pvs -a Found duplicate PV tNvFsgYY3NPzyoTYunhlo53eaBo3yfXA: using /dev/sdr not /dev/sdb
as additional data the server is connected to a SAN and have LUNs presented
lvm2-2.02.56-8.el5 is version from RHEL 5.5 and according to duplicate devices, you have some misconfigured multipath device. Also /etc/lvm/archive/vg00_00002.vg is a backup, not current state of the system. You should update your system (even RHEL 5.5 contains update - lvm2-2.02.56-8.el5_5.6) or the best, update to RHEL5.8. Bugzilla is not a support tool, engineering cannot directly provide support for these old releases. For production support please contact Red Hat support through support channels http://www.redhat.com/support/process/ Thanks you.
Are you able to access your LUNs at all or is there a SAN flaw? E.g. "dd if=/sdr of=/dev/null bs=8k count=1"
I have no problem to access the LUNs. Only when I want to display LVM configuration