SUMMARY:Increasing / partition size when 100%

From: John Mikulak (jmikulak@cisco.com)
Date: Fri Nov 20 1998 - 19:50:12 CST


Many thanks to all who responded - since there where many, I'll include two. The first I actually used successfuly, the second I included because I liked step 11 :). All answers where great and thanks for everyones time - I even learned some other useful tips

regards,
john

********from Jeff Kennedy*******
Your best bet is to shrink /var and use that space in /. Run 'format' to
find out the block range. You are in luck since /var is on slice 3 and
nothing but swap is in between, makes it easier to deal with. You'll need
to dump / and /var, increase /var's beginning block, move swap up by the
same amount, then increase /'s end block.

I did this not so long ago with /usr, not that bad. Don't forget to
'newfs' the /var and / partitions once you've moved them. You'll have to
boot off cdrom to restore. All in all about a 1 hour process if all goes
well.

Let me know if you have other questions on this.

*******from Rich Kulawiec*********

The most cost-effective and fastest way to do this is:

1. Go get another disk (internal or external.)

2. Drop it in and format it. Partition it so that you have at least
one partition with several hundred Mbytes.

3. Boot in single-user mode.

4. Mount the partition from (2) as /var.new

5. Use ufsdump/ufsrestore (or whatever you like) to copy /var to /var.new.

6. Adjust /etc/vfstab so that /var.new will be mounted on /var the
next time you boot.

7. mv /var /var.old

8. mkdir /var

9. Reboot. Now check to make sure that everything is working properly:
you should be running off of the new /var, which is much larger than
the old one. Once you are satisfied that all is well, then:

10. rm -rf /var.old

You now have some room on your root partition; you also have a much
larger /var, which you will need in order to install patches (as well
as for other purposes).

11. Find the short-sighted person who inflicted this pain on you
and explain to them how many beers they owe you

----- Begin Included Message -----

>From sun-managers-relay@sunmanagers.ececs.uc.edu Fri Nov 20 12:33:23 1998
X-SMAP-Received-From: outside
Date: Fri, 20 Nov 1998 12:10:16 -0800 (PST)
From: John Mikulak <jmikulak@cisco.com>
To: sun-managers@sunmanagers.ececs.uc.edu
Subject: Increasing / partition size when 100%
Cc: jmikulak@cisco.com
X-Sun-Charset: US-ASCII
Sender: owner-sun-managers@sunmanagers.ececs.uc.edu
Content-Length: 2369

Hello !

Sorry for a basic question, but I haven't been able to locate the answer in any FAQs.

I have a machine running solaris 2.5.1. Whomever set up the machine allocated a very small amount for /. The partition is now at 100% and I am unable to add a package which I need urgently. I did have two other packages installed, which I removed. This did not seem to make any difference in df -k or df -t. I also removed a core file. Is there anything else I can remove/check for ? What's the best way to increase the size of / ?

Thanks and again appologies if this has been answered before or is too basic !! I will summarize.

regards,
john

# df -t
/ (/dev/dsk/c0t3d0s0 ): 1702 blocks 9606 files
                                  total: 38094 blocks 11392 files
/usr (/dev/dsk/c0t3d0s6 ): 209520 blocks 132230 files
                                  total: 577710 blocks 148096 files
/proc (/proc ): 0 blocks 969 files
                                  total: 0 blocks 1004 files
/dev/fd (fd ): 0 blocks 0 files
                                  total: 0 blocks 26 files
/var (/dev/dsk/c0t3d0s3 ): 265608 blocks 116293 files
                                  total: 461870 blocks 119616 files
/export/home (/dev/dsk/c0t3d0s7 ): 25698 blocks 25616 files
                                  total: 96046 blocks 28480 files
/opt (/dev/dsk/c0t3d0s5 ): 727102 blocks 520080 files
                                  total: 2233036 blocks 558208 files
/tmp (swap ): 592432 blocks 11642 files
                                  total: 592448 blocks 11646 files
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t3d0s0 19047 18196 0 100% /
/dev/dsk/c0t3d0s6 288855 184095 75880 71% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t3d0s3 230935 98131 109714 48% /var
/dev/dsk/c0t3d0s7 48023 35174 8049 82% /export/home
/dev/dsk/c0t3d0s5 1116518 756566 248302 76% /opt
swap 296216 8 296208 1% /tmp
#

----- End Included Message -----



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