1754370 Members
5192 Online
108813 Solutions
New Discussion юеВ

Can't mirror disk

 
Stefalap
Occasional Advisor

Can't mirror disk

We have VG00 configured with 11 LV.
I am trying to mirror each of them on the second disk and when i get to the LVOL9 i get the following error.


> lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c2t0d0

lvextend: Not enough free physical extents available.

Logical volume "/dev/vg00/lvol9" could not be extended.

Failure possibly caused by strict allocation policy




Here are some outputs that may help you



VGDISPLAY

vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 7866
Free PE 882
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 304
Current LE 19
Allocated PE 38
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 208
Current LE 13
Allocated PE 26
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 30000
Current LE 1875
Allocated PE 1875
Used PV 2

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 2

LV Name /dev/vg00/lvol11
LV Status available/syncd
LV Size (Mbytes) 12000
Current LE 750
Allocated PE 750
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t1d0
PV Status available
Total PE 4374
Free PE 0
Autoswitch On

PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4374
Free PE 882
Autoswitch On



LVDISPLAY

lvdisplay -v /dev/vg00/lvol9 | more
--- Logical volumes ---
LV Name /dev/vg00/lvol9
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 30000
Current LE 1875
Allocated PE 1875
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t1d0 1660 1660
/dev/dsk/c2t0d0 215 215



thanks
11 REPLIES 11
Tim Nelson
Honored Contributor

Re: Can't mirror disk

Need to add more disk to the VG, you ran out.

BTW, nice login name ;)

Jeff_Traigle
Honored Contributor

Re: Can't mirror disk

You have strict allocation set (this is default and a good thing), which means you can't mirror to a disk device that is already being used in the LV. In this case, you have 215 extents being used already so you can't use that device to mirror.
--
Jeff Traigle
Stefalap
Occasional Advisor

Re: Can't mirror disk

Thanks, Now i have to look at how to do this. :)

Stefalap
Occasional Advisor

Re: Can't mirror disk

I am taking over this server, and from what i know this was mirrored before using the present disks.
Is this due to something that changed in hte config, or is this normal because there are more data on the server.
Stefalap
Occasional Advisor

Re: Can't mirror disk

Jeff,

Can i move the 215 Extents back to c2t1d0?

then that would allow me to mirror it right?

Thanks
chris huys_4
Honored Contributor

Re: Can't mirror disk

Hi,

Only the volumes that have "allocated LE=2*current LE", i.e. lvol1 till lvol8, are mirrored.

lvol9, lvol10 and lvol11 are not mirrored and also cant be "mirrored" because there is simply not enough diskspace to mirror them.

Well, with some reorganisation, you could probably get lvol10 or lvol11 mirrored, but not both and certainly not lvol9.

Greetz,
Chris
Stefalap
Occasional Advisor

Re: Can't mirror disk

Jeff,

Can i move the 215 Extents back to c2t1d0?

then that would allow me to mirror it right?

Thanks
Stefalap
Occasional Advisor

Re: Can't mirror disk

Jeff,

Can i move the 215 Extents back to c2t1d0?

then that would allow me to mirror it right?

Thanks
Stefalap
Occasional Advisor

Re: Can't mirror disk

Thank you all for your quick responses.

it has helped me a lot