Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

realloccg /: file system full

Posted on 2009-04-02
10
Medium Priority
?
1,612 Views
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
works:

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

#format
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?
Thanks!
0
Comment
Question by:Francois Koutchouk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 2

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?
0
 
LVL 4

Accepted Solution

by:
joules17 earned 400 total points
ID: 24056756
hi,

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.




0
 
LVL 2

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.  

0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 4

Assisted Solution

by:joules17
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
0
 
LVL 40

Assisted Solution

by:omarfarid
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
0
 
LVL 22

Assisted Solution

by:blu
blu 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.
0
 
LVL 2

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).
0
 
LVL 22

Assisted Solution

by:blu
blu 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.
0
 
LVL 2

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?
0
 
LVL 22

Assisted Solution

by:blu
blu 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.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

688 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