1819828 Members
3118 Online
109607 Solutions
New Discussion

Add more lv on FRA VGs.

 
Aamir14
Regular Advisor

Add more lv on FRA VGs.

Hi,

 

I have tow node (Prodata1 and Prodata2)

and i created a FRA disk on each node on last year.

 

on each node two LVs :

 

 

uatdata2#ll /dev/data1/
total 0
brwxrwxrwx   1 dbuser     dba         64 0x080002 Apr 26 18:13 UATARC01
brwxrwxrwx   1 dbuser     dba         64 0x080001 Apr 26 18:13 UATDATA01
crwxrwxrwx   1 dbuser     dba         64 0x080000 Apr 26 18:13 group
crwxrwxrwx   1 dbuser     dba         64 0x080002 Apr 26 18:13 rUATARC01
crwxrwxrwx   1 dbuser     dba         64 0x080001 Apr 26 18:13 rUATDATA01

 

uatdata1 /#ll /dev/data1/
total 0
brwxrwxrwx   1 dbuser     dba         64 0x040002 Jan  5  2011 UATARC01
brwxrwxrwx   1 dbuser     dba         64 0x040001 Jan  5  2011 UATDATA01
crwxrwxrwx   1 dbuser     dba         64 0x040000 Jan  4  2011 group
crwxrwxrwx   1 dbuser     dba         64 0x040002 Jan  4  2011 rUATARC01
crwxrwxrwx   1 dbuser     dba         64 0x040001 Jan  4  2011 rUATDATA01

 

But i want to Add more Logical Volumes.

 

How can add more Disk or lv on data1 volume.

 

 

 

9 REPLIES 9
Ken Grabowski
Respected Contributor

Re: Add more lv on FRA VGs.

Did you use LVM to create volume groups and logical volumes?  What is your output from vgdisplay -v ?

Aamir14
Regular Advisor

Re: Add more lv on FRA VGs.

Thanks for reply.

 

Yes i had used LVM to create VGs.

 

My vgdisplay out are :---

 

Please see my Attached file.(because its large)
         

 

 

Thanks

 

Aamir

Aamir14
Regular Advisor

Re: Add more lv on FRA VGs.

Hi,

 

I also created net LV (testing) but on /dev/data1 VG.

 

uatdata1 /#ll /dev/data1/
total 0
brwxrwxrwx   1 dbuser     dba         64 0x040002 Jan  5  2011 UATARC01
brwxrwxrwx   1 dbuser     dba         64 0x040001 Jan  5  2011 UATDATA01
crwxrwxrwx   1 dbuser     dba         64 0x040000 Jan  4  2011 group
crwxrwxrwx   1 dbuser     dba         64 0x040002 Jan  4  2011 rUATARC01
crwxrwxrwx   1 dbuser     dba         64 0x040001 Jan  4  2011 rUATDATA01
crwxrwxrwx   1 dbuser     dba         64 0x040003 Jul 15 15:50 rtesting
brwxrwxrwx   1 dbuser     dba         64 0x040003 Jul 15 15:50 testing

 

 

but my DBA user told its not see the on FRA disk area .

Aamir14
Regular Advisor

Re: Add more lv on FRA VGs.

Hello.

 

I am awaiting of your precious reply.

 

Thanks

Aamir

Torsten.
Acclaimed Contributor

Re: Add more lv on FRA VGs.

HOW did you create the LVOL???

The vgdisplay output shows it is inconsistent and have a size of 0.

Cur LV                      4     
Open LV                     3     

...
LV Name /dev/data1/testing
LV Status available/syncd
LV Size (Mbytes) 0
Current LE 0
Allocated PE 0
Used PV 0



Did you use "lvcreate"???

or

did you just create the special files?

 

 

 

BTW, with 11.31 you should use the new agile device files when creating volume groups (do "man vgdsf").


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!   
Ken Grabowski
Respected Contributor

Re: Add more lv on FRA VGs.

Sorry, I should have told you to do "vgdisplay -v /dev/data1" to show just that one volume group.  You currently have a lot of free space in this group. Your disk19 is fully assigned, but disk20 has 3358 of a total 3999 Physical Extends (PE) available. Your PE size is 32Mbytes, so 32*3358=107456MB available for new logical volumes.

 

You already added a testing LV with size zero.  If you had used the "-L 100" option it would have been 100MB in size. For example:

lvcreate -L 100 -n testing /dev/data1

 

To add a newly allocated disk to the volume group. After your storage team has allocated it, discover with "ioscan -fnC disk".  Create the physical devices for it with "insf -C disk".  Once you have done that you must initialize the disk for use in LVM with "pvcreate /dev/rdisk/disk##". Make sure you have the correct "NEW" disk before running pvcreate.  If you run it on a active production disk you will trash the disk. Now you can add it to the volume group with "vgextend /dev/data1 /dev/disk/disk##".

 

You can of course find information on each of these commands in their respective man pages by typing "man command".  I strongly suggest you download and study the admin guide for LVM and the Mass Storage Device naming documents. They do an excellent job of explaining LVM and Agile devices under 11iv3.

LVM Admin Guide

Mass Storage Device Naming

 

Torsten.
Acclaimed Contributor

Re: Add more lv on FRA VGs.

And finally - since this is a cluster - you need to "export" this new LVM configuration to the other node. Don't forget!

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!   
Aamir14
Regular Advisor

Re: Add more lv on FRA VGs.

Hi,

Thanks for Helpful advice.

 

I will down the servers

 on Saturday night and i will try it.

Because it my Productions servers .

 

Thanks

Aamir

 

 

 

 

Ken Grabowski
Respected Contributor

Re: Add more lv on FRA VGs.

Caution can never be faulted. You should always follow your change control process. But adding disk, volume groups, and logical volumes are normally done with the systems up and active.