Operating System - HP-UX
1836355 Members
1983 Online
110100 Solutions
New Discussion

root "/" file system is 100 % used.

 
SOLVED
Go to solution
praveen..
Super Advisor

root "/" file system is 100 % used.

Hi,
root "/" file system is 100% used.
"/" contains this file and other necessary directories:

-rw------- 1 root sys 327552 Jan 21 09:02 core

Is "core" just a dump file from the OS? If so, it can be removed or not?

The file "core" should be removable or not?

please suggest
15 REPLIES 15
Ivan Ferreira
Honored Contributor

Re: root "/" file system is 100 % used.

Yes, you can remove the core file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Kent Ostby
Honored Contributor
Solution

Re: root "/" file system is 100 % used.

Yes it can be removed.

Also do this:

find / -xdev -size +1000000c

This will find files of 1 meg or more that are on the / filesystem.

I suspect you may have something in /dev/rmt
as well.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
DCE
Honored Contributor

Re: root "/" file system is 100 % used.



The core file contains information about the system when an application crashed. You can either delete it (and the information will be lost), or you can move to another mount point with enough space, and use it to determine the cause of the failure
Ivan Ferreira
Honored Contributor

Re: root "/" file system is 100 % used.

Also use:

To identify the largest directory:

du -skx *

To identify the largest files:

find / -type f -exec ls -l {} \; |sort +4 -nrb |head -10
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Peter Godron
Honored Contributor

Re: root "/" file system is 100 % used.

Praveen,
core files can normally be removed. They are produced, when a process aborts.

Search for large files for possible removal with:
find / -xdev -size +100000c -exec ll {} \;
Robert-Jan Goossens
Honored Contributor

Re: root "/" file system is 100 % used.

Hi,

try to find the large directory. below output should be similar to yours.

# du -kx / | sort -rn | head -20
28982 /
19968 /sbin
5909 /etc
3824 /sbin/fs
2800 /etc/opt
2702 /patch
2661 /etc/opt/resmon
1717 /sbin/fs/vxfs
1614 /sbin/fs/hfs
1058 /etc/lvmconf
1024 /etc/opt/resmon/lbin
981 /etc/opt/resmon/lib
583 /etc/opt/resmon/log
553 /sbin/lib
525 /etc/X11
458 /etc/hpC2400
438 /sbin/init.d
330 /root
227 /root/.sw
225 /sbin/fs/cdfs

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: root "/" file system is 100 % used.

Hi Praveen:

# file core

...will show "who" and "why" the file was created if you care. It can certainly be removed.

Also, if the root filesystem is full, look at '/dev' for a mis-typed backup device. A common mistake is to substitute the letter "o" for the number "0" thus creating a regular file in '/dev' which fills up '/' -- something like :

# /dev/rmt/om

Regards!

...JRF...
praveen..
Super Advisor

Re: root "/" file system is 100 % used.

hi,
thanks for you response,
I have deleted the core file.

