SUMMARY: Move a file system

From: Bob White (
Date: Thu Feb 26 1998 - 08:46:33 CST

Many thanks to the following:
A Space Oditty <>
Marty Bullock
Matthew Stier
Russ Poffenberger
Harry Levinson

(There may be others, we have had considerable trouble with our SMTP server lately and many messages
have been lost.) Anyway, I got enough.

The basic idea of all was to unmount the file system, mount it at some other point, use tar or ufsdump to
move it to the location desired. But then the tedious part comes. The only way to add the newly free space
to the existing file system is to backup the files, (twice for safety), down the system, bring it back in system
mode, reformat and repartition the drive, restore to the new partition.

As this is a live production system I think I'll push the case that it's time for a second system that can be
used to practice this on. Thanks very much to all who responded. You guys are great

Original Message:

I've been wading through the archive looking for some help on this, but most of the summarys deal with
moving swap or growing it. Not quite what I want. Here's my current setup.

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t3d0s0 70759 11533 52156 19% /
/dev/dsk/c0t1d0s6 262098 105244 130654 45% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t3d0s3 88051 42383 36868 54% /var
/dev/dsk/c0t0d0s7 1160102 837864 206228 81% /export/home
/dev/dsk/c0t1d0s5 52303 38762 8311 83% /opt
/dev/dsk/c0t0d0s0 123075 94704 16071 86% /usr/openwin
swap 18080 16 18064 1% /tmp

As you can see, /usr/openwin is on device 0. It seemed like a good idea at the time, as I wasn't sure how
big it would get, or how big /usr would get. The system has stablized now, and I would like to use that disk
space for /export/home, which is growing. So the question is: Is there an easy way to move /usr/openwin
back over to /usr, and give the space to /export/home, or should I bite the bullet, back up twice, redo all the
partitions based on current knowledge, reload the os, and restore everything? Please keep in mind that I'm
still pretty much a Solaris newbie.

I'll do my best to summarize,

Thank you.

bob white
Bechtel Nevada

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:31 CDT