Operating System - HP-UX
1753730 Members
4635 Online
108799 Solutions
New Discussion юеВ

Re: How to make more free space on root LV

 
subodhbagade
Regular Advisor

How to make more free space on root LV

All Expert..

We having the Hp-ux server of version 11.23 and sap application running on it.

Need your help for following case.---

(1) Root file system ( / ) become 94% and want to make more free space on it.Server donn't having online JFS installed and we can not extend root FS it's size is fixed only during installation from ignite -tape.

(2) I tried following to find large files as

#du -kx |sort -rn |more

496272 /
207152 /etc
184344 /nsr
184144 /nsr/applogs
173544 /etc/vx
106664 /etc/vx/type
102992 /sbin
65608 /etc/vx/static.d
62656 /etc/vx/static.d/build
42432 /etc/vx/type/static
28440 /etc/vx/type/gen
22928 /sbin/fs
21720 /etc/vx/type/raid5
17640 /etc/opt
14064 /etc/vx/type/fsgen
13368 /sbin/fs/vxfs
9528 /etc/opt/resmon
8320 /etc/lp
6560 /etc/lp/interface
5624 /sbin/fs/vxfs4.1
5256 /etc/lp/interface/model.orig
4912 /etc/opt/resmon/lbin
4560 /etc/opt/wbem
4544 /etc/opt/wbem/mof
3448 /etc/vx/type/fsgen/fs.d/vxfs
3448 /etc/vx/type/fsgen/fs.d
3248 /etc/opt/resmon/log
2960 /etc/lvmconf
2952 /etc/vx/static.d/default
2760 /sbin/fs/hfs
2296 /etc/opt/cifsclient
2248 /etc/opt/cifsclient/unitables
1256 /sbin/init.d
1120 /.mozilla
1104 /.mozilla/default/ott9dpt3.slt
1104 /.mozilla/default
1008 /etc/opt/resmon/lib
960 /etc/X11
896 /etc/dt
880 /etc/dt/appconfig
872 /etc/lp/member
872 /etc/dt/appconfig/types
864 /etc/dt/appconfig/types/C
688 /etc/rc.config.d
640 /sbin/lib
440 /etc/lp/sinterface
440 /etc/lp/cinterface
432 /etc/vx/vras

(3)
cd /etc/opt/resmon/log
ls
api.log api.log.old client.log client.log.old emsagent.log registrar.log reslog.html reslog.old.html


Is it possible to move the old log files to other file system (or by soft link)..like

(a)api.log.old (b) client.log.old (c) reslog.old.html

(4) OR is there are any other solution or i can move to get more free space on root (/).

Thanks in advance.

Subodh.
12 REPLIES 12
sujit kumar singh
Honored Contributor

Re: How to make more free space on root LV

Hi


1)Check for the NSR logs at /nsr , ask the application team if they can be moved to some other filesystems or can be kept at other location. That consumes a lot of space.

2) Ignite is the most Safe and Reliabale way of doing the Root LV increase.

3)In the unconvential ways if possiblr and having free space in the VG, the pvmove for the lvol4 can be tried if that is not defined as a Contiguous Volume, generally that use to be /tmp.


Regards
Sujit

Pete Randall
Outstanding Contributor

Re: How to make more free space on root LV

I would suggest that you move /nsr elsewhere. I'm not sure what it is, but I don't think it NEEDS to be part of the root VG.

If you have some spare space you can create another VG/FS and move /nsr to it, giving you plenty of space in /.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: How to make more free space on root LV

Shalom,

You have data in /etc, not only configuration files.

Clean it up.

207152 /etc
184344 /nsr
184144 /nsr/applogs
173544 /etc/vx
106664 /etc/vx/type
102992 /sbin
65608 /etc/vx/static.d
62656 /etc/vx/static.d/build
42432 /etc/vx/type/static
28440 /etc/vx/type/gen
22928 /sbin/fs
21720 /etc/vx/type/raid5
17640 /etc/opt
14064 /etc/vx/type/fsgen
13368 /sbin/fs/vxfs
9528 /etc/opt/resmon
8320 /etc/lp
6560 /etc/lp/interface

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
subodhbagade
Regular Advisor

Re: How to make more free space on root LV

Hi once again....

(1)Is it possible to move the old log from

#cd /etc/opt/resmon/log

# ls -ltr
total 6496
-rw-r--r-- 1 root root 500141 Aug 29 2007 client.log.old
-rw-r--r-- 1 root root 1000093 Nov 10 2007 reslog.old.html
-rw-r--r-- 1 root root 500673 Dec 17 2007 api.log.old
-rw-r--r-- 1 root root 213126 May 25 2008 client.log
-rw-r--r-- 1 root sys 13612 May 25 2008 emsagent.log
-rw-r--r-- 1 root root 208667 May 25 2008 registrar.log
-rw-r--r-- 1 root root 67916 Oct 9 15:43 api.log
-rw-r--r-- 1 root root 765213 Jan 27 08:02 reslog.html

old log ..i.e

(a)api.log.old (b) client.log.old (c) reslog.old.html

(2)/nsr taking more space but i am not sure which one can we move without affecting Env.

SUBODH.

Robert-Jan Goossens
Honored Contributor

Re: How to make more free space on root LV

Hi Subodh,

You have your back-up client software (Networker) installed in the root filesystem.

Reinstall or move it to a separate filesystem, this will save 180MB in your root filesystem.

Regards,
Robert-Jan

sujit kumar singh
Honored Contributor

Re: How to make more free space on root LV

Hello Subodh,

can find from googl emore about /nsr/applogs .
These seem to be the logs for Oracle RMAN Backup.

Immmediately get in touch with the Oracle Database team or the backup team and ask about utility of these log files.


You can well leave the resmon logs that is the Event manager logs. They are taking only 9 MB of space.

Where as /nsr seems to take close to 184 MB.


This is always a good practice while working in the Production Environment to at least have a backup of any file that you are going to delete.


As suggested by the Gurus before deleting a file you can have the File copied to some other location or can have a zip of that file on other location or moiunt point .


Regards
Sujit

sujit kumar singh
Honored Contributor

Re: How to make more free space on root LV

hi


can use google search for nsr search and/or have a look at the following link.


http://www.orafaq.com/forum/t/68409/2/

Regards
Sujit
Robert-Jan Goossens
Honored Contributor

Re: How to make more free space on root LV

(2)/nsr taking more space but i am not sure which one can we move without affecting Env.
---
as long as you backup is not running.

Create a new filesystem
Stop your legato client (/sbin/init.d/networker stop)
Move your /nsr directory to a nsr_temp
Create /nsr
mount your new filesystem on /nsr
check the permissions on /nsr
Copy the data from nsr_temp back to /nsr and start your networker client.

Regards,
Robert-Jan
sujit kumar singh
Honored Contributor

Re: How to make more free space on root LV

@ Robert,


Thanks for pointing that out this is a Networker backup client installed here.


Sorry that i could not read the post made by you that i replied.


Thanks
Sujit