Operating System - HP-UX
1834637 Members
2635 Online
110069 Solutions
New Discussion

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
Onur Karakan
Advisor

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

Hi sekar,
it is not possible to increase / filesystem with the LVM commands. You can only increase it with ignite.
Take ignite of your system
make_tape_recovery -Av

break in boot
search
boot p? (your tape drive)
No to interact with IPL

Press "Return" for the specified mode.
Yes to user interface

User interface will be appeared. Choose Install HP-UX.
Choose filesystems tab.
Then increase / filesystem size from here.

Best regards,
Onur
Steven E. Protter
Exalted Contributor

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

Shalom Sekar,


To increase root,

Take a make_tape_recovery backup of vg00.

Boot the system off this tape and press a key when prompted to get into the Ignite install interface.

Make root and var for that matter bigger.

Before you bother though, make sure you are not storing any real files in root. its really only there to provide path to other filesystems.

I keep root on HP-UX systems at 1 GB just to make mistakes less annoying. I rarely if ever use more than 200 MB.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
inventsekar_1
Respected Contributor

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

thank u all...
i incresed the space in /var
and i learnt from u that using tap only its possible to increse the space in /

thanks once again..
Be Tomorrow, Today.
Judy Anderson
New Member

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

I read this thread with interest, as I need to extend /usr and /var on my hpux 11.00 system. It looks like these instructions will work great for /var, but because lvextend and extendfs live on /usr, I'm imagining it won't work for that filesystem. What should I do?
Torsten.
Acclaimed Contributor

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

"What sould I do?"

Open your own thread for your own question!

This is usual in every forum.

BTW, you should boot to LVM maintenance mode and do the modification.

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!   
inventsekar_1
Respected Contributor

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

"It looks like these instructions will work great for /var, but because lvextend and extendfs live on /usr, I'm imagining it won't work for that filesystem"

the second "/usr" is "/var". typo error isnt?

no. not like that. where commands live doesnt matter.

anyhow no problem to ask a question inside another question. it is the question auther's responsibility to assign or not assign points.

Be Tomorrow, Today.
James R. Ferguson
Acclaimed Contributor

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

Hi Judy:

Do:

# whereis lvextend
# whereis extendfs

...and you will see that a statically-linked binary for each lives in '/sbin' which will thus be available in single-user mode.

Regards!

...JRF...
Judy Anderson
New Member

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

Thank you for your responses. I'll give it a go. Sorry for being a newbie :-)