LVM Problems

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat LVM Problems
# 1  
Old 05-04-2015
LVM Problems

Not really RedHat but CentOS, close enough.

While moving my fileserver to a new rack I inadvertently connected the cables of the disk arrays to the wrong SAS ports. When I rebooted the disksgot assigned new UUIDs but the old ones were not removed, so the volume group will not activate and mount.

My question is how do I remove the old metadata?

System details:
CentOS 6.2
Dell Poweredge r210
LSI MegaRAID 9280
2 Sans digital disk enclosures

Here is the LVM info

Output of vgdisplay

Code:
[root@fileserver1 ~]# vgdisplay
  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  --- Volume group ---
  VG Name               vg_fileserver1
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  7
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               232.34 GiB
  PE Size               4.00 MiB
  Total PE              59479
  Alloc PE / Size       56272 / 219.81 GiB
  Free  PE / Size       3207 / 12.53 GiB
  VG UUID               H5j4pR-FfXp-lmJI-HCSH-vzze-foY3-WYeN9p

  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  WARNING: Duplicate VG name raid_vg: YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  Couldn't find device with uuid dXKp0D-ePyc-0agV-nyvO-inYa-IeHx-oqnTzH.
  --- Volume group ---
  VG Name               raid_vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                1
  VG Size               47.29 TiB
  PE Size               128.00 MiB
  Total PE              387398
  Alloc PE / Size       387398 / 47.29 TiB
  Free  PE / Size       0 / 0
  VG UUID               mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM

  WARNING: Duplicate VG name raid_vg: YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  --- Volume group ---
  VG Name               raid_vg
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                1
  VG Size               47.29 TiB
  PE Size               128.00 MiB
  Total PE              387398
  Alloc PE / Size       387398 / 47.29 TiB
  Free  PE / Size       0 / 0
  VG UUID               YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68

Here is the output of pvdisplay

Code:
[root@fileserver1 ~]# pvdisplay
  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  Couldn't find device with uuid dXKp0D-ePyc-0agV-nyvO-inYa-IeHx-oqnTzH.
  Couldn't find device with uuid ZpLv0l-ZU6W-aaJN-vhz0-Q1YM-Dg1f-QIkaky.
  --- Physical volume ---
  PV Name               /dev/sdc2
  VG Name               vg_fileserver1
  PV Size               232.34 GiB / not usable 0
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              59479
  Free PE               3207
  Allocated PE          56272
  PV UUID               Hde0Er-DQ7d-gNEH-Xdcg-RsTO-dzcX-OZFQkj

  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  --- Physical volume ---
  PV Name               unknown device
  VG Name               raid_vg
  PV Size               35.47 TiB / not usable 128.00 MiB
  Allocatable           yes (but full)
  PE Size               128.00 MiB
  Total PE              290575
  Free PE               0
  Allocated PE          290575
  PV UUID               dXKp0D-ePyc-0agV-nyvO-inYa-IeHx-oqnTzH

  --- Physical volume ---
  PV Name               /dev/sdb
  VG Name               raid_vg
  PV Size               11.82 TiB / not usable 128.00 MiB
  Allocatable           yes (but full)
  PE Size               128.00 MiB
  Total PE              96823
  Free PE               0
  Allocated PE          96823
  PV UUID               dLp6jQ-RN49-Pn78-qDzG-cb53-Z8jw-E2TJ6u

  --- Physical volume ---
  PV Name               /dev/sda
  VG Name               raid_vg
  PV Size               35.47 TiB / not usable 128.00 MiB
  Allocatable           yes (but full)
  PE Size               128.00 MiB
  Total PE              290575
  Free PE               0
  Allocated PE          290575
  PV UUID               dpKb1Y-70sL-nVPh-ldNp-eU6U-GC8V-PGEeHH

  --- Physical volume ---
  PV Name               unknown device
  VG Name               raid_vg
  PV Size               11.82 TiB / not usable 128.00 MiB
  Allocatable           yes (but full)
  PE Size               128.00 MiB
  Total PE              96823
  Free PE               0
  Allocated PE          96823
  PV UUID               ZpLv0l-ZU6W-aaJN-vhz0-Q1YM-Dg1f-QIkaky

