Link to home
Start Free TrialLog in
Avatar of sdholden28
sdholden28Flag for United States of America

asked on

How can I add space to the root FS in SCO 6?

I need to add space to the root FS on a SCO 6 system. Is there an "easy" way to do this, short of making a backup, recreating the FS, and then restoring? I've included a screenshot of a dfspace command for reference. As you can see, I need to move space from /u to /. Thanks.
Capture.PNG
Avatar of gheist
gheist
Flag of Belgium image

fsadm -b (size in 512b blocks) /mountpoint/
ASKER CERTIFIED SOLUTION
Avatar of mikelfritz
mikelfritz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry - the "ln" command is backwards above. ln -s /u/stuff /usr/stuff
Your root (/) is fine and should really be fairly static. If for example /var is growing considerably, then I would suggest that you need to create a /var filesystem rather than grow root.

Looking at the available space in /u , I would use the fsadm command as suggested by gheist to reduce the size of /u - then use the space freed up to create more file systems.

If you want an idea on the best directories to separate out as file systems - then try:

du -sk /*

That will indicate in Kbytes the minimum required size of a file system to take a copy of the directory and sub-directories.

Once you've created the file systems you can mount them under a temporary name and move across all the files from the original top directory.

As some running process may be using some of the files that you've moved and you've only temporarily named the mount point you should finish by editing the fstab with the required file system and mountpoint names (ie the large directories you separated out) - then recycle your system.

Hope that helps
JJ



and should remain as it is. It is /u that you need to grow and as indicated by gheist, fsadm is the command for that.
Resizing looks to require two things.  First is that the FS must be vxfs, and second you need a license to enable the resizing among other things.

http://wdb1.sco.com/kb/showta?taid=126114&qid=574846049&sid=2041290973&pgnum=1

http://osr600doc.sco.com/en/FS_admin/VeritasC.overview.html

I agree with JJ that the root fs should remain relatively static.
Sorry about the last line after my name in my previous comment - it's residue from a response I edited before I understood your question properly. ;-)
Avatar of sdholden28

ASKER

Thanks for all the suggestions. In the end, this was good enough and was certainly the simplest.