Operating System - HP-UX
1833839 Members
2043 Online
110063 Solutions
New Discussion

extend /temp directory sucess but bdf no diff

 
SOLVED
Go to solution
Fauziah Mahdan
Super Advisor

extend /temp directory sucess but bdf no diff

Hi all I need to extend my /temp directory from 200M to 2G
I run lvextend -L 2000 /dev/vg00/lvol4

Then go to lvdisplay -v /dev/vg00/lvol4
the lv size(MB) is 2000
but when i bdf the space available still 200M

Pls help

thanks
fauziah
6 REPLIES 6
AwadheshPandey
Honored Contributor

Re: extend /temp directory sucess but bdf no diff

u hav to unmount and extend file system also
umount /temp
extends -F vxfs /dev/vg00/rlol4
check if online JFS is available
swlist | grep -i online
if onlineJFS is there u can do it by fsadm
fsadm -F vxfs -b newsize /temp

Cheers,
Awadhesh
It's kind of fun to do the impossible
AwadheshPandey
Honored Contributor

Re: extend /temp directory sucess but bdf no diff

u hav to unmount and extend file system also
umount /temp
extends -F vxfs /dev/vg00/rlol4
check if online JFS is available
swlist | grep -i online
if onlineJFS is there u can do it by fsadm
fsadm -F vxfs -b 2147483648 /temp
man fsadm
Cheers,
Awadhesh
It's kind of fun to do the impossible
Fabio Ettore
Honored Contributor
Solution

Re: extend /temp directory sucess but bdf no diff

Hi,

you need to extend the filesystem standing on the logical volume:

umount /temp
(or /tmp?)

extendfs -F vxfs /dev/vg00/rlvol4

mount /temp

If you have OnLineJFS you can do that without umount/mount:

fsadm -F vxfs -b 200M /temp

HTH.

Best regards,
Fabio
WISH? IMPROVEMENT!
Fauziah Mahdan
Super Advisor

Re: extend /temp directory sucess but bdf no diff

when i run swlist | grep -i online only Online Diag B.11.23.06.07 Support Tools Bundle.

Another thing do I need to go to single user mode?

fauziah
Bill Hassell
Honored Contributor

Re: extend /temp directory sucess but bdf no diff

To go into single user mode, use the command:

shutdown -r 0

then carefully watch the reboot steps from the console. When the messages indicate you can interrupt the boot process within 10 seconds, press the Enter key on the console keyboard. Then say yes to booting from the primary disk and yes to interact with the boot loader. At the prompt, type the command:

hpux -is

and it will bootup to single user mode. Just type the command:

extendfs /dev/vg00/rlvol4

then run the commands:

mount /usr
mount /tmp
bdf /tmp

and you'll see the new size. The reason that lvextend does not complete the task is that LVM commands change the size of the disk but have nothing to do with filesystems.


Bill Hassell, sysadmin
Fauziah Mahdan
Super Advisor

Re: extend /temp directory sucess but bdf no diff

Thanks all for helping me. The command have to be done in single user mode.