Operating System - HP-UX
1829489 Members
1829 Online
109991 Solutions
New Discussion

increasing the size of /tmp... /dev/vg00/lvol4

 
SOLVED
Go to solution
Grayh
Trusted Contributor

increasing the size of /tmp... /dev/vg00/lvol4

This is a continuation of the following thread

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1285385

my lvdisplay looks like below

--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Stripes 2
Stripe Size (Kbytes) 64
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t1d0s2 32 32
/dev/dsk/c0t0d0 32 32

--- Logical extents ---
LE PV1 PE1 Status 1

# vgdisplay -v /dev/vg00 | grep -i free
Free PE 1597
Free PE 1590
Free PE 7
#

# vgdisplay -v
--- 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 1
Act PV 1
Max PE per PV 5016
VGDA 2
PE Size (Mbytes) 8
Total PE 5006
Alloc PE 4824
Free PE 182
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

how to increase lvol4 to may be 10GB
9 REPLIES 9
Grayh
Trusted Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

Did the following in single user mode

# lvextend -l 1527 /dev/vg00/lvol4
Warning: rounding up logical volume size to extent boundary at size "12224" MB f
or striping.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
# lvextend -L 1527 /dev/vg00/lvol4
Warning: rounding up logical volume size to extent boundary at size "1528" MB.
Warning: rounding up logical volume size to extent boundary at size "1536" MB fo
r striping.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol4" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
#

# lvremove /dev/vg00/lvol4
The logical volume "/dev/vg00/lvol4" is not empty;
do you really want to delete the logical volume (y/n) : y
lvremove: Couldn't delete logical volume "/dev/vg00/lvol4":
The specified logical volume is open, or
a sparing operation is in progress.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f

Could u gurus give me the exact steps to increase /tmp... I need to increase /tmp on 6 of my servers...
Johnson Punniyalingam
Honored Contributor
Solution

Re: increasing the size of /tmp... /dev/vg00/lvol4

Free PE 182 * PE Size (Mbytes) 8 = 1456 MB or 1.4GB only free space left , cannot increase lvol4 to may be 10GB, No enough Free disk space.

Thanks,
Johnson


Problems are common to all, but attitude makes the difference
Grayh
Trusted Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

# vgdisplay -v /dev/vg00 | grep -i free
Free PE 1597
Free PE 1590
Free PE 7

1590 * 8 = 12720 MB = 12.42 GB is the total space left here....

You got confused with my previous thread....
Let us solve this first and then I will explain about the second one... it is a different issue...

Johnson Punniyalingam
Honored Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

>> 1590 * 8 = 12720 MB = 12.42 GB is the total space left here....
<<

lvextend -L /dev/vg00/lvolX

Online - JFS .? if not

need to go to single user mode do

extendfs -F vxfs /dev/vg00/rlvolx
Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

try to increse the lvol4 or /tmp by 5 GB first than again another 5GB

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Andres_13
Respected Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

Once anything else has failed your best option is restore an ignite backup and modify original file system size.

Regrads!
Ninad_1
Honored Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

Hi,

Your lvol4 is striped and has a strict allocation policy set, with number of stripes = 2.
Means the current size, which is 512 MB is allocated from the 2 Physical volumes in your /dev/vg00 (/dev/dsk/c0t1d0s2 & /dev/dsk/c0t0d0) with 256 MB allocated from each PV - see the 32 PE on PV in your lvdisplay output.

Now when you want to extend the lvol4 by say 10 GB, then there should be 5 GB space free available on 2 disks/PVs in your /dev/vg00, only then you will be able to extend the lvol4.

see man page of lvcreate and read the section for option -s (strict allocation policy) for striping - which will help you understand better.

You can also post the output of vgdisplay -v /dev/vg00 - where you would be able to see how many PEs are free in each of the PV (disk) in /dev/vg00.

Hope this clarifies.

Regards,
Ninad
Torsten.
Acclaimed Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

Hi Grayh,

I told you the same in the original thread already.

The lvol4 is striped, so you need the same amount of free space on **both** disks.

You may consider to go into single user mode, lvremove lvol4 (/tmp) and re-create it without striping.

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!   
Grayh
Trusted Contributor

Re: increasing the size of /tmp... /dev/vg00/lvol4

thanks everyone