Operating System - HP-UX
1826313 Members
4036 Online
109692 Solutions
New Discussion

Re: how to reduce the file system size...

 
bhupesh m
Frequent Advisor

how to reduce the file system size...

hi,
i am running out of space. i need to delete some files like core files, log files, etc...
i am new to hpux. so please help me on this:

#bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 186048 855808 18% /
/dev/vg00/lvol1 311296 66400 243032 21% /stand
/dev/vg00/lvol8 4710400 1829720 2858968 39% /var
/dev/vg00/lvol7 2924544 2069008 848880 71% /usr
/dev/vg00/lvol5 204800 8600 194672 4% /tmp
/dev/vg00/lvol6 2744320 1820592 916520 67% /opt
/dev/vg00/lvol4 2097152 1218696 871600 58% /home

presently i have enough space. when i copy the oracle 4 cd's, and some application dump, space becomes question.
4 REPLIES 4
Ludovic Derlyn
Esteemed Contributor

Re: how to reduce the file system size...

hi,

have you verify with vgdisplay -v vg00 , space disk ?
perhaps all it's not used.

regards

L-DERLYN
DCE
Honored Contributor

Re: how to reduce the file system size...


Your current disk space usage looks fine.

Oracle should *not* be installed into root file system. It should be installed into its own mount points - ideally in a seperate volume group (say vg01)

Do you have any unassigned disks on the system? If not - is ther any unassigned space in vg00?

There are a couple of ways to check - command line and SAM.

SAM is the easiest. just follow the menus

Command line you need to do a vgdisplay -v /dev/vg00 to see if there is extra space, and to see which disks are currently assigned to it

ioscan -fnC disk will give you a list of disks - any not in vg00 should be available for use.

HTH
Dave
Mancboy
Valued Contributor

Re: how to reduce the file system size...

you need to have the oracle in its own filesystem and preferably not on vg00.

/var/tmp is a good place to clear down, as it /var/preserve and /var/adm/crash (places where files are stored after a crash).

I'd also increase /tmp as you might not have enough space to unpack files.

for deleting core files run:
find / -name "core" -exec rm {} \;

Also check out /var/adm for various log files that may be big

du -sk /var/spool/* | sort -n

will show you which directories under the spool area are big. If /var/spool/lp is big then you've lots of failed print jobs queued up (lpstat -a -t will list them and cancel will kill each print job). If /var/spool/mqueue is big then you've lots of mail files queued up (sendmail -q -v will push them out).

But really, disc space is cheap, I'd reccommend putting oracle on its own vg.
HGN
Honored Contributor

Re: how to reduce the file system size...

Hi

From the output shown all the filesystems are resonably full and there is no cause of alarm. However if you are plannin gto load oracle I would always recommend to create a new VG, you can run ioscan -funC disk to see if any free disks and available on the system and can use them for oracle install. It is always bettere not to use vg00 for any db or app purpose.

Rgds

HGN