Go Premium for a chance to win a PS4. Enter to Win


realloccg /: file system full

Posted on 2009-04-02
Medium Priority
Last Modified: 2013-12-27
My machine no longer boots in multi-user.  UFS export/home partition s7 declared in vfstab is no longer mounting either (perhaps different problem)?
ok boot disk0

# df -k /
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 6035995 59226534 49102 100% /

partition> print
0 root wm 363-4605 5.85G
1 swap wu 0-362 512.06MB
2 backup wm 0-24619 33.92GB
3 unassigned wm 0 0
4 unassigned wm 0 0
5 unassigned wm 0 0
6 unsassigned wm 0 0
7 home wm 4606-24619 27.57GB

How do I increase my / space?
Question by:Francois Koutchouk
  • 4
  • 3
  • 2
  • +1

Author Comment

by:Francois Koutchouk
ID: 24056557
additional information:
# df -k /usr shows that it is also mounted on /
# df -k /var shows that it is also mounted on /
no wonder I am out of disk space...
So I see two options:
a) increase the size of / (my question above)
b) move some of that /usr or /var somewhere else.
Any thoughts?

Accepted Solution

joules17 earned 400 total points
ID: 24056756

1) for the /export/home problem, have you tried running fsck and mount it again
2) root partitions cannot be increased, one you partitioned it, it is done, your best bet is to delete the unwanted files from like you mentioned /usr and /var
/var filesystem would definetly have lots of logs file which can be cleared.
and again, if you are thinking of moving /usr from root filesystem would not be a possible idea, as it contains all the binary files for the operating system's funtion, moving it would render your OS unbootable.


Author Comment

by:Francois Koutchouk
ID: 24056941
I have space on the export/home.  Could I move the /var to /export/home/var and create a link?  Or are the chances of not rebooting too high?
I suspect all this was caused by Update Manager because the machine is new and I did not install anything else manually.
Note: I also have another hard drive in the machine.  

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Assisted Solution

joules17 earned 400 total points
ID: 24057511
I guess that would be a problem, links may not be recognised at boot time, as /var file system is required for booting the system.

if you like you can do a ufsdump of the root filesystem , repartition the drive according to the size you  want it, and then do a ufsrestore, and do installboot on the root disk
you will be able to solve your problem,
I did that once and I was successful in creating a bigger root f/s
let me know and I'll provide you with the steps
LVL 40

Assisted Solution

omarfarid earned 200 total points
ID: 24058556
I suggest to do the following

- boot system to single user mode and login
- run

du -k | sort -rn | more

see which dir or file has taken your disk space, mostly it is /var

If you want , you can post out put so we can help in telling what to delete
LVL 22

Assisted Solution

by:Brian Utterback
Brian Utterback earned 600 total points
ID: 24058755
The update manager spools patches into /var, under /var/sadm I think.  But you have got to do something
about your root partition, itis too small for everything to live there.

What do you have on the /export/home partition? Do you have a source of storage outside the system,
either an external USB drive or a tape drive? If you have not used much of the /export/home filesystem,
your best bet will probably be to backup that partition, then split it up, so that /var exists in its own partition.
That way you can avoid a bare metal install.

Author Comment

by:Francois Koutchouk
ID: 24062332
Can I safely blow away everything in /var/sadm/pkg?  It looks like all those updates from Update Manager.  That would solve my disk space problem (for now).
LVL 22

Assisted Solution

by:Brian Utterback
Brian Utterback earned 600 total points
ID: 24062529
Unfortunately, you can' t really just delete it all. If you know that you are not ever going to want to back out the patches you have installed, you can delete the files called undo.Z that live under /var/sadm.

Author Comment

by:Francois Koutchouk
ID: 24063342
I moved all the /var/sadm/pkg files to my second disk drive and created a link
That regained 33% of my / drive and the machine still boots!
Anything else I could move to the other drive safely?  Perhaps something else from /opt or /var

In other words, what is the difference between repartitioning /export/home to create a new partition on which to put /var or /usr and moving the files to another drive?
LVL 22

Assisted Solution

by:Brian Utterback
Brian Utterback earned 600 total points
ID: 24065515
The problem is that some things in the root file system might be required before all the file systems are mounted. So, anything needed by the system while booting should be left alone. Nothing in /opt is required during boot up, so it should be safe to move.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question