1748139 Members
3943 Online
108758 Solutions
New Discussion юеВ

Re: LVM in HPUX

 
SOLVED
Go to solution
Rasheed Tamton
Honored Contributor

Re: LVM in HPUX

You cannot directly put the PV in a LV on HP-UX. What you have to do is:

first you extend the VG belongs that LV by adding the new PVs.

i.e.,
if your LV is /dev/vg02/lvol1
and your new PV is /dev/dsk/c4t2d3

you first extend the vg02:
vgextend /dev/vg02 /dev/dsk/c4t2d3

Then extend the LV

lvextend -L 100000 /dev/vg02/lvol1

100000 = is the new size in MegaBytes. While you lvextend it MUST BE BIGGER THAN the old LV Size. You must note that existing LV Size before you extend the LV to a new size and it MUST BE BIGGER. Otherwise, you will lose the data.
Torsten.
Acclaimed Contributor

Re: LVM in HPUX

Ahsan, please think about this again ;-)

"Then create pv

#pvcreate -f /dev/dsk/cxtxdx

#lvextend /dev/vgX/lv_X

then extend the size in file system"

Some steps are missing, right?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
YAQUB_1
Respected Contributor

Re: LVM in HPUX

Sajjad Sahir
Honored Contributor

Re: LVM in HPUX

Dear

To better understand lvm, I am defining the
three basic terms
physical volume
volume group
logical volume

physcial volume- is the actual physical volume disk drive
volume group: u can combine many physical volume to the volume group, means collection of physical volume is the volume group
logical volume: in the volume group u can create logical volume it is an are where u can create the file system.

how to create a logical volume
1. create a physical volume
2. create a volume group
3.create a logical volume
also u can extend the existing volume group
by adding new physical volume
ok
thanks and regards

sajjad
Sajjad Sahir
Honored Contributor

Re: LVM in HPUX


Dear
Please assign points who are answerign u thread otherwise u have to close u thread ASAP, if u are giving points to the peoples they will answer u thread ASAP, otherwise they will hesitate to answer u questions ok
take care, co-operate with team

thanks and regards

sajjad
Vinayak_HPUX
Frequent Advisor

Re: LVM in HPUX

I got the solutions
"Success is matter of law not luck, Make ur own & follow them -Shivkhera[You Can Win] "