> We're planning on upgrading from Solaris 2.3 to 2.5 on a SparcStation
> 5. We've only got 16Mb free on our root filesystem. This will not be
> enough for the upgrade. We need to expand our root filesystem.
On Solaris 2.5 there is an undocumented option `-G' (grow filesystem)
to /usr/lib/fs/ufs/mkfs that can save you a lot of time.
Provided that you have a swap partition c0t3d0s1 directly following
the root partition c0t3d0s0, you could increase the size of the
root and decrease the size of the swap partition and then run mkfs
-G. For this to work, you must boot from the Solaris 2.5 CD so that
your root and swap partitions are not used.
Here is what to do in detail:
- back up your root partition; you could*things up!
- boot from the Solaris 2.5 CD and exit the installation
program after the system identification part. You are
now in a Bourne shell.
- run format(1m) and adjust the sizes of the root and swap
partitions. Write down the new number of blocks in the
root partition (last column of partition table).
- run /usr/lib/fs/ufs/mkfs -G /dev/rdsk/c0t3d0s0 461700
(substituting 461700 with the new block number). Don't
bother giving additional options like inode ratio or
optimization type; they are ignored anyway
- you can now mount /dev/dsk/c0t3d0s0 to e.g. /mnt and
verify the size change and the fact that all data is
still there
- restart the installation with command `suninstall'
Good luck!
Arndt
--
Systems Integrator & IT Consultant
Ostenhellweg 31, 44135 Dortmund, Germany
Tel: +49 231 556075
Fax: +49 231 556049