1833259 Members
3620 Online
110051 Solutions
New Discussion

Re: home directory full

 
SOLVED
Go to solution
Shivkumar
Super Advisor

home directory full

Dear Sirs/Madam;

If /home directory is 100% full then what would happen ?

Will it crash the system or none of of the users would be able to login ?

As usually root is not allowed to login remotely and then how come this situation would be dealt ?

Thanks,
Shiv
11 REPLIES 11
Rajeev  Shukla
Honored Contributor

Re: home directory full

Hi Shiv,
Dont worry the system will not crash but all users having their home as /home/$user will not be able to login when /home becomes 100%
But root will still be allowed to login as root's home directory is not in /home by default, its either / or /root thats a good practice which will enable root to login.
morganelan
Trusted Contributor
Solution

Re: home directory full

If /home is 100% full then all users that reside under/home dir will not be able to login except root ,but if your root file system is full, all user include root will not be able to login on multiuser mode but can login in single user mode on console.
Kamal Mirdad
saju_2
Respected Contributor

Re: home directory full

Hi

Normally there is no problem with /home getting filled up to capacity.. Root will be able to login and clean the /home FS. But if u have direct root login disabled and only one user can su to root, whose home directory lies in /home , then u r in trouble. So it is highly advisable to monitor and clean /, /home, /var, /opt etc FS .

Regards
CS
morganelan
Trusted Contributor

Re: home directory full

If this case happens to you, you can delete large files that make /home dir full or extend /home if all files reside on this mount point are very important for user so you are not permitted to delete them.

To search which file that make /home full:
#du -akx /home|sort -nr|more
After execute above command you can see file from largest size file to lowest size file and you can decide what file that must be deleted after inform to your user.

To extend /home, you must have free space on VG00 :
1.fuser -cu /home , to find what process that still attach to this file system
2.fuser -ku /home to kill all process that still attach to this file system
3.Umount /home
4.Extend the logical volume to say 2048 MB.
lvextend -L 2048 /dev/vg00/lvol7
extendfs -F vxfs /dev/vg00/rlvol7
5.mount /home
6.bdf /home to verify the changes
Kamal Mirdad
Devender Khatana
Honored Contributor

Re: home directory full

Hi,

As posted abobe the users who has home directories under /home will have problems in logging in when /home is full. The only option left at this time will be to use allready logged in user to do a su or login using root either remotely or if remote login is disabled then on system console. Even if system console is not accessible then you can login using MP/GSP.

Also apart from other users whose home directory resides in /home I have an application user whose home directory is their in the data VG itself. This user will still be able to login in such scenario.

Allthough it is just cutting the same branch on which you are sitting if you let this happen.

HTH,
Devender
Impossible itself mentions "I m possible"
Yogeeraj_1
Honored Contributor

Re: home directory full

hi,
also check if there is any core dump in the different user directories.

you may wish to setup quota for each users.

just some thoughts

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Rajesh SB
Esteemed Contributor

Re: home directory full

Hi,

If /home directory is 100% full, server wouldn't crash and users are denied to login to the server.

This the reason to recomend keep /home, /var as a saperate mount points. Also keep root home directory different than /home. So root can login and clear the disk space without halting the server.

So, you can observe in Linux, /root will be the root user home directory, it is really good way in sys admin porspective.

Regards,
Rajesh
Mahesh Kumar Malik
Honored Contributor

Re: home directory full

Hi Shiv

Usere having home direcotry /home will not be able to login, but system will not crash. Please check the files which have caused to make /home 100% full and delete unwanted files. Else think of expanding /home size. Generally /home does not come to 100% full situation unless some user has redirected the file to such directory.

Regards
Mahesh
Cem Tugrul
Esteemed Contributor

Re: home directory full

Shiv,

As mentioned by ther replies when /home %100
full only users can not able to login...Before maintain the /home Filesystem
you can do housekeeping on users home directory for example some core files...
cd /home;
find . -name core -exec ll -d {} \;

and then check again with the command
bdf

if stills usage around %90-95 so this means
it is the time for FS maintenance for home
dir so Morgenalan's steps are very significant

Good Luck,


Our greatest duty in this life is to help others. And please, if you can't
Cem Tugrul
Esteemed Contributor
Cem Tugrul
Esteemed Contributor

Re: home directory full

oppps...
to detect whether core files generated
cd /home;
find . -name -exec ll -d {} \;

to remove these core files;
cd /home;
find . -name core -exec rm {} \;

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't