Solaris 10 spac root 76% full

Hello,
I know that similar questions have been posted but my situation seems a bit different and would ask for assistance and or comments to proceed. My root was 97% full I moved much of my special programming and such over to a new disk. this got me down to 76%. This originally was a 146 gig drive. I have no idea where the disk space went. Here is the partition table to start out:

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm     413 -  1958       15.00GB    (1546/0/0)   31464192
  1       swap    wu       0 -   412        4.01GB    (413/0/0)     8405376
  2     backup    wm       0 - 14086      136.71GB    (14087/0/0) 286698624
  3 unassigned    wm    1959 -  3504       15.00GB    (1546/0/0)   31464192
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0

Here is the output from df-k

/dev/dsk/c1t0d0s0    15493250 11655152 3683166    76%    /
/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                 27512936    1544 27511392     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
                     15493250 11655152 3683166    76%    /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
                     15493250 11655152 3683166    76%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 27531160   19768 27511392     1%    /tmp
swap                 27511432      40 27511392     1%    /var/run
/dev/dsk/c1t1d0s7    141168826 2343832 137413306     2%    /nbu
192.168.1.7:/backup  20875603968 2679657984 18195945984    13%    /580/backup
/dev/dsk/c1t3d0s0    141157666   65553 139680537     1%    /stor

The root is /dev/dsk/c1t0d0s0

I mean there seems to be a lot of unaccounted space here.
I have installed yet another 146 gig drive and created one big partion on it. Got that mounted and such. I want to copy all off root over to /dev/dsk/c1t0d0s0 . I guess my question is can I leave the original disk as just a boot disk? Can I move all the files and stuff off of root to the new partition? Can you give me some steps to follow. Please.....

Your / partition is only 15G. Looking at your `format` output I'd say you still have a ton of disk space available, it's just not partitioned (yet).

Although it's possible to enlarge the / partition to use more of the available space it's delicate work and you'd be safer just making a new partition for user data.

In order to answer your last question we'd need to know what files you were talking about. Are we talking about user data, applications, or things like /bin, /usr, /etc...?

Yes I mean move everythin off of the root /bin /usr etc.... to my new 146gig partition

You should not do that.

The safest way to solve this is to rebuild the server using a better partitioning layout (re: set / to use the whole disk not counting swap).

Or choose to be OK with having 76% free :slight_smile: It's not that bad as long as you put your data on other partitions.

Here's an interesting option. Since you have available disk space that could be formatted for larger partitions, use live update to create an alternate boot partition and then switch to it.

If you aren't familiar with it, there is a good example with explanations at BigAdmin Sun Docs: How To Use Solaris Live Upgrade to Install Patches. It has references at the end to the online documentation at Sun. You can follow the example and just skip the patches, adjusting it to your situation.

I normally assign 8G for my root / partition and space usage does not go beyond %60 (do not store patches or any user/application related data in there). If you are using Solaris 10, you might want to identify the big folders and remove the packages (that comes with the OS installation) you do not need; e.g. I removed (excluded from the jumpstart) Open Office packages which saved me some space.