Root Disk Extension

From: McIntosh Alan-R54071 (alan.mcintosh@motorola.com)
Date: Wed Apr 17 2002 - 17:22:52 EDT


Admins,

In an attempt to extend the root disk on an Ultra 10 running Solaris 2.6,
I used format to reduce the swap partition, then increase the root partition
accordingly.

Everything seemed to work fine, and when I display the 'prtvtoc' info, it displays
the correct sizes:

$ prtvtoc /dev/rdsk/c0t0d0s0
* /dev/rdsk/c0t0d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 15 tracks/cylinder
* 945 sectors/cylinder
* 8894 cylinders
* 8892 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
       0 2 00 0 3670380 3670379 /
       1 3 01 3670380 2474955 6145334
       2 5 00 0 8402940 8402939
       7 0 00 6145335 2257605 8402939 /export/brass

When I display the swap information, it displays the new correct sizes also:

$ /usr/sbin/swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 131,1 16 2474928 2474928

However, when performing a 'df -k' it still displays the old partition sizes:

Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 915365 519075 304754 64% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s7 1092784 373678 664467 36% /export/brass
/dev/dsk/c0t1d0s6 2055444 1664521 329260 84% /export/brass1
/dev/dsk/c0t1d0s7 2055444 1 1993780 1% /export/brass2
swap 2082104 16 2082088 1% /tmp

How do you get Solaris to release the extended partition, such as 'extendfs'
does in HP-UX, to access the added size? TIA...

Alan McIntosh
IT - UNIX Systems Administrator
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:13 EDT