And here is what I have tried

Code:
[root@fileserver1 ~]# vgrename mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM oldraid_vg
  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  WARNING: Duplicate VG name raid_vg: YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  Couldn't find device with uuid dXKp0D-ePyc-0agV-nyvO-inYa-IeHx-oqnTzH.
  Cannot change VG raid_vg while PVs are missing.
  Consider vgreduce --removemissing.
[root@fileserver1 ~]# vgreduce --removemissing mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  WARNING: Duplicate VG name raid_vg: Existing YTeFq5-zMZR-LC2B-4ceg-aDkj-urx6-q25s68 (created here) takes precedence over mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM
  Volume group "mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM" not found
  Internal error: Attempt to unlock unlocked VG mBV0yW-CEQG-Tc2l-UolE-gpm9-5vAQ-nmMjsM.

As you can see there are 2 PVs that are an unknown device and that seems to be causing problems.

How should I proceed?
Ihave googledand googled but have found now solution.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

2. Red Hat

LVM Help

Hi, I have extended the logical drive on my SMART ARRAY on a BL460 C class blade from 72G to 300G (disk upgrade RAID0+1). It went fine and the new larger disks have now sync'ed up. I now need to create additional disk space on my linux OS (RH) via LVM but I am unable to see the additional... (9 Replies)
Discussion started by: Duffs22
9 Replies

3. AIX

Help with lvm

i have os 5.1 and i do mirror with hdisk0 and hdisk1 on rootvg at the end i get error in mail that: At least one partition mirror is broken please call sysadmin hd5 boot 1 2 2 closed/stale N/A the other fs seems ok and sync what to do about the hd5??? (4 Replies)
Discussion started by: amitt74
4 Replies

4. HP-UX

How to reduce LVM to create another LVM

Hi, I'm new to HP-UX. I have LVM on /var with 92Gig. I would like to reduce it to create another LVM for Oracle client with 800 meg or so. How to do it. I'm running 11.iv3 Thanks (4 Replies)
Discussion started by: lamoul
4 Replies

5. AIX

lvm

Hi. can anyone define about VGDA,VGSA,and quorum in aix.. (1 Reply)
Discussion started by: sumathi.k
1 Replies

6. Red Hat

Lvm

Hi, can we create logical volume from 2 different volume groups. (1 Reply)
Discussion started by: gopalredhat
1 Replies

7. Red Hat

lvm with -- on the name

Hi All, I created an lvm filesystem with a name with dash in the middle, like xxx-yyy (note, that it's only one dash). I was able to create it smoothly with this instructions. lvcreate -L 1G uservg -n xxx-yyy ls /dev/uservg/xxx-yyy (check) mkfs.ext3 /dev/uservg/xxx-yyy mount... (1 Reply)
Discussion started by: itik
1 Replies

8. Linux

LVM Help

Hi guys, I have been Linux for quite a while yet, but am only getting into the LVM world just now, so I do want to ask a pretty basic question (I believe for someone with experience with it) I have a physical volume of /dev/sdc1 which contains a volume group call backup that contains 2 logical... (0 Replies)
Discussion started by: pasha
0 Replies

9. AIX

Help with LVM

Sorry for the noob question; my experience is with Solaris. Am I reading this right? Are these disks completely unused? Not possibly raw disks for informix or something? hdisk5 0K-08-ff-0,1 Optimal RAID 10 Array 285.7GB pdisk20 0K-08-00-2,0 Active Array Member 142.8GB... (2 Replies)
Discussion started by: filosmith
2 Replies

10. Filesystems, Disks and Memory

When to use LVM?

Having first encountered LVM in HP-UX and now experimenting with it in Redhat and Gentoo, I am wondering, when is it actually good practice to use LVM? Obviously LVM doesn't work for boot partitions, so that question is a pretty easy answer: Not for /boot in Linux. While trying to figure out... (1 Reply)
Discussion started by: deckard
1 Replies
Login or Register to Ask a Question