Operating System - HP-UX
1752794 Members
6225 Online
108789 Solutions
New Discussion

Re: Error Mirroring Swap Area

 
SOLVED
Go to solution
diego delgado
Advisor

Error Mirroring Swap Area

hi all,
i should do a mirror of swap area but doing lvextend i reiceive this error :

lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t15d0
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol2" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy


I have free PE on disk :
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 1024
Allocated PE 1024
Used PV 1

PV Name /dev/dsk/c1t15d0
PV Status available
Total PE 4340
Free PE 1229
Autoswitch On

i removed the contiguos option with lvchange and did it not workin yet,
i haven't anymore space available.

Thanks in advance

Diego
7 REPLIES 7
Solution

Re: Error Mirroring Swap Area

You shouldn't ever remove the contiguous option from a swap LV. It needs to be contiguous.

If you don't have enough space, you don't have enough space - there's no way around that... how many PVs do you have in the VG?

post output of vgdisplay -v vg00

also remember you can have multiple swap LVs and only one really needs to be in vg00 - maybe you have space on other disks in other VGs?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
James R. Ferguson
Acclaimed Contributor

Re: Error Mirroring Swap Area

Hi Diego:

Device swap must be allocated in contiguous extents.

As for the strict allocation policy, ask yourself why you would want mirrors of a logical volume to be able to exist on the same physical disk. Mirroring is designed for high-availabliity. If a physical disks fails, you want to be able to access your mirrored data and that's why you want a copy on a separate physical volume.

As for increasing swap space, there is no need to increase primary device swap. In fact, it is very difficult to do. More importantly, there is _no_ need to increase primary swap. Simply add secondary device swap space as needed.

Regards!

...JRF...
diego delgado
Advisor

Re: Error Mirroring Swap Area

hi Duncan,
vgdisplay -v 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 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 4922
Free PE 3758
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 300
Current LE 75
Allocated PE 150
Used PV 2

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

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 200
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 200
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 20
Current LE 5
Allocated PE 10
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 1040
Current LE 260
Allocated PE 520
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 1388
Current LE 347
Allocated PE 694
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 4596
Current LE 1149
Allocated PE 1149
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 700
Current LE 175
Allocated PE 175
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 3500
Current LE 875
Allocated PE 875
Used PV 1

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


--- Physical volumes ---
PV Name /dev/dsk/c3t15d0
PV Status available
Total PE 4340
Free PE 2529
Autoswitch On

PV Name /dev/dsk/c1t15d0
PV Status available
Total PE 4340
Free PE 1229
Autoswitch On


and unlucky i haven't space in other disks.

tnx
Ganesan R
Honored Contributor

Re: Error Mirroring Swap Area

Hi Diego,

Your VG00 configurations looks wired. There are few lv's in stale state. You should fix those issues as well.

And also do not keep any data volumes in VG00. So that you will have enough space to mirror all root vg logical volumes.

It is must to have mirror for all root lv's to make admin life easy.
Best wishes,

Ganesh.
diego delgado
Advisor

Re: Error Mirroring Swap Area

yes Ganesan,
i know i got more LVs in stale status and this is the reason for my question..
all my available disks are broking..
and iìm trying to do a mirror for be sure that the server will rebooing because now i have some lv's on a disk and other in the second disk..

Torsten.
Acclaimed Contributor

Re: Error Mirroring Swap Area

All your lvols that resides on 2 PVs are stale.

Check if a disk is bad!

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

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!   
Ganesan R
Honored Contributor

Re: Error Mirroring Swap Area

Hi Diego,

The best option is move non-root lv's to some other volume groups by move/copy.So you will get enough space on both disks.

Make sure the first disk has only the primary copy of the data. Remove the stale copy and remirror all the lv's to the second disk.

This will make the clean root vg configuration.This steps may consume some time. but will make our life without troubles.

Best wishes,

Ganesh.