Operating System - HP-UX
1835660 Members
2958 Online
110082 Solutions
New Discussion

Extending Physical Volume Group

 
Mohd M.
Occasional Contributor

Extending Physical Volume Group

I have delete an existing volume group consists of one disk and mirror copy disk.
I want to use these disk for extending another physical volume group on the same manner (one disk to be added to the PVG and the other disk to the mirror PVG).
could I have a procedure for this task?
Notice that i Have an Online JFS

regards

M.Mahgoub
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Extending Physical Volume Group

Hi,
easiest way is to use SAM.
Select the vg you want to extend and add the freed up disk. Repeat for the mirror.
Andreas Barth
Occasional Contributor

Re: Extending Physical Volume Group

or take the command:

vgextend -g pvg-name /dev/vg** /dev/dsk/xxxx

and the same for the mirror pvg

regards

Andy
Andy Barth
Adisuria Wangsadinata_1
Honored Contributor

Re: Extending Physical Volume Group

Hi M.Mahgoub,

Just use option '-g' for vgextend, so you can specified which disk go for the main PVG & other for the mirror PVG.

# vgextend -g PVGMAIN /dev/vgXX /dev/dsk/cXtYdZ

# vgextend -g PVGMIRROR /dev/vgXX /dev/dsk/cAtBdC

After that, use lvextend for extend the file system size under /dev/vgXX. Check with lvdisplay to make sure the extend will taken both disk (main & mirror).

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
susee_sundar
Regular Advisor

Re: Extending Physical Volume Group

Hi M.Mahgoub.,

Now You are having 2 disks that You got from the deleted Volume group..

Let it be /dev/dsk/c2t6d0
and /dev/dsk/c2t6d1

Now U can add the dsik to The Existing Voume Group by..

For Example for Volume Group VG03

#vgextend /dev/vg03 /dev/dsk/c2t6d0 /dev/dsk/c2t6d1
<< Then You can Extend the Logical volume >>
#lvextend -L lvol04 /dev/dsk/c2t6d0
#lvextend -m 1 lvol04 /dev/dsk/c2t6d1

Now one disk is added to your Logical volume & the other disk contains the Mirrored data of the same..



Surya.................
Marvin Strong
Honored Contributor

Re: Extending Physical Volume Group

you can add the disks to the appropriate volume group and then just edit the /etc/lvmpvg file and put the disks in the correct PVG.

man lvmpvg for details on the file format.