1848161 Members
7940 Online
104022 Solutions
New Discussion

Re: File System root

 
Víctor López Chávez
Occasional Contributor

File System root

I need to expand my file System root. This he has 93% in use, nevertheless has a Size of 200 MB. Some of you has the solution to this situation.

Thanks!

Victor Lopez
8 REPLIES 8
Slawomir Gora
Honored Contributor

Re: File System root

Hi,

to expand root file system you have to create
ignite bootable tape archive (make_tape_recovery command)
and restore system from tape, during installation
you can changesize of root fs.

Chris Watkins_1
Respected Contributor

Re: File System root

Victor, Slawomir has it 100%.
Due to strict/contiguous layouts of these filesystems,
you're pretty much into an Ignite situation to make it larger.
Once you boot from the Ignite tape, you can resize from there.
Ignite Rocks!

Make sure you have good backups before doing this, of course!

--
Chris
Not without 2 backups and an Ignite image!
john korterman
Honored Contributor

Re: File System root

Hi,
I suggest you go and find the big files in the root file system instead as it already seems big enough. Try this command:
# find / -type f -xdev -exec ls -l {} \;| sort -kn5| tail -10

which should list the ten biggest files in your root file system: one of them must be a little suspicious; most liklely in the /dev area. Please post result.

regards,
John K.
it would be nice if you always got a second chance
Sridhar Bhaskarla
Honored Contributor

Re: File System root

Victor,

200MB should be more than enough for /. I believe there are some directories in there that are owned by regular users.

du -kx /|sort -n

can help you find the directories that are more used.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bill Hassell
Honored Contributor

Re: File System root

There are files and directories that do not belong in / (the root filesystem). / at 200Mb is more than enough s someone has placed very large files and directories in /. Start with /dev--spelling errors during a backup will always create files that do not belong in /dev (which is part of /):

find /dev -type f

There must be no ordinary files, just special device files in /dev. A very common file is /dev/rmt/om (should have been /dev/rmt/0m). Remove all ordinary files from /dev. Then look at a summary of the directories in /:

du -kx / | sort -rn

The top directories must be something like this (in Kbytes):

33976 /etc
32616 /sbin
14736 /etc/vx
14512 /etc/opt
12536 /etc/vx/type
9104 /etc/opt/resmon
6368 /etc/opt/resmon/lbin
5888 /sbin/fs

and /dev should be about 40-90 Kbytes).



Bill Hassell, sysadmin
F Verschuren
Esteemed Contributor

Re: File System root

for some of the dirs you can create a sepered filesystem (in VG00) so you do not have to extend / just create a new filesytem move the files/dirs into and mount it on the corect place.
Ivajlo Yanakiev
Respected Contributor

Re: File System root

Root File system must be keep small.
It easy to keep it in consistent mode.
It easy to backup and restore.
Root FS must contain only commands and files for recovery needs.
Do not use Root for any other things.
Realocate and remove any users ot log file for there.

Generaly Root FS must be static.

use
#bdf for monitoring your root
and
#lsof to find who use root FS
#du to find witch files growing

Roberto Arias
Valued Contributor

Re: File System root

Hello Victor:

Please check if mount point are empty directory.

boot the server in single user and check with
df -k /
find / -size +1000000c
find / -size +100000c
find / -name core
look for tape devices :
cd /dev/rmt
ls -ltr


best regards
The man is your friend