How to expand a root partition

Hi,

I want to expand my root partition which is extremely small (4Gb). I installed some programs and I am almost full. The home directory is far to large for my needs (92Gb). What would be the simplest way to do this. I am quite new in Solaris. Or do I have another method to install new programs elsewhere?

(such as moving the /opt?). Thank you.

partition> print

Current partition table (original):

Total disk cylinders available: 12747 + 2 (reserved cylinders)

PartTagFlagCylinders SizeBlocks

0rootwm69 -6214.24GB(553/0/0)8883945

1swapwu3 -68517.72MB(66/0/0)1060290

2backupwm0 - 1274697.65GB(12747/0/0) 204780555

3 unassignedwm00 (0/0/0) 0

4 unassignedwm00 (0/0/0) 0

5 unassignedwm00 (0/0/0) 0

6 unassignedwm00 (0/0/0) 0

7homewm622 - 1274692.88GB(12125/0/0) 194788125

8bootwu0 -07.84MB(1/0/0) 16065

9 alternateswu1 -215.69MB(2/0/0) 32130

[952 byte] By [vctrmariana] at [2007-11-27 11:39:01]
# 1

Learning experience.

Backup what you need and reinstall. choose better file system layouts this time.

When you get to package selection, choose custom. When you get to disk layout, choose auto then immediately choose custom and adjust as necessary.

alan

alan.paea at 2007-7-29 17:23:35 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

It depends on if you have another disk to use as a rebuild disk and copy target

If you don't have a separate disk, then rebuild is a likely candidate, but if you do have a spare disk, then partition the new disk to your liking, choose your method of copying files over to the new disk, copy and then run installboot on the new root slice. From this point you can switch positions of the root disk and root mirror, or modify your mirror's /etc/vfstab for appropriate paths. If this is unclear, feel free to post back - jeff

jeffrey.sa at 2007-7-29 17:23:35 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...