Operating System - HP-UX
1752569 Members
4943 Online
108788 Solutions
New Discussion юеВ

Add logical volume in an existing shared volume group.

 
mahbub
Advisor

Add logical volume in an existing shared volume group.

Dear all,

1.Device file defarent in lvmtab on both nodes under vgicon2.
2.active active two nodes cluster.

I want to add lvol with vgicon2.

How i will add logical volume in an existing shared volume group without same device file on both nodes in cluster environment?.


I am attaching /etc/lvmtab info.

Anyboday help me for this issue.

Best regards
Mahbub
5 REPLIES 5
Michael Steele_2
Honored Contributor

Re: Add logical volume in an existing shared volume group.

Hi

You need a local disk to vgicon2, I assume that's a hostname for a server, if not then please provide the hostnames.

You need a local disk with a new volume group. Refer to vg00 on both boxes, for example. They are local to both machines because the O/S has to reside on both machines.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Add logical volume in an existing shared volume group.

Ok, vgicon2 is a volume group on a node. So its a shared vg to both nodes. See answer above.
Support Fatherhood - Stop Family Law
Aneesh Mohan
Honored Contributor

Re: Add logical volume in an existing shared volume group.

Hi Mahbub,

On iconprod
-------------

#vgchange -c n -S n vgicon2
#vgchange -a y vgicon2
#lvcreate -L xxM -n lvname /dev/vgicon2
#newfs -F vxfs -o largefiles /dev/vgicon2/rlvname ----> if you are using raw chunk then ignore this.
#vgexport -v -s -p -m /tmp/vgicon2.map
#vgchange -a n vgicon2


On tabsprod
-----------
#vgchange -a n vgicon2
#ll /dev/vgicon2/group ----------> note down the minor number
#vgexport vgicon2
#mkdir /dev/vgicon2
#mknod /dev/vgicon2/group c 64 0xyy0000
#vgimport -v -s -m /tmp/vgicon2.map vgicon2
#vgchange -c -y -S y vgicon2


Aneesh
mahbub
Advisor

Re: Add logical volume in an existing shared volume group.

Hi Aneesh

Thanks for your mail.Here device file is not same under vgicon2 and others vg. I need to add 100GB in vgicon2 and create new file system.I have created new lun present this lun on both nodes.but here i found new device file on b oth nodes which are same device file.At this situation I need the procedure.

iconprod:[/] # strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c2t0d0
/dev/vgtabs2
/dev/dsk/c9t0d1
/dev/dsk/c9t0d2
/dev/dsk/c11t0d1
/dev/dsk/c11t0d2
/dev/dsk/c4t0d1
/dev/dsk/c4t0d2
/dev/dsk/c6t0d1
/dev/dsk/c6t0d2
/dev/vgicon1
/dev/dsk/c9t0d6
/dev/dsk/c11t0d6
/dev/dsk/c4t0d6
/dev/dsk/c6t0d6
/dev/vgicon2
H:y.
/dev/dsk/c9t0d4
/dev/dsk/c9t0d5
/dev/dsk/c11t0d4
/dev/dsk/c4t0d4
/dev/dsk/c6t0d4
/dev/dsk/c11t0d5
/dev/dsk/c4t0d5
/dev/dsk/c6t0d5
/dev/vgtabs1
/dev/dsk/c9t0d3
/dev/dsk/c9t0d7
/dev/dsk/c11t0d3
/dev/dsk/c11t0d7
/dev/dsk/c4t0d3
/dev/dsk/c4t0d7
/dev/dsk/c6t0d3
/dev/dsk/c6t0d7

tabsprod:[/] # strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t1d0
/dev/dsk/c2t0d0
/dev/vgtabs1
/dev/dsk/c8t0d3
/dev/dsk/c10t0d3
/dev/dsk/c4t0d3
/dev/dsk/c6t0d3
/dev/dsk/c4t0d7
/dev/dsk/c6t0d7
/dev/dsk/c8t0d7
/dev/dsk/c10t0d7
/dev/vgtabs2
/dev/dsk/c8t0d1
/dev/dsk/c8t0d2
/dev/dsk/c10t0d1
/dev/dsk/c4t0d1
/dev/dsk/c6t0d1
/dev/dsk/c10t0d2
/dev/dsk/c4t0d2
/dev/dsk/c6t0d2
/dev/vgicon1
/dev/dsk/c8t0d6
/dev/dsk/c10t0d6
/dev/dsk/c4t0d6
/dev/dsk/c6t0d6
/dev/vgicon2
H:y.
/dev/dsk/c8t0d4
/dev/dsk/c8t0d5
/dev/dsk/c10t0d4
/dev/dsk/c10t0d5
/dev/dsk/c4t0d4
/dev/dsk/c4t0d5
/dev/dsk/c6t0d4
/dev/dsk/c6t0d5

Regards
Mahbub
Michael Steele_2
Honored Contributor

Re: Add logical volume in an existing shared volume group.

Why, exactly, are you saying "..I have to create a lvol in vgicon2?...". Are you being told to do this? If so then you need to go back to whoever told you to do this anc clarify exactly what a shared disk and volume group are, cuz you don't look like you've ever heard of either.

And no, you can not create a local lvol in the shared by two nodes vg vgicon2! So either you have the wrong instructions or you just don't get it and probably shouldn't be doing this job.
Support Fatherhood - Stop Family Law