- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM: Unable to map all the LEs to unique PEs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 08:43 AM
тАО04-26-2017 08:43 AM
LVM: Unable to map all the LEs to unique PEs
All the disks are SAN disks. I am trying to migrate one SAN to different SAN as the old one expiring. So I was trying to migrate from old to new disks. Since vgtest VG has more than 50 file systems, this particualar FS is only 5gb. but I can't mirror the LV and allocate 5gb only. So what i did was, I mirrored the LV lvtest and then while lvreduce, I removed all the old disks and then all the new disks except disk1520, thinking just to keep the data on one disk for this FS which is only of 5Gb. However, it ended up removing all the new disks, except disk1520(25gb) as expected, but didn't remove the old disks. So I tried to mirror back and I get the following error: Help please:
(root) > lvextend -m 1 /dev/vgtest/lvtest pvg7
LVM: Unable to map all the LEs to unique PEs.
lvextend: The LVM device driver could not extend the
logical volume "/dev/vgtest/lvtest".
New disks:
/dev/disk/disk1520
/dev/disk/disk1521
/dev/disk/disk1522
/dev/disk/disk1523
/dev/disk/disk1524
/dev/disk/disk1525
/dev/disk/disk1526
/dev/disk/disk1527
/dev/disk/disk1528
/dev/disk/disk1529
/dev/disk/disk1530
/dev/disk/disk1531
Old disks:
/dev/disk/disk581
/dev/disk/disk582
/dev/disk/disk587
/dev/disk/disk589
/dev/disk/disk605
/dev/disk/disk606
/dev/disk/disk607
/dev/disk/disk608
/dev/disk/disk609
/dev/disk/disk610
/dev/disk/disk611
How can I remove the old disks without downtime? Please don't say I have to create one 270G lun to migrate as all the old disks together is 270gig and all the new 11 disks are 25Gb each, which is total of 300gb.
Please suggest!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 09:06 AM
тАО04-26-2017 09:06 AM
Re: LVM: Unable to map all the LEs to unique PEs
Use "lvdisplay -v /dev/vgtest/lvtest" and examine each LE and each current PE for this logical volume. The check if you have the right LVM geometry on the new disk in pvg7 using "pvdisplay -v ...".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 09:45 AM
тАО04-26-2017 09:45 AM
Re: LVM: Unable to map all the LEs to unique PEs
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk581 12 12
/dev/disk/disk582 12 12
/dev/disk/disk587 13 13
/dev/disk/disk589 13 13
/dev/disk/disk605 13 13
/dev/disk/disk606 13 13
/dev/disk/disk607 13 13
/dev/disk/disk608 13 13
/dev/disk/disk609 13 13
/dev/disk/disk610 13 13
/dev/disk/disk611 13 13
/dev/disk/disk1520 13 13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 10:09 AM
тАО04-26-2017 10:09 AM
Re: LVM: Unable to map all the LEs to unique PEs
You have 154 LEs and PEs on the old disks. Are they all the same size? Do you have that many PEs on the new disk disk1520 and are they of the same size as the PEs on the old disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 10:19 AM
тАО04-26-2017 10:19 AM
Re: LVM: Unable to map all the LEs to unique PEs
They are not. That is why I mirrored to the same PE extents. And that went fine. But instead of lvreduce just old set of disks, I did lvreduce all of the new disks except one, along with the old disks. But once i am done with that I did lvdisplay and notice, none of the old disks were removed from lvm, except one new lun. The following is the command I did to unmirror:
# lvreduce -m 0 /dev/vgtest/lvtest /dev/disk/disk581 /dev/disk/disk582 /dev/disk/disk587 /dev/disk/disk589 /dev/disk/disk605 /dev/disk/disk606 /dev/disk/disk607 /dev/disk/disk608 /dev/disk/disk609 /dev/disk/disk610 /dev/disk/disk611 /dev/disk/disk1521 /dev/disk/disk1522 /dev/disk/disk1523 /dev/disk/disk1524 /dev/disk/disk1525 /dev/disk/disk1526 /dev/disk/disk1527 /dev/disk/disk1528 /dev/disk/disk1529 /dev/disk/disk1530 /dev/disk/disk1531
# lvdisplay -v /dev/vgtest/lvtest
PV Name LE on PV PE on PV
/dev/disk/disk581 12 12
/dev/disk/disk582 12 12
/dev/disk/disk587 13 13
/dev/disk/disk589 13 13
/dev/disk/disk605 13 13
/dev/disk/disk606 13 13
/dev/disk/disk607 13 13
/dev/disk/disk608 13 13
/dev/disk/disk609 13 13
/dev/disk/disk610 13 13
/dev/disk/disk611 13 13
/dev/disk/disk1520 13 13
(root) > lvextend -m 1 /dev/vgtest/lvtest pvg7
LVM: Unable to map all the LEs to unique PEs.
lvextend: The LVM device driver could not extend the
logical volume "/dev/vgtest/lvtest".
(root) >
What is the solution now? Please suggest!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 10:32 AM
тАО04-26-2017 10:32 AM
Re: LVM: Unable to map all the LEs to unique PEs
Look in to using the pvmove command. Move the PEs to one disk and then mirror. What sizes are the PEs on the old disks?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 10:48 AM
тАО04-26-2017 10:48 AM
Re: LVM: Unable to map all the LEs to unique PEs
Old disk sizes are 25165824 Kbytes, (25Gb), which are 11 of them and new disks are 25Gb each too and are 12 disks in pvg7. Just now, I tried adding one more disk to pvg7 and tried to mirror, still failed with same error.
Can I do pvmove online without downtime? I have never did it. Can you please give me the steps just to make sure I use it right?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-26-2017 10:55 AM
тАО04-26-2017 10:55 AM
Re: LVM: Unable to map all the LEs to unique PEs
I was asking about the PE sizes on old and new disks. Check the PE sizes of the old and new disks. Each disk.
You can do pvmove online. It's a very simple command to use. Look at the examples at the bottom of the man page.