Operating System - HP-UX
1752805 Members
5546 Online
108789 Solutions
New Discussion юеВ

Re: i need to increase the space in / and /var ...

 
SOLVED
Go to solution
inventsekar_1
Respected Contributor

i need to increase the space in / and /var ...

hpux11.11
and while installing ovo8
it says that insufficent disk space in / and /var, 510mb and 650mb respectively..
here bdf:

--------------------------------
bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 82568 958480 8% /
/dev/vg00/lvol1 298928 75016 194016 28% /stand
/dev/vg00/lvol8 4710400 4455944 252752 95% /var
/dev/vg00/lvol7 4194304 1176552 2994200 28% /usr
/dev/vg01/lvol2 4198400 2209167 1864937 54% /u01/app/oracle
/dev/vg00/lvol6 1048576 39752 1001632 4% /tmp
/dev/vg01/lvol1 4198400 1831242 2219213 45% /oradata
/dev/vg00/lvol5 6291456 2298584 3961720 37% /opt
/dev/vg00/lvol4 524288 2840 517384 1% /home
----------------------------

see the attchment,
and what do to..

thanks.
sekar
Be Tomorrow, Today.
17 REPLIES 17
njia_1
Trusted Contributor
Solution

Re: i need to increase the space in / and /var ...

Hi

have a look at /var/adm/crash to see if there are any dume files.

Do you have OnlineJFS installed ? if you do then it is easy.
lvextend -L 8192 /dev/vg00/lvol8
/usr/lbin/fs/vxfs/fsadm -b 8192M /var

this will increase /var to 8G of course, if you still have enough space left.

I have not done this for / before but I think it is the same. Correct me if I am wrong.

thanks
njia_1
Trusted Contributor

Re: i need to increase the space in / and /var ...

Hi

have a look at /var/adm/crash to see if there are any dump files.

Do you have OnlineJFS installed ? if you do then it is easy.
lvextend -L 8192 /dev/vg00/lvol8
/usr/lbin/fs/vxfs/fsadm -b 8192M /var

this will increase /var to 8G of course, if you still have enough space left.

I have not done this for / before but I think it is the same. Correct me if I am wrong.

thanks
Senthil Kumar .A_1
Honored Contributor

Re: i need to increase the space in / and /var ...

Hi Sekar,

Do not worry about / FS. I see no issues. Used percent is 8%.

/var is of some concern, the space could be retained by trimming log files. Go to SAM for trimming some log files. If you could not retain enough space u can consider extending it.

Though the link provided below is for extending /tmp FS, it is valid for /var aswell. The link contains solution for both cases, based on having online JFS or not. If you do not have online JFS, follow my instuctions in the below pasted link. Just one info, in my post ..use "bootwait" instead of "sysinit".

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1005254

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Arunvijai_4
Honored Contributor

Re: i need to increase the space in / and /var ...

Hi Sekar,

To increase / space, you need to re-ignite the system and do it again. There is no way of increasing / size without an Ignite.

Check this thread for more information,

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=70160

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Rajeev  Shukla
Honored Contributor

Re: i need to increase the space in / and /var ...

Extending lvol8 which your /var is ok using online JFS explained above, but you cant really do that for lvol3 (/).
As lvol3 needs to be contiguous filesystem with Bad block turned off.

I am not sure why you are getting error for / as i can see almost 900MB free. Best would be to extend /var and try the installation and if it still complains there are 2 ways to extend /

1. Using a make_recovery and restoring the system back using that.
2. Move lvol4 and lvol5 to another place and free up the extents after lvol3 and then extend your lvol3 using online JFS
inventsekar_1
Respected Contributor

Re: i need to increase the space in / and /var ...

thanks guys for ur support..
i will be working on it on monday..
i will update u on monday morning..

thanks,
sekar
Be Tomorrow, Today.
inventsekar_1
Respected Contributor

Re: i need to increase the space in / and /var ...

thanks u so much guys...
i did lvextend -L .... /dev/vg00/lvol8
and the /etc/inittab file entry.

my knowledge also extended with my logical volume.

one more question:
senthil:
u told that i can remove that line after rebooting.
if so, what does it mean..?
how system knows the extended size when rebooting next time?..

Be Tomorrow, Today.
Carlos Roberto Schimidt
Regular Advisor

Re: i need to increase the space in / and /var ...

Hi,

Yes, after your extend your filesystem, is not necessary run this command ever boot.

Schimidt
Nguyen Anh Tien
Honored Contributor

Re: i need to increase the space in / and /var ...

If you use hp-ux 11.11
There is only once way to extend / file system-
> you must use ignite
see below links for more
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=522776
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=983018

With /var file system
If online JFS is available on your system, you can do as:

# lvextend -L 8192 /dev/vg00/lvol8
#/usr/lbin/fs/vxfs/fsadm -b 8192M /var
Otherwise:
#init 1
#umount /var
#lvextend -L 8192 /dev/vg00/lvol8
#extendfs -F vxfs /dev/vg00/lvol8
#init 3
HTH
tienna
HP is simple