Operating System - HP-UX
1834625 Members
2524 Online
110069 Solutions
New Discussion

Re: Can I build lvmpvg by hand to drive on made lvm disk configuration

 
SOLVED
Go to solution
GerGon
Regular Advisor

Can I build lvmpvg by hand to drive on made lvm disk configuration

Hi gurus,
Can you helpme with:
I have one vg with 3 lv's using one 36Gb disk, mirrored on second 36Gb disk.
Now I need to add other disk plus other one for mirroring. I have only one BCC.

Can I, build /etc/lvmpvg by hand, to force one couple disk be continues building 72Gb, and the other couple disk like mirroring from first source.

With this, only add the new one disk specificaly to pvgX and the add the new mirror disk to pvgY?

This is because, I want avoid to mirror lv on same disk or that try to find space for mirror in the mirrored disk with no space, when it should find in the new mirror disk.

OR, I need to do a fresh vg and lv's on the new disk with lvmpvg, copying data from original lv's to this new lv's, reduce the lv's and vg, and then add the old this to this new one..!!

Thanks for you time..

PD: See attach for more refence
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: Can I build lvmpvg by hand to drive on made lvm disk configuration

Hi:

You most certainly can build an '/etc/lvmpvg' manually. In fact, see the man pages ('lvmpvg(4)') for more information.

You may also find it useful to use 'pvmove' [perhaps by logical volume] and/or an 'lvreduce' of mirrored extents from a specific physical disk to rearrange your logical volume allocation before you build your 'lvmpvg' file.

Regards!

...JRF...
Marco Santerre
Honored Contributor
Solution

Re: Can I build lvmpvg by hand to drive on made lvm disk configuration

If I understand your question correctly, the answer to your question is yes.

You can create lvmpvg anytime you want and you can do it by hand. There is no need to re-create your VG when you want to have PV Groups.

The only thing that you need is for all your PVs to be inside the VG before you create the lvmpvg with the new disks
Cooperation is doing with a smile what you have to do anyhow.
Tim D Fulford
Honored Contributor

Re: Can I build lvmpvg by hand to drive on made lvm disk configuration

Hi

Absolutly. see "man lvmpvg" for the format

Regards

Tim
-