How to merge solaris partition

I m using solaris 8. I have some free space on my hard disk. I want to merge that space into /export/home. Please tell me complete procedure for doing it.

Can you post the output of "df -k" and "mount"? And say what you want from where to appear where.

there is unused space in my hard disk. I want to merge that space into /export/home
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
df -k

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0d0s0 11408572 6541426 4753061 58% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 1011452 624 1010828 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/usr/lib/libc/libc_hwcap1.so.1
11408572 6541426 4753061 58% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 1010836 8 1010828 1% /tmp
swap 1010852 24 1010828 1% /var/run
/dev/dsk/c0d0s3 14114363 3913981 10059239 29% /opt
/dev/dsk/c0d0s7 13763187 4493387 9132169 33% /export/home

mount out put

===========================================================

/ on /dev/dsk/c0d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980000 on Wed Oct 3 08:30:03 2007
/devices on /devices read/write/setuid/devices/dev=4380000 on Wed Oct 3 08:29:48 2007
/system/contract on ctfs read/write/setuid/devices/dev=43c0001 on Wed Oct 3 08:29:48 2007
/proc on proc read/write/setuid/devices/dev=4400000 on Wed Oct 3 08:29:48 2007
/etc/mnttab on mnttab read/write/setuid/devices/dev=4440001 on Wed Oct 3 08:29:48 2007
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4480001 on Wed Oct 3 08:29:48 2007
/system/object on objfs read/write/setuid/devices/dev=44c0001 on Wed Oct 3 08:29:48 2007
/lib/libc.so.1 on /usr/lib/libc/libc_hwcap1.so.1 read/write/setuid/devices/dev=1980000 on Wed Oct 3 08:30:02 2007
/dev/fd on fd read/write/setuid/devices/dev=4680001 on Wed Oct 3 08:30:03 2007
/tmp on swap read/write/setuid/devices/xattr/dev=4480002 on Wed Oct 3 08:30:04 2007
/var/run on swap read/write/setuid/devices/xattr/dev=4480003 on Wed Oct 3 08:30:04 2007
/opt on /dev/dsk/c0d0s3 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980003 on Wed Oct 3 08:30:08 2007
/export/home on /dev/dsk/c0d0s7 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980007 on Wed Oct 3 08:30:08 2007
/mnt/D on /dev/dsk/c0d0p0:c read/write/setuid/devices/nohidden/nofoldcase/dev=1981010 on Wed Oct 3 08:30:41 2007

Are you refering to the space on /opt (/dev/dsk/c0d0s3) ?

A few main solutions...

  1. make a directory in /opt/home and move some home directories in into that, then make symbolic links from /export/home/xxx to those directories.

  2. change peoples home directory to /opt/home/xxxx

  3. backup your important data and rebuild your system with the newly gained knowledge on how big you want your slices.

  4. like 3 but make the whole drive just a swap and root slice.

But my problem is that there is some unpartitioned space on my hard disk. I want to merge that space into /export/home.

Is this space adjacent to "/dev/dsk/c0d0s7" ?

Sounds like you may need to use "volume manager", I've used logical volumes on HPUX, AIX and Tru64, but not Solaris.

Looks like whatever you do, you will need to rebuild your /export/home filesystem.

how can i rebuild /export/home filesystem to increase its size.

if you have a second harddrive (same or larger as your primary drive) you can use liveupgrade ("lu") to merge or split slices. after you are done, you only need one reboot!
without that, make a backup of /export/home and make a new fs including the free space. play the backup to the new fs and you are done.

hth,
DN2