Operating System - HP-UX
1829891 Members
2341 Online
109993 Solutions
New Discussion

Lvextend w/ strict allocation policy

 
rleon
Regular Advisor

Lvextend w/ strict allocation policy

I have a request to use the remaining PE's to extend one particular lvol. The PE's break down into 2 x 4 disk.

The lvol already has 8 disk with 11776 LE's.

But when i try to do an lvextend to the next LE I get the following error.

#/usr/sbin/lvextend -l 11777 /dev/vgorPFSA/lvol14 /dev/dsk/c9t1d2

It is already set up with one LE on each disk.

( this is the middle where disk changes )
08624 /dev/dsk/c9t2d0 02156 current
08625 /dev/dsk/c9t2d1 02156 current
08626 /dev/dsk/c9t2d2 02156 current
08627 /dev/dsk/c9t2d3 02156 current
08628 /dev/dsk/c9t3d3 01280 current
08629 /dev/dsk/c9t3d4 01280 current
08630 /dev/dsk/c9t3d5 01280 current
08631 /dev/dsk/c9t3d6 01280 current

with the last one being ..

11768 /dev/dsk/c9t3d3 02065 current
11769 /dev/dsk/c9t3d4 02065 current
11770 /dev/dsk/c9t3d5 02065 current
11771 /dev/dsk/c9t3d6 02065 current
11772 /dev/dsk/c9t3d3 02066 current
11773 /dev/dsk/c9t3d4 02066 current
11774 /dev/dsk/c9t3d5 02066 current
11775 /dev/dsk/c9t3d6 02066 current


The question is do I add the other 3 disk to do my lvextend?

What will it do if since i only want to test by extending to the next LE 11777.

Thanks


7 REPLIES 7
rleon
Regular Advisor

Re: Lvextend w/ strict allocation policy


opps error is:

#/usr/sbin/lvextend -l 11777 /dev/vgorPFSA/lvol14 /dev/dsk/c9t1d2
Warning: rounding up logical volume size to extent boundary at size "47120" MB for striping.
Need more PVs for "4" Stripes. Only have "1" PVs.
Failure possibly caused by strict allocation policy
Sandman!
Honored Contributor

Re: Lvextend w/ strict allocation policy

From your posting it looks like the lvol is striped across four PVs so what you are trying to do is invalid. Please post (better attach) output of the command:

# lvdisplay -v /dev/vgorPFSA/lvol14
rleon
Regular Advisor

Re: Lvextend w/ strict allocation policy

lvoutput is too big

--- Logical volumes ---
LV Name /dev/vgorPFSA/lvol14
VG Name /dev/vgorPFSA
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 47104
Current LE 11776
Allocated PE 11776
Stripes 4
Stripe Size (Kbytes) 64
Bad block NONE
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c9t2d0 2157 2157
/dev/dsk/c9t2d1 2157 2157
/dev/dsk/c9t2d2 2157 2157
/dev/dsk/c9t2d3 2157 2157
/dev/dsk/c9t3d3 787 787
/dev/dsk/c9t3d4 787 787
/dev/dsk/c9t3d5 787 787
/dev/dsk/c9t3d6 787 787
----------------
I already have 8 disk in the lvol. I need to add 8 more disk that have free PE's and that are part of the vg.
---------------------
--- Volume groups ---
VG Name /dev/vgorPFSA
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 14
Open LV 14
Max PV 64
Cur PV 20
Act PV 20
Max PE per PV 2157
VGDA 40
PE Size (Mbytes) 4
Total PE 43140
Alloc PE 42152
Free PE 988
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vgorPFSA/lvol1
LV Status available/syncd
LV Size (Mbytes) 24400
Current LE 6100
Allocated PE 6100
Used PV 4

LV Name /dev/vgorPFSA/lvol2
LV Status available/syncd
LV Size (Mbytes) 21504
Current LE 5376
Allocated PE 5376
Used PV 4

