Operating System - HP-UX
1833956 Members
1834 Online
110063 Solutions
New Discussion

Re: fail to extents swap space

 
SOLVED
Go to solution
George_206
Frequent Advisor

fail to extents swap space

hello all

cog_pw:/var/adm/syslog#vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
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 5088
Free PE 3592
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) 100
Current LE 25
Allocated PE 50
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/stale
LV Size (Mbytes) 500
Current LE 125
Allocated PE 250
Used PV 2

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

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

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

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

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

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

LV Name /dev/vg00/oracle
LV Status available/syncd
LV Size (Mbytes) 5000
Current LE 1250
Allocated PE 1250
Used PV 1

LV Name /dev/vg00/lvswap
LV Status available/stale
LV Size (Mbytes) 1536
Current LE 384
Allocated PE 768
Used PV 2


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

PV Name /dev/dsk/c1t2d0
PV Status unavailable
Total PE 4340
Free PE 2421
Autoswitch On


we have try

cbog_pw:/var/adm/syslog#lvextend -l 512 /dev/vg00/lvswap
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvswap" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy





cbog_pw:/var/adm/syslog#lvdisplay -v /dev/vg00/lvswap
--- Logical volumes ---
LV Name /dev/vg00/lvswap
VG Name /dev/vg00
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1536
Current LE 384
Allocated PE 768
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t2d0 384 384
/dev/dsk/c1t2d0 384 384

how we can increase the size of swap space from 1500 to 2500 Mb?

Elias
9 REPLIES 9
Wouter Jagers
Honored Contributor
Solution

Re: fail to extents swap space

Hi,

Swap space needs to be contiguous. The extension is an issue because most likely the space (on disk) "after" the swap space is already allocated somewhere else.

I would suggest making another (new) lvol for more swap. Create the new lvol (using lvcreate -r n -C y) and then use the swapon command.

Don't forget to add the new volume in fstab accordingly.

Cheers
an engineer's aim in a discussion is not to persuade, but to clarify.
Peter Godron
Honored Contributor

Re: fail to extents swap space

George_206
Frequent Advisor

Re: fail to extents swap space

thanks for the reply all.
it works fine.
Steve Lewis
Honored Contributor

Re: fail to extents swap space

I take it that you have noticed disk c1t2d0 is STALE / UNAVAILABLE in vg00, so your root disk mirror needs replacing?

George_206
Frequent Advisor

Re: fail to extents swap space

Steve,

Can you explain a little bit what this issue is about ?

Thank you.

George.
George_206
Frequent Advisor

Re: fail to extents swap space

I run iosccan

cbog_pw:/#ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.2.0 sdisk NO_HW DEVICE SEAGATE ST318404LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 304
/dev/cdrom /dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 3 0/4/0/0.1.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d0 /dev/rdsk/c4t1d0
disk 5 0/4/0/0.1.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c4t1d1 /dev/rdsk/c4t1d1
disk 4 0/7/0/0.0.0 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c5t0d0 /dev/rdsk/c5t0d0
disk 6 0/7/0/0.0.1 sdisk CLAIMED DEVICE HP C5447A
/dev/dsk/c5t0d1 /dev/rdsk/c5t0d1
isaac_loven
Frequent Advisor

Re: fail to extents swap space


PV Name /dev/dsk/c1t2d0
PV Status unavailable
This shows that the disk is dead.

There are two thing you should do:

1) call HP to replace the disk
2) Do some HPUX courses.
Isaac
George_206
Frequent Advisor

Re: fail to extents swap space

Thanks everyone.
We have called HP suppor tto replace the disk.
Thanks.

George.
George_206
Frequent Advisor

Re: fail to extents swap space

call HP support to replace the disk