Solved

SCO Unix: Disk running out of space

Posted on 2004-08-04
7
982 Views
Last Modified: 2013-12-05
I'm running SCO Unix 3.2v5.0.4 in a 2 GB hard disk. I've cleared up some files that can be truncated, temp files and log files to increase the disk capacity but only manage to gain around 8 MB space. This is the output of a dfspace command:
/                    Disk space: 15.37 MB of 300.00 MB available (5.13%)
/stand            Disk space: 7.23MB of 14.99 MB available (48.22%)
/txpasys        Disk space: 33.28 MB of 250.00 MB available (13.31%)
/txpproz         Disk space: 45.61 MB of 130.00 MB available (35.09%)
/txpproj         Disk space: 151.82 MB of 239.98 MB available (63.26%)
/txparc.00.00 Disk space: 119.33 MB of 804.67 MB available (14.83%)
Total disk space : 372.67 MB of 1739.66 MB available (21.42%)

After doing du -sk * command in /root, I found out that the /opt directory consumes around 215 MB. Since I have around 260 MB unused space in my hard disk, can I use them to hold the /opt directory? If so, what are the steps that I should take?
0
Comment
Question by:azmiis
  • 5
  • 2
7 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 11723205
It depends on what you would like to accomplish.....
0
 

Author Comment

by:azmiis
ID: 11723260
What I would like to have is more space in the root directory because after sometime /usr and /var directories will keep on increasing. Just before I truncated the 'safe' files, 98% of the /root directory had been used up.
0
 
LVL 62

Expert Comment

by:gheist
ID: 11723618
Now I understand -
easiest is to buy new disk for /var /tmp /usr and /home or so

anyway some care should be taken with all filesystems which are used over 50%

readjusting filesystem sizes is complicated matter - usually you create pax or cpio or tar archive of data, umount, adjust partitions and put files back. For / you will need to install correct bootloaders too, which involves using install media.

And next time when installing some kind of UNIX leave half of disk unpartitioned to accomodate growth.

Or alternatively with experience gained on space usage now you can install a new system with adequate partitioning.
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 62

Expert Comment

by:gheist
ID: 11723626
I usually link /opt to /usr/opt . but this will not help you since you do not have separate /usr filesystem
0
 

Author Comment

by:azmiis
ID: 11724140
I have around 260 MB of unpartitioned space in the hard disk. Can I used it? If possible, please put it in step-by-step procedure as i'm new in unix system and still learning on it. TQ
0
 
LVL 62

Accepted Solution

by:
gheist earned 250 total points
ID: 11724830
basically you neet to run divvy, add a partitions for /var and maybe /tmp, I will explain in detail how to add /var only

then run init 1 ( drop into single (? or was it called SysAdmin mode ) user mode )
close anything still running, then mount /var to some new directory under /
then ( cd /var && tar cpf - ) | ( cd /new_place && tar xfp - )
then adjust /etc/mnttab andmaybe /etc/vfstab to accomodate new filesystem
then umount /new_place
now mount /var
ls -l /var
df
mount
if this seems fine umount /var
rm -rf /var/*
reboot or (mount /var ; init 3 )

manual pages for every command or file will explain you much better.
0
 
LVL 62

Expert Comment

by:gheist
ID: 11724834
ensure you make backups before such alterations - they never work in first times
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Ubuntu install gnome-session-fallback is failing 4 110
Move nodes from one TSM to another. 3 76
Can I delete authorized_keys in FreeBSD 1 88
NTP Server in VMware 5 226
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 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