1753774 Members
7061 Online
108799 Solutions
New Discussion

Re: Extending striped LV

 
SOLVED
Go to solution
Carl Munnelly
Frequent Advisor

Extending striped LV

I have been asked to increase the size of customners LV.

I used to be able to do this in my sleep but not touch HPUX now for 5 yrs.

 

Here scenario customer running HPUX 11.11 I know old hat unsupported etc etc but hey ho have to support what they have.

 

VG has Free PP see details below:

 

--- Volume groups ---
VG Name                     /dev/XXXXX
VG Write Access             read/write
VG Status                   available, exclusive
Max LV                      255
Cur LV                      14
Open LV                     14
Max PV                      32
Cur PV                      24
Act PV                      24
Max PE per PV               15359
VGDA                        48
PE Size (Mbytes)            4
Total PE                    230340
Alloc PE                    227436
Free PE                     2904
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

 

 

--- Logical volumes ---

LV Name                     /dev/XXXXX/lvol13

VG Name                     /dev/XXXXX

LV Permission               read/write

LV Status                   available/syncd

Mirror copies               0

Consistency Recovery        MWC

Schedule                    striped

LV Size (Mbytes)            163872

Current LE                  40968

Allocated PE                40968

Stripes                     12

Stripe Size (Kbytes)        8

Bad block                   on

Allocation                  strict

IO Timeout (Seconds)        default

 

Now there are 24 discs within VG of which 12 have 144 PE and 12 have 98 PE.

The LV is made of 12 x 8K stripes and the volume has 2904 PE @ 4Mb free

 

So there is 11616Mb free to allocatein volume group

 

Customer wants all spaced allocated to LV

 

Any help would be greatly apreciated.....

 

I know I have to extend on 12 discs at a time.

 

It's the command to do that thats eluding me

2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Extending striped LV

Try this:

 

1) Extend onto the 12 disks witwh 144 PE each available (1728 PE total) for a total of 42696 (40968+1728):

lvextend -l 42696 /dev/XXXXX/lvol13

 

If that is successful, then:

 

2) Extend onto the 12 disks with 98 PE each available (1176 total) for a total of 43872 (42696+1176):

lvextend -l 43872 /dev/XXXXX/lvol13

 

If that is successful, then you can use fsadm to extend the file system (if you have online JFS):

 

fsadm -b 175488m /mount_point_name

 

If you don't have Online JFS, then you'll need to unmount the file system and use extendfs to extend it.

Carl Munnelly
Frequent Advisor

Re: Extending striped LV

**bleep** how easy it is forget my good old HP days. Worked on HP for 20 yrs but not in last 10 and forgotten it all already.

 

As soon as saw solution it all came flooding back

 

Thanks