partitions for a newbie

hello, I'm relatively new to unix and have just installed solaris 10 on a server. However, after installing some additional packages and configuring the system I realized the root drive partition is too small (i need to double it). Is there a tool to repartition the drive without having to reinstall everything?

Many thanks for any help,

Mark

[364 byte] By [itwasntme] at [2007-11-26 8:30:23]
# 1

Not that I'm aware of. Unfortunately you're stuck if they are physical slices.

I haven't played with parted or partition magic on solaris/ufs partitions.

Going forward, you could try this out -- have one large slice for rootfs and then encapsulate it with Sun Volume Manager. Then you can create soft slices on this metadevice, mount them as your various filesystems -- thus breaking free of the 7-slice (physical) limit of Solaris.

implicate_order at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...
# 2

Try these steps:

1. Find the partition with the most available space. I will use /usr for my example

#df -k

2. Find the directory on root which takes up the most space. Hopefully it is not a core directory. I will use /opt for my example

# cd /

# du -sk *

3. move that directory to the partition with the most space. ( you shoud first verify that it has enough space to hold it)

#mv /opt /usr/opt_moved_from_root

4. Link the directory back to "/"

# ln -s /usr/opt_moved_from_root /opt

cg

cgeorge at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...
# 3
the directory that I would move is /procis it a problem with quotas or what-not to move this with a link?thanks!Mark
itwasntme at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...
# 4
use "du -dk / | sort -n" instead of "du -sk"/proc is not a filesystem that you can move elsewhere
y_p at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...
# 5

no need -

try this instead -

df -n

Assuming you don't have a situation where /proc is not a mounted filesystem, you'll note /proc isn't ufs, it's proc for filesystem type and as such has no bearing on your root filesystem's space.

btw - i'm hoping in the previous post, they're not asking you to move and sym link a directory such as /usr or /opt on the fly. /opt - depending on what's installed there, may work, /usr will cause you to boot to cdrom and fix

if you want to grow the root filesystem, you'll need a space to store the old data that you'll need to backup/restore (typically on a spare disk), then you can ufsdump/tar/cpio/other the filesystem from current to new, and then in the case of the root filesystem, run installboot (check man -s 1m installboot)

too many ways to do this, please somebody provide a link to a previous post....

jeffreys at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...
# 6
Either that, or the TS can just UTFSearch... This topic has been dealt with quite a few times before.
Cailin_Coilleach at 2007-7-6 21:50:46 > top of Java-index,General,Talk to the Sysop...