LV Name /dev/vgorPFSA/lvol3
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 768
Allocated PE 768
Used PV 4

LV Name /dev/vgorPFSA/lvol4
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 2560
Allocated PE 2560
Used PV 4

LV Name /dev/vgorPFSA/lvol5
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 4

LV Name /dev/vgorPFSA/lvol6
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 4

LV Name /dev/vgorPFSA/lvol7
LV Status available/syncd
LV Size (Mbytes) 22736
Current LE 5684
Allocated PE 5684
Used PV 12

LV Name /dev/vgorPFSA/lvol8
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 4

LV Name /dev/vgorPFSA/lvol9
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 2000
Allocated PE 2000
Used PV 4

LV Name /dev/vgorPFSA/lvol10
LV Status available/syncd
LV Size (Mbytes) 8000
Current LE 2000
Allocated PE 2000
Used PV 4

LV Name /dev/vgorPFSA/lvol11
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 1536
Allocated PE 1536
Used PV 4

LV Name /dev/vgorPFSA/lvol12
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 1024
Allocated PE 1024
Used PV 4

LV Name /dev/vgorPFSA/lvol13
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 2560
Allocated PE 2560
Used PV 4

LV Name /dev/vgorPFSA/lvol14
LV Status available/syncd
LV Size (Mbytes) 47104
Current LE 11776
Allocated PE 11776
Used PV 8


--- Physical volumes ---
PV Name /dev/dsk/c9t0d0
PV Name /dev/dsk/c12t0d0 Alternate Link
PV Name /dev/dsk/c17t0d0 Alternate Link
PV Name /dev/dsk/c21t0d0 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d1
PV Name /dev/dsk/c12t0d1 Alternate Link
PV Name /dev/dsk/c17t0d1 Alternate Link
PV Name /dev/dsk/c21t0d1 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d2
PV Name /dev/dsk/c12t0d2 Alternate Link
PV Name /dev/dsk/c17t0d2 Alternate Link
PV Name /dev/dsk/c21t0d2 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d3
PV Name /dev/dsk/c12t0d3 Alternate Link
PV Name /dev/dsk/c17t0d3 Alternate Link
PV Name /dev/dsk/c21t0d3 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d4
PV Name /dev/dsk/c12t0d4 Alternate Link
PV Name /dev/dsk/c17t0d4 Alternate Link
PV Name /dev/dsk/c21t0d4 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d5
PV Name /dev/dsk/c12t0d5 Alternate Link
PV Name /dev/dsk/c17t0d5 Alternate Link
PV Name /dev/dsk/c21t0d5 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t0d7
PV Name /dev/dsk/c12t0d7 Alternate Link
PV Name /dev/dsk/c17t0d7 Alternate Link
PV Name /dev/dsk/c21t0d7 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t1d0
PV Name /dev/dsk/c12t1d0 Alternate Link
PV Name /dev/dsk/c17t1d0 Alternate Link
PV Name /dev/dsk/c21t1d0 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t1d2
PV Name /dev/dsk/c12t1d2 Alternate Link
PV Name /dev/dsk/c17t1d2 Alternate Link
PV Name /dev/dsk/c21t1d2 Alternate Link
PV Status available
Total PE 2157
Free PE 157
Autoswitch On

PV Name /dev/dsk/c9t1d3
PV Name /dev/dsk/c12t1d3 Alternate Link
PV Name /dev/dsk/c17t1d3 Alternate Link
PV Name /dev/dsk/c21t1d3 Alternate Link
PV Status available
Total PE 2157
Free PE 157
Autoswitch On

PV Name /dev/dsk/c9t1d4
PV Name /dev/dsk/c12t1d4 Alternate Link
PV Name /dev/dsk/c17t1d4 Alternate Link
PV Name /dev/dsk/c21t1d4 Alternate Link
PV Status available
Total PE 2157
Free PE 157
Autoswitch On

