1753852 Members
8514 Online
108808 Solutions
New Discussion юеВ

Query regarding PVG

 
Kavita Poonia
Regular Advisor

Query regarding PVG

When we create a PVG, we make entry in the /etc/lvmpvg regarding that PVG and the disks it contains. My question is that whether it is necessary to add alternate links too in that PVG under the file /etc/lvmpvg.
3 REPLIES 3
Sajjad Sahir
Honored Contributor

Re: Query regarding PVG

Dear Kavitha

follow up the steps

first u create physical volumes
pvcreate /dev/rdsk/c2t5d0
pvcreate /dev/rdks/c3t5d0
if the disk is already part of a volume group physical volume won't created
that time u have to force to create but if u are force to create u are doing in right disk, inorder to know that one use ioscan -funC disk
then u will get clear picture
once u created physical volume u ready to create volume groups

create a directory under /dev directory
suppose if u want to create vg04 i mean volume then give directory name also
/dev/vg04 ok
then create
group file
mknod /dev/vg04/group c 64 0x040000
then create
volume group
vgcreate /dev/vggo4 /dev/dsk/c2t5d0 /dev/dsk/c3t5d0
now volume group is ready
after that u can create logical volumes
before that check ioscan -funC disk
for it is claimed or not
if it is not claimed
used insf -e disk
then it will be ready
u can create logical volume
Sajjad Sahir
Honored Contributor

Re: Query regarding PVG

if u want to more than these steps
i will explain
Kavita Poonia
Regular Advisor

Re: Query regarding PVG

That's true, while creating a PVG, we make entries in the /etc/lvmpvg file. But this file shudn't contain alternative links. As this file is referred by vgdisplay command to display, what all PVs, a PVG contain. And if alternative links added, it may display the same, which led to the confusion that, whether there are n no of PVs or 2n no of PVs (if you add, one alternative link).