Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to resize /tmp?

Status
Not open for further replies.

263

Programmer
Aug 22, 2001
1
CN
I need to enlarge /tmp from 50M to 500M on HP UNIX 11.0
Are steps as follows correct?
Is there anything to be careful of? thanks!
Code:
#reboot 
hpux -lm 
#vgchange -a y vg00 
#lvextend -L 500 /dev/vg00/lvol4
#extendfs -F vxfs /dev/vg00/rlvol4
#mount /dev/vg00/lvol4/var 
#bdf 
#reboot
ps. the partitions are:
Code:
# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3     143573   34195   95020   26% /
/dev/vg00/lvol8     908016  423081  394133   52% /var
/dev/vg00/lvol7    1298353 1043176  125341   89% /usr
/dev/vg00/lvuser   81920000 77930952 3969096 95% /userdisk
/dev/vg00/lvol4      61389     414   54836    1% /tmp
/dev/vg00/lvol6    1097873  869836  118249   88% /opt
/dev/vg00/lvol5      23893   21326     177   99% /home
 
Hi 263,

First of all, do you have OnLineJFS installed, if so you can do it without the need to unmount /tmp by going into single user.
You can check by running
#swlist | grep OnLine

If not, this is the process

I am assuming that you have the space within vg00 to extend, if not sure
#vgdisplay /dev/vg00 | grep PE

Next you have to check whether the logical volume is contiguous

#usr/sbin/lvdisplay /dev/vg00/lvol4 | grep Allocation

If it says contiguous after strict, then it need to be disabled, but you need to establish why if so it was set in the first place
To extend /tmp, you need to shutdown and boot into single user

#shutdown -r now

when prompted to to interupt within 10 seconds, do so and

#bo pri

Enter y to interact with ISL and

#hpux -is

You will see only / and /stand mounted, now you can extend the logical volume and filessytem

#/sbin/lvextend -L 500 /dev/vg00/lvol4
#/sbin/extendfs -F vxfs /dev/vg00/rlvol4

Then boot into multiuser, with either a reboot or change of init

#shutdown -r now
OR
#init 3 (assuming multiuser is init3, you can check by the initdefault in /etc/inittab)

Hope this helps
Queenie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top