PV Name /dev/dsk/c9t1d5
PV Name /dev/dsk/c12t1d5 Alternate Link
PV Name /dev/dsk/c17t1d5 Alternate Link
PV Name /dev/dsk/c21t1d5 Alternate Link
PV Status available
Total PE 2157
Free PE 157
Autoswitch On

PV Name /dev/dsk/c9t2d0
PV Name /dev/dsk/c12t2d0 Alternate Link
PV Name /dev/dsk/c17t2d0 Alternate Link
PV Name /dev/dsk/c21t2d0 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t2d1
PV Name /dev/dsk/c12t2d1 Alternate Link
PV Name /dev/dsk/c17t2d1 Alternate Link
PV Name /dev/dsk/c21t2d1 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t2d2
PV Name /dev/dsk/c12t2d2 Alternate Link
PV Name /dev/dsk/c17t2d2 Alternate Link
PV Name /dev/dsk/c21t2d2 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t2d3
PV Name /dev/dsk/c12t2d3 Alternate Link
PV Name /dev/dsk/c17t2d3 Alternate Link
PV Name /dev/dsk/c21t2d3 Alternate Link
PV Status available
Total PE 2157
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t3d3
PV Name /dev/dsk/c12t3d3 Alternate Link
PV Name /dev/dsk/c17t3d3 Alternate Link
PV Name /dev/dsk/c21t3d3 Alternate Link
PV Status available
Total PE 2157
Free PE 90
Autoswitch On

PV Name /dev/dsk/c9t3d4
PV Name /dev/dsk/c12t3d4 Alternate Link
PV Name /dev/dsk/c17t3d4 Alternate Link
PV Name /dev/dsk/c21t3d4 Alternate Link
PV Status available
Total PE 2157
Free PE 90
Autoswitch On

PV Name /dev/dsk/c9t3d5
PV Name /dev/dsk/c12t3d5 Alternate Link
PV Name /dev/dsk/c17t3d5 Alternate Link
PV Name /dev/dsk/c21t3d5 Alternate Link
PV Status available
Total PE 2157
Free PE 90
Autoswitch On

PV Name /dev/dsk/c9t3d6
PV Name /dev/dsk/c12t3d6 Alternate Link
PV Name /dev/dsk/c17t3d6 Alternate Link
PV Name /dev/dsk/c21t3d6 Alternate Link
PV Status available
Total PE 2157
Free PE 90
Autoswitch On


Sandman!
Honored Contributor

Re: Lvextend w/ strict allocation policy

----------------
I already have 8 disk in the lvol. I need to add 8 more disk that have free PE's and that are part of the vg.
---------------------

You need to lvextend lvol14 over 4 PVs only in order to take care of the striping requirements. You don't need to add 8 PVs in order to do what you are trying to.

~hope it helps
Sandman!
Honored Contributor

Re: Lvextend w/ strict allocation policy

I hit the button prematurely...what I was trying to say is that you can lvextend lvol14 by a multiple of 4 extents owing to the striped policy viz.,

#/usr/sbin/lvextend -l 11779 /dev/vgorPFSA/lvol14
OR
vgextend vgorPFSA by 4 PVs and then lvextend lvol14 onto them viz.,
tkc
Esteemed Contributor

Re: Lvextend w/ strict allocation policy

Earlier, when the logical volume /dev/vgorPFSA/lvol14 got created, it was probably created using the -i option to set the number of disks in the volume group as 4.
tkc
Esteemed Contributor

Re: Lvextend w/ strict allocation policy

--- Logical volumes ---
LV Name /dev/vgorPFSA/lvol14
VG Name /dev/vgorPFSA
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 47104
Current LE 11776
Allocated PE 11776
Stripes 4 <=== using option i=4 when first created
Stripe Size (Kbytes) 64 <=== using option I=64 when first created
Bad block NONE
Allocation strict
IO Timeout (Seconds) default