1830899 Members
2608 Online
110017 Solutions
New Discussion

can't extend /tmp

 
SOLVED
Go to solution
Richard Laperle_1
Occasional Contributor

can't extend /tmp

Hello,

I'm attempting to extend /tmp by 6GB. I have been able to add 23 PE but no more. Is there a kernel parameter I need to increase?

/dev/dsk/c16t3d5 is where I want to extend.

Here are the details....
Thank you for you help.

Richard Laperle
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 4328
VGDA 6
PE Size (Mbytes) 16
Total PE 9029
Alloc PE 8656
Free PE 373
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) 32768
Current LE 2048
Allocated PE 4096
Used PV 2

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

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 368
Current LE 23
Allocated PE 46
Used PV 3

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

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 4032
Current LE 252
Allocated PE 504
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 4304
Current LE 269
Allocated PE 538
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 27040
Current LE 1690
Allocated PE 3380
Used PV 2


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

PV Name /dev/dsk/c2t1d0s2
PV Status available
Total PE 4328
Free PE 0
Autoswitch On

PV Name /dev/dsk/c16t3d5
PV Status available
Total PE 383
Free PE 373
Autoswitch On

6 REPLIES 6
D Block 2
Respected Contributor

Re: can't extend /tmp

Richard,

I see only a max allocation of 5968 Mb.
that is: PE Size (Mbytes) = 16, and Free PE 373.

thus, 16 Mb x 373 = 5968 Mb or ~5.9 GG.

can you retry, using 5 GB or an allocation of: lvextend -L 5968 or even lvextend -l 373

Golf is a Good Walk Spoiled, Mark Twain.
KapilRaj
Honored Contributor

Re: can't extend /tmp

6 GB of /tmp is too large. why do you need it ?. What is the error that you get ?

Kaps
Nothing is impossible
Sarjerao
Frequent Advisor
Solution

Re: can't extend /tmp

as per config,
tmp file system is mirrored, lvdisplay /dev/vg00/lvol5 will show you the disk associated for tmp fs.
pv1 and pv2 no free pe left. Still if you planning to extend this, first remove mirror for tmp fs and extend it. Then your tmp fs can be upto 6 GB
zhaidc_1
Occasional Contributor

Re: can't extend /tmp

I agree with Sarjerao, you should use lvreduce the mirror then extend this lv
Richard Laperle_1
Occasional Contributor

Re: can't extend /tmp

Thank you for the replies.

Ther mirror is local disks. The disk that I'm atempting to extend to id a raid5 from and eva5000. Would I still have to break the mirror and extend with two eva5000 disks?

Also tried Tom Dineen suggestion... Here is ther error.

ml01_root> lvextend -l 373 /dev/vg00/lvol4
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
Failure possibly caused by strict allocation policy

Richard Laperle_1
Occasional Contributor

Re: can't extend /tmp

Breaking up the mirror worked. I was able to extend /tmp. Thanks...

I tried to mirror it back together and got the following...

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

Which makes sense because the volume is larger than is was prior. Is there a way that I can just mirror the PV extents to the end of /dev/dsk/c2t1d0s2 ?