1833387 Members
3221 Online
110052 Solutions
New Discussion

Physical volume group

 
chin hyeon jung
Advisor

Physical volume group

when I try to setting up mirror disk in FC10
there is PV name.
what does it mean PV ?
OS:hp-ux 11.0
3 REPLIES 3
Denver Osborn
Honored Contributor

Re: Physical volume group

PV refers to physical volume, a disk on the system used with lvm. Did you mean PVG Name instead?

Here is an example /etc/lvmpvg file;
------
VG /dev/vg00
PVG PVG0
/dev/dsk/c2t0d0
/dev/dsk/c2t1d0
PVG PVG1
/dev/dsk/c3t0d0
/dev/dsk/c3t1d0
------

If we create an lvol in vg00 that spans /dev/dsk/c2t0d0 and c2t1d0 we can use the pvg_name (PVG0/PVG1) when making the mirrored copy.

# lvextend -m 1 /dev/vg00/lvol1 PVG1

The above lvextend command tells it we want to use PVG1, or /dev/dsk/c3t0d0 and c3t1d0.

Hope this answers your question
-denver
Insu Kim
Honored Contributor

Re: Physical volume group

PV stands for "Physical Volume".

Here are examples for one-way mirroring with device /dev/dsk/c3t3d0 available for VG01, VG00.

# pvcreate /dev/rdsk/c3t3d0
# vgextend /dev/vg01 /dev/dsk/c3t3d0

Do lvextend for every logical volume in VG01 and make sure that it's correctly been mirrored with vgdisplay or lvdisplay.
# lvextend -m 1 /dev/vg01/lvolX

For root volume, procedure is slightly different.

# pvcreate -B /dev/rdsk/c3t3d0
# mkboot /dev/rdsk/c3t3d0
# mkboot -a "hpux -lq" /dev/rdsk/c3t3d0
# vgextend /dev/vg00 /dev/dsk/c3t3d0

Perform lvextend for every logical volume.
One thing that you keep in mind is that you have to do "lvextend" in sequential for lvol1 to lvol3 or you might be in trouble.
You can check the status with "lvlnboot -v".

By the way, It's starange to see the name written in Korean in the forums.

Regards,
Never say "no" first.
Bill McNAMARA_1
Honored Contributor

Re: Physical volume group

A physical volume is a disk.

once you do a pvcreate on a disk you call it a physical volume.

A volume group is a collection of physical volumes

and a logical volume is your 'partition' of that volume group.

Physical volume groups serve no real purpose other than to create distributed mirroring a raid 1/0 style logical volume.

The lvcreate man describes strict on group and distributed allocation policy, as do other posts.
it'd go some thing like lvcreate -s g -D y /dev/vgstriped

Later,
Bill


It works for me (tm)