Operating System - HP-UX
1753264 Members
5150 Online
108792 Solutions
New Discussion

cluster VG need to recreate.

 
SOLVED
Go to solution
Arup_03
Occasional Advisor

cluster VG need to recreate.

Hi All

Filesystem need to extend to 700GB but due to the constraint of PE size it is not possible at present.

So we decided to recreate the VG.

Can you check & suggest the steps.

 hprx3410:/# bdf /ora_opl11/archive

Filesystem          kbytes    used   avail %used Mounted on

/dev/aopl1101/lv_archive

                   268431360 79522218 177102444   31% /ora_opl11/archive

 

 hprx3410:/# vgdisplay aopl1101

--- Volume groups ---

VG Name                     /dev/aopl1101

VG Write Access             read/write

VG Status                   available, exclusive

Max LV                      255

Cur LV                      1

Open LV                     1

Max PV                      16

Cur PV                      5

Act PV                      5

Max PE per PV               16546

VGDA                        10

PE Size (Mbytes)            4

Total PE                    82730

Alloc PE                    65535

Free PE                     17195

Total PVG                   0

Total Spare PVs             0

Total Spare PVs in use      0

VG Version                  1.0

VG Max Size                 1058944m

VG Max Extents              264736

 

hprx3410:/# lvdisplay /dev/aopl1101/lv_archive | more

--- Logical volumes ---

LV Name                     /dev/aopl1101/lv_archive

VG Name                     /dev/aopl1101

LV Permission               read/write

LV Status                   available/syncd

Mirror copies               0

Consistency Recovery        MWC

Schedule                    parallel

LV Size (Mbytes)            262140

Current LE                  65535

Allocated PE                65535

Stripes                     0

Stripe Size (Kbytes)        0

Bad block                   on

Allocation                  strict

IO Timeout (Seconds)        default

 regards

Arup

2 REPLIES 2
Bill Hassell
Honored Contributor
Solution

Re: cluster VG need to recreate.

The answer is to never use the default PE size when creating any VG.

In other words, -s should be mandatory for every VG you create. That forces you to evaluate the eventual size of the VG. If you VG is a few GB, use -s 16. But if it will be hundreds of GB (or in your case, around 1 TB or larger), use -s 128 or -s 256 for TB sized VGs. Since the VG you listed is about 300 GB, I am guessing that you want to add 400 GB for a total of 700GB. 

So how big will it get in a year or two? Better plan for multi-terabyte just in case. Use -s 256 and also set the maximum number of LUNs (-e option). Make it much bigger than you need. If you are running 11.31, consider creating version 2.0 or higher as these VGs offer more flexibility for resizing.



Bill Hassell, sysadmin
Arup_03
Occasional Advisor

Re: cluster VG need to recreate.

Thank you Bill for your suggestion. Yes I will follow the instructions.

As it is a clustered VG & what will be the best way to proceed. We will have the downtime.

 

regards

Arup