LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices


Reply
  Search this Thread
Old 03-28-2015, 03:15 AM   #1
sam175
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
Memory low in "root file system"!!!!


Hi! i am using centos 7 and getting an error low memory "root file system".

i run this command du -sh /* to check the root memory consumtion. The output says that my /etc directory is 100 % full i.e. 50 GB.

i want to clear some space in my /etc directory but i dont know what file to delete and how to clear some unwanted file from there.

Please help me....

Thank u..
 
Old 03-28-2015, 11:41 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Welcome to LQ!

Have a nice time.

Post the outputs of 'df', 'df -i', 'mount', 'fdisk -l'.
 
Old 03-29-2015, 07:28 AM   #3
sam175
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi !! Veerain..

df output


PHP Code:
Filesystem                1K-blocks     Used Available Use% Mounted on
/dev/mapper/centos00-root  52403200 52358876     44324 100% /
devtmpfs                     495044        0    495044   0% /dev
tmpfs                        504156      244    503912   1
% /dev/shm
tmpfs                        504156     7180    496976   2
% /run
tmpfs                        504156        0    504156   0
% /sys/fs/cgroup
/dev/mapper/centos00-home  33603552   134212  33469340   1% /home
/dev/sda1                    508588   163160    345428  33% /boot
/dev/sda2                   5109760    94244   5015516   2% /run/media/skhan/1cf6b881-e1a9-4094-b168-8e1c7f5b1ca1
/dev/mapper/centos-var      8181760    63720   8118040   1% /run/media/skhan/931b425a-f9c9-4497-8af7-cf5faf8b72c3
/dev/mapper/centos-usr      5109760   768620   4341140  16% /run/media/skhan/1aacc8dc-698b-412f-b666-a5ac76526676
/dev/mapper/centos-home    20469760   887816  19581944   5% /run/media/skhan/0319e39d-5da2-4c97-99d5-1bb60b707196
/dev/mapper/centos-root    16373760    52616  16321144   1% /run/media/skhan/c490bcab-ed57-47a8-ba0b-267da6c1b5fb 

df -i ouput

PHP Code:
Filesystem                  Inodes  IUsed    IFree IUseMounted on
/dev/mapper/centos00-root   363680 185756   177924   52% /
devtmpfs                    123761    464   123297    1% /dev
tmpfs                       126039     10   126029    1
% /dev/shm
tmpfs                       126039    638   125401    1
% /run
tmpfs                       126039     13   126026    1
% /sys/fs/cgroup
/dev/mapper/centos00-home 33619968   2115 33617853    1% /home
/dev/sda1                   512000    337   511663    1% /boot
/dev/sda2                  5120000    329  5119671    1% /run/media/skhan/1cf6b881-e1a9-4094-b168-8e1c7f5b1ca1
/dev/mapper/centos-var     8192000   1258  8190742    1% /run/media/skhan/931b425a-f9c9-4497-8af7-cf5faf8b72c3
/dev/mapper/centos-usr     5120000  20914  5099086    1% /run/media/skhan/1aacc8dc-698b-412f-b666-a5ac76526676
/dev/mapper/centos-home   20480000   1745 20478255    1% /run/media/skhan/0319e39d-5da2-4c97-99d5-1bb60b707196
/dev/mapper/centos-root   16384000   1110 16382890    1% /run/media/skhan/c490bcab-ed57-47a8-ba0b-267da6c1b5fb 

mount output

PHP Code:
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=495044k,nr_inodes=123761,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,seclabel,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
configfs on /sys/kernel/config type configfs (rw,relatime)
/
dev/mapper/centos00-root on type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=36,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
sunrpc on /proc/fs/nfsd type nfsd (rw,relatime)
/
dev/mapper/centos00-home on /home type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
/
dev/sda1 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/
dev/sda2 on /run/media/skhan/1cf6b881-e1a9-4094-b168-8e1c7f5b1ca1 type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
/
dev/mapper/centos-var on /run/media/skhan/931b425a-f9c9-4497-8af7-cf5faf8b72c3 type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
/
dev/mapper/centos-usr on /run/media/skhan/1aacc8dc-698b-412f-b666-a5ac76526676 type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
/
dev/mapper/centos-home on /run/media/skhan/0319e39d-5da2-4c97-99d5-1bb60b707196 type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2)
/
dev/mapper/centos-root on /run/media/skhan/c490bcab-ed57-47a8-ba0b-267da6c1b5fb type xfs (rw,nosuid,nodev,relatime,seclabel,attr2,inode64,noquota,uhelper=udisks2
fdisk -l output

PHP Code:
Disk /dev/sda160.0 GB160041885696 bytes312581808 sectors
Units 
sectors of 1 512 512 bytes
Sector size 
(logical/physical): 512 bytes 512 bytes
I
/O size (minimum/optimal): 512 bytes 512 bytes
Disk label type
dos
Disk identifier
0x000238d4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1       135190528   136214527      512000   83  Linux
/dev/sda2   *        6144    10246143     5120000   83  Linux
/dev/sda3        10246144   135190527    62472192   8e  Linux LVM
/dev/sda4       136214528   312581807    88183640    5  Extended
/dev/sda5       136216576   312580095    88181760   8e  Linux LVM

Partition table entries are not in disk order 


thanks...
 
Old 03-29-2015, 08:28 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
So from this list we see that your root partition is full: /dev/mapper/centos00-root. And it is using LVM logical volume.

Also it is using 50 GB of data.

Either you can delete unneccessary data: e.g. data in /tmp, /var and ...
or
extend the lvm volume by using some spare space.
 
Old 03-29-2015, 10:13 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,147

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You need to find out what is writing to /etc. Normally /etc should be fairly static. You can use lsof to track down the process, or use du to see which subdirectory has the 50GB of extra content.
 
Old 03-29-2015, 12:15 PM   #6
sam175
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi!! Veerain..

using the du command i found that there is a file /etc/scalpel-output/audit.txt ,which is taking about 45 GB of space
i just deleted that file because i dont need that file...that file was created when i tried to recover some deleted file
using scalpel command..i dont need that file any more...problem is solved.

Thanks.. :-)
 
Old 03-29-2015, 01:55 PM   #7
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Congrats!

If your problem has solved then mark this thread as solved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"unexpected inconsistency" (fsck) of the root file system failed artoebe Linux - Newbie 8 03-22-2013 11:40 PM
[SOLVED] 12.04 LTS installation error "no root file system is defined" skadoosh Ubuntu 4 10-17-2012 06:35 AM
"No root file system is defined" - During installation process of Ubuntu Trinric Linux - Newbie 7 02-14-2011 12:44 PM
System hangs on boot - "Mounting root file system" fails with Via VT6410 enabled Eagleorn Linux - Hardware 3 09-21-2006 12:58 PM
Mandrake 10.1 hangs at "Checking root file system" while booting ananya Mandriva 1 03-01-2006 06:03 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration