Problem
I am out of space on my root hard disk system. I cannot
install software patches (or) software upgrades (or)
software packages.I need a relatively quick and simple way to increase the size of my root filesystem without re-installing the OS and without adjustments to other filesystems.
How can I increase the size of my root filesystem?
Solution
On most SCO OpenServer 5.0.0 installations, the System
Administrator accepted the default file system type to be
used for the root filesystem. In most cases, the root file-
system will be using the HTFS (High Throughput File System).It is possible to change the root filesystem to the DTFS (DeskTop File System) which incorporates transparent data compression and a more efficient disk media format to increase hard disk storage capacity?
Before you commit your filesystem structure to such a change, you should be aware of the following information:
- The maximum size of a DTFS filesystem is 1 Terabyte.
- The maximum size of a HTFS filesystem is 1 Terabyte.
- Average disk space savings of 50% can be realized using DTFS.
- Increased disk storage space is realized at a cost to the
CPU -- additional processing overhead is generated when a
DTFS filesystem is used. On today's fast processors on
systems with sufficient RAM, the processing overhead
requirements are seldom noticable.- Filesystem journaling, which increases system reliability, is available only through HTFS.
To convert your root filesystem type, it is essential that you first obtain the SCO IT Article, TA104767, "Recover OpenServer 5 root filesystem after crash if backups, boot/root exist.".
When you have obtained this information, you will have the preparatory information for readying your system to change the root filesystem from HTFS to DTFS format.
STEP 1:Perform tape backups of the root (/dev/root) and boot
(/dev/boot) filesystems. It is _strongly_ recommended that
you VERIFY the tape backup and ensure that your backup tapes
of these filesystems are error free.STEP 2:Make emergency boot and root floppy diskettes and TEST the
floppies to ensure that you can boot the system to a unix
shell (#) prompt and access the tape drive unit with the cpio
command. With the tape backup of the /dev/boot file system
in the tape drive, issue the following command after you have
booted from the boot and root floppies:# cpio -itv -I/dev/{tape-device-node}You should see a listing of the files that were saved to tape. If you do not, or if the tape drive fails FOR ANY REASON, check and re-complete the steps outlined in the Recover IT Script, TA104767.
STEP 3:Invoke the divvy(ADM) command on /dev/hd00. This will display the partition filesystem information for your root hard drive. You should see something similar to the following:
(modified to fit document)+-----------+------------+--------+---+-------------+------------+
| Name | Type | New FS | # | First Block | Last Block |
+-----------+------------+--------+---+-------------+------------+
| boot | EAFS | no | 0 | 0| 14999|
| swap | NON FS | no | 1 | 15000| 63999|
| root | HTFS | no | 2 | 64000| 364000|
| | HTFS | no | 3 | 364001| 732677|
| | NOT USED | no | 4 | -| -|
| | NOT USED | no | 5 | -| -|
| recover | NON FS | no | 6 | 732678| 732687|
| hd0a | WHOLE DISK | no | 7 | 0| 733695|
+-----------+------------+--------+---+-------------+------------+
732688 1K blocks for divisions, 1008 1K blocks reserved for the systemn[ame] Name or rename a division.
c[reate] Create a new filesystem on this division.
t[ype] Select or change filesystem type on new filesystems.
p[revent] Prevent a new fsys from being created on this division.
s[tart] Start a division on a different block.
e[nd] End a division on a different block.
r[estore] Restore the original division table.Enter your choice or q to quit:
Notice that the entry(s) for additional filesystem(s) do not have data under the "Name" column.
What you will do next is [c]reate a new filesystem for the root
filesystem. Press the 'c' key to create the new filesystem and
specify that you wish to mark filesystem (in the above example
only) number 2 (two) as a new filesystem.The entry for root should look like this:
+-----------+------------+--------+---+-------------+------------+
| root | HTFS | yes | 2 | 64000| 364000|
+-----------+------------+--------+---+-------------+------------+Then change the filesystem [t]ype by pressing the 't' key. You
will be presented with this menu:Enter your choice or q to quit: t which division? (0 through 6) 2 Choose from the following filesystem types:
0. NON FS (overwrite first 64K of filesystem with zeros)
1. AFS
2. DTFS
3. EAFS
4. HTFS
5. S51K
6. XENIXPlease enter your choice:Select option #2 (DTFS). The newly displayed divvy table entry
for the root filesystem should now look like this:+-----------+------------+--------+---+-------------+------------+
| root | DTFS | yes | 2 | 64000| 364000|
+-----------+------------+--------+---+-------------+------------+IMPORTANT!
Make sure that this is the only filesystem which has the word
"yes" in the column: "New FS"! Pressing the delete key will
break out of the divvy(ADM) program without saving any of the
changes, or you can press the 'r' key to restore the divvy(ADM)
table to its original state.When the root filesystem has been modified as explained, 'q'uit the divvy(ADM) program and 'i'nstall your changes.
STEP 4:Mount the root filesystem on the mountpoint /mnt:
# mount /dev/root /mntRestore the tape backup you have made of the root filesystem, referring to the Restore IT Script, TA104767, for explicit instructions.
STEP 5:If you did your initial backup of the filesystem using SCOAdmin
Backup Manager, as an Unscheduled backup, then any directories
which had mounted filesystems attached were not backed-up.
Re-create the directories for all filesystems mounted on the root
filesystem. It is imperative that you re-create the /stand
directory!STEP 6:Un-mount the root filesystem, haltsys(ADM) the boot/root kernel, eject the floppies from the drive and boot your system from the hard disk drive.
When testing this process, the following "before/after" snapshot of the root disk drive was made:
HTFS:
Mount Dir Filesystem blocks used free %used
/ /dev/root 300000 285477 14523 96%
/stand /dev/boot 30000 16042 13958 54%
/u /dev/u 737354 555380 181974 76%DTFS:
Mount Dir Filesystem blocks used free %used
/ /dev/root 600002 409714 190288 69%
/stand /dev/boot 30000 16042 13958 54%
/u /dev/u 737354 555380 181974 76% See also
divvy(ADM), scoadmin(ADM) backup manager, cpio(C), mount(ADM)
TA104767, "Recover OpenServer 5 root filesystem after crash
if backups, boot/root exist."