root@quetzal:[/]# find / -xdev -size +1000000c
/etc/lvmconf/vg02.conf.old
/etc/lvmconf/vg01.conf
/etc/lvmconf/vg02.conf
/etc/lvmconf/vg01.conf.old
/etc/opt/resmon/lbin/mibmond
/etc/vx/static.d/build/vold.o
/etc/vx/type/fsgen/fs.d/vxfs/vxsync
/etc/vx/type/fsgen/vxplex
/etc/vx/type/gen/vxinfo
/etc/vx/type/gen/vxmake
/etc/vx/type/gen/vxmake_static
/etc/vx/type/gen/vxmend
/etc/vx/type/gen/vxplex
/etc/vx/type/gen/vxsd
/etc/vx/type/gen/vxvol
/etc/vx/type/raid5/vxmake
/etc/vx/type/raid5/vxmend
/etc/vx/type/raid5/vxplex
/etc/vx/type/raid5/vxsd
/etc/vx/type/raid5/vxvol
/etc/vx/type/static/vxconfigd
/etc/vx/type/static/vxedit
/etc/vx/type/static/vxmake
/etc/vx/type/static/vxprint
/etc/vx/type/static/vxrlink
/etc/vx/type/static/vxrvg
/etc/emcpdaemon
/sbin/fs/vxfs/mkfs
/sbin/fs/vxfs/extendfs
/sbin/fs/vxfs/fsck
/sbin/fs/vxfs/mount
/sbin/fs/vxfs/vxenablef
/sbin/fs/vxfs/vxumount
/sbin/sh
/sbin/lvchange
/sbin/lvcreate
/sbin/lvdisplay
/sbin/lvextend
/sbin/lvlnboot
/sbin/lvreduce
/sbin/lvremove
/sbin/lvrmboot
/sbin/pvchange
/sbin/pvcreate
/sbin/pvdisplay
/sbin/pvmove
/sbin/sdstolvm
/sbin/vgcfgbackup
/sbin/vgcfgrestore
/sbin/vgchange
/sbin/vgcreate
/sbin/vgdisplay
/sbin/vgexport
/sbin/vgextend
/sbin/vgimport
/sbin/vgreduce
/sbin/vgremove
/sbin/vgscan
/sbin/pvck
/sbin/awk
/sbin/init
/sbin/insf
/sbin/pax
/sbin/lvmerge
/sbin/getrunlvl
/sbin/kcshutdown
/sbin/lssf
/sbin/mksf
/sbin/rmsf
/sbin/kcboot
/sbin/pvremove
/sbin/vgchgid
/sbin/egettxt
/sbin/is_vxvmroot
/sbin/vxconfigd
/sbin/vxconvarrayinfo
/sbin/vxdctl
/sbin/vxdg
/sbin/vxdisk
/sbin/vxdmpadm
/sbin/vxiod
/sbin/vxmend
/sbin/vxplex
/sbin/vxrecover
/sbin/vxrelayout
/sbin/vxsd
/sbin/vxvmboot
/sbin/vxvol
/sbin/vxedit
/sbin/vxmake
/sbin/vxprint
/sbin/vxlicinst
/sbin/vxlicrep
/sbin/vxlictest
/sbin/lvchange.run
/sbin/lvsplit
/sbin/lvsync
/sbin/vgsync
/sbin/nomwcsyncd
/sbin/emc/emcpmgr
/sbin/emc/powervini
/sbin/powermt
/autst/TEMP/CPN_WITH_RECODE.GC.CMF
/autst/TEMP/FINAL_WH_HH_FILE.DAT


can i delete some more files?
praveen..
Super Advisor

Re: root "/" file system is 100 % used.

# du -kx / | sort -rn | head -20
397040 /
148792 /autst
148744 /autst/TEMP
124864 /etc
122096 /sbin
54416 /etc/vx
46792 /etc/vx/type
44432 /etc/lvmconf
22680 /sbin/fs
21120 /etc/opt
17784 /etc/vx/type/static
16248 /sbin/fs/vxfs
14376 /etc/vx/type/gen
10856 /etc/vx/type/raid5
10248 /etc/opt/resmon
8624 /sbin/emc
6944 /etc/vx/static.d
6720 /etc/vx/static.d/build
5856 /etc/opt/resmon/lbin
4664 /sbin/fs/hfs
James R. Ferguson
Acclaimed Contributor

Re: root "/" file system is 100 % used.

Hi (again):

Well, the only things I see in your list off '/' that are not standard are the files in '/autst/'. I'd certainly move them out of the root directory!

Regards!

...JRF...
praveen..
Super Advisor

Re: root "/" file system is 100 % used.

can i delete these two files:
/etc/lvmconf/vg01.conf.old
/etc/lvmconf/vg02.conf.old

is there any need for these files?

James R. Ferguson
Acclaimed Contributor

Re: root "/" file system is 100 % used.

Hi (aqain) Praveen:

The '/etc/lvmconf' directory contains the current and the previous ('.old') versions of LVM 'vgcfgbackup' command runs.

'vgcfgbackup' runs by default anytime you modify an LVM configuration. See the manpages for 'vgcfgbackup' along with other LVM commands like 'vgextend'. See too, the '-A' switch of 'vgextend'.

Therefore, you can remove the ".old" variations if you really need to do so and you are sure that your last LVM operation will not need to be backed-out with 'vgcfgrestore' using the ".old" file.

Regards!

...JRF...
sathish kannan
Valued Contributor

Re: root "/" file system is 100 % used.

Hello Praveen,
Before deleting any files from root filesystem if you are not sure, I would recommend them to move other filesystems or backup to a tape or somewhere else.

I would rather check for other files than system files as you mention /etc/lvmconf directories.

Regards
Sathish
Don't Think too much
Nguyen Anh Tien
Honored Contributor

Re: root "/" file system is 100 % used.

core file is memory dump file when system crashed.
You can delete it as normal
for more easy:
to see all core file
#find / -name core -exec ll {} \;
#find / -name core -exec rm {} \;
HTH
HP is simple
Raj D.
Honored Contributor

Re: root "/" file system is 100 % used.

Hi Praveen,

You can remove the core file , it is generated from application/process terminates abnormally. You can check the file and then delete it , and recover lost disk space.

Check with:
# file core
# strings core | more
( You can find information , from which application core file has generated ..etc.)


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "