Operating System - HP-UX
1833873 Members
1963 Online
110063 Solutions
New Discussion

extending an extent based striped lvol

 
SOLVED
Go to solution
Stephan_K
HPE Pro

extending an extent based striped lvol

Hi,
does anybody know an way how to extend an extent-based striped lvol where the extents are later spread equally over all disks ?
The problem for me is, after adding new disks to the vg and extending the lvol the new extents are only on the new disks and not spread over all disks. But for performance reason it is better if the pe´s are in order on all disks.
Thanks in adv for your ideas
Regards
Stephan
I am an HPE employee.
5 REPLIES 5
RAC_1
Honored Contributor

Re: extending an extent based striped lvol

Did you check vgdisplay and lvdisplay? What is the lvol policy?? It should be stripped and strict. I think, it was changed before you extended the lvol and as a result, it is not being spear across the available disks.
There is no substitute to HARDWORK
Stephan_K
HPE Pro

Re: extending an extent based striped lvol

my problem is NOT that the new extents will be striped over the new disks. I want an configuration that that the extents will be equally striped over the old and the new disks.
So some reorginazation has to be done of the old PE´s and the new one.
I am an HPE employee.
James R. Ferguson
Acclaimed Contributor

Re: extending an extent based striped lvol

Hi Stephan:

If you truly have physical space remaining on the old physical volumes, you could target them by specifying either their pv_names or a corresponding pvg_name as part of the 'lvextend' argument list.

Regards!

...JRF...
Devender Khatana
Honored Contributor

Re: extending an extent based striped lvol

Hi Stephan,

If I understood you correctly you want your OLD lvols to be equally distributed in old and new disks.

This is not possible without recreating the logical volume from the scratch.

HTH,
Devender
Impossible itself mentions "I m possible"
D Anderton
Advisor
Solution

Re: extending an extent based striped lvol

Stephan,

If mirrored or mirror disk/UX available you have a chance.

If mirrored : drop one of the mirror sets ensuring you specify disks all in the same lvm pvg (lvreduce). Ensure that /etc/lvmpvg contains all the disks including the new ones for that pvg and re-create your mirror (lvextend) then repeat for the other pvg (drop mirror, re-create mirror).

You should also be able to use mirror disk/UX to get there by using a combination of lvchange (to turn distributed off and on), lvreduce and lvextend (ensure lvmpvg is correct).

I have done both of the above in the past and it can be performed online providing you have mirrordisk/UX and sufficient disk space.

Good Luck.