Solaris 2.3 -> 2.5 Upgrade. Need to Expand Root Filesystem

Solaris 2.3 -> 2.5 Upgrade. Need to Expand Root Filesystem

Post by Dan Kenned » Tue, 04 Mar 1997 04:00:00



Hi,

We're planning on upgrading from Solaris 2.3 to 2.5 on a SparcStation
5.  We've only got 16Mb free on our root filesystem.  This will not be
enough for the upgrade.  We need to expand our root filesystem.  Our
thoughts on how to do this are as follows:

   - add a new disk
   - create a new filesystem (/newroot) on the new disk
   - copy the / filesystem to /newroot
   - make /newroot the new root filesystem
   - upgrade to 2.5 on /newroot

My questions are as follows:
   - how do I copy the entire / filesystem to /newroot?
   - how do I make /newroot the new root filesystem?

Any help would be greatly appreciated.

Thanks.

-- Dan

 
 
 

Solaris 2.3 -> 2.5 Upgrade. Need to Expand Root Filesystem

Post by Jay Sco » Wed, 05 Mar 1997 04:00:00




Quote:>Hi,

>We're planning on upgrading from Solaris 2.3 to 2.5 on a SparcStation
>5.  We've only got 16Mb free on our root filesystem.  This will not be
>enough for the upgrade.  We need to expand our root filesystem.  Our
>thoughts on how to do this are as follows:

>   - add a new disk
>   - create a new filesystem (/newroot) on the new disk
>   - copy the / filesystem to /newroot
>   - make /newroot the new root filesystem
>   - upgrade to 2.5 on /newroot

>My questions are as follows:
>   - how do I copy the entire / filesystem to /newroot?

ufsdump and ufsrestore.  see ufsdump man page.  there's
an example using a pipe.
then you'll need to do an installboot onto the new partition.
see the man page for installboot.

Quote:>   - how do I make /newroot the new root filesystem?

what you must do in convince the boot prom to boot from the
new disk.  you have to figure out that the new disk is
disk1 or disk2 or whatever, and do a setenv boot-device
(or whatever it is) to disk2.  do a printenv at the ok prompt
before you start.  failing that, you can always get the
full path to the device as the boot prom sees it and do
the long and typo-prone boot.  do help boot at the ok prompt
it should give you a hint.  haven't done this in a while,
i'm probably forgetting something.

you could also just do a disk swap and restore to the new
larger disk from tape.  still need installboot after the
restore.
--
Jay Scott               512-835-3553

Applied Research Labs, Computer Science Div.
University of Texas at Austin

 
 
 

Solaris 2.3 -> 2.5 Upgrade. Need to Expand Root Filesystem

Post by Arndt Schoenewa » Thu, 06 Mar 1997 04:00:00



> We're planning on upgrading from Solaris 2.3 to 2.5 on a SparcStation
> 5.  We've only got 16Mb free on our root filesystem.  This will not be
> enough for the upgrade.  We need to expand our root filesystem.

On Solaris 2.5 there is an undocumented option `-G' (grow filesystem)
to /usr/lib/fs/ufs/mkfs that can save you a lot of time.

Provided that you have a swap partition c0t3d0s1 directly following
the root partition c0t3d0s0, you could increase the size of the
root and decrease the size of the swap partition and then run mkfs
-G. For this to work, you must boot from the Solaris 2.5 CD so that
your root and swap partitions are not used.

Here is what to do in detail:

  - back up your root partition; you could*things up!

  - boot from the Solaris 2.5 CD and exit the installation
    program after the system identification part. You are
    now in a Bourne shell.

  - run format(1m) and adjust the sizes of the root and swap
    partitions. Write down the new number of blocks in the
    root partition (last column of partition table).

  - run /usr/lib/fs/ufs/mkfs -G /dev/rdsk/c0t3d0s0 461700
    (substituting 461700 with the new block number). Don't
    bother giving additional options like inode ratio or
    optimization type; they are ignored anyway

  - you can now mount /dev/dsk/c0t3d0s0 to e.g. /mnt and
    verify the size change and the fact that all data is
    still there

  - restart the installation with command `suninstall'

Good luck!
Arndt

--

Systems Integrator & IT Consultant
Ostenhellweg 31, 44135 Dortmund, Germany
Tel: +49 231 556075
Fax: +49 231 556049

 
 
 

Solaris 2.3 -> 2.5 Upgrade. Need to Expand Root Filesystem

Post by Vivek Khindr » Tue, 11 Mar 1997 04:00:00


If you can afford the new disk, then do an install rather than an
upgrade.  You can always mount your old disk (under different mount
points) to get back any files and configuration  (e.g. hosts, passwd
etc...) that you need.  Aftwerwhich you can recycle the partitions on
the old disk.

Vivek Khindria

[Hi,

[We're planning on upgrading from Solaris 2.3 to 2.5 on a SparcStation
[5.  We've only got 16Mb free on our root filesystem.  This will not
be
[enough for the upgrade.  We need to expand our root filesystem.  Our
[thoughts on how to do this are as follows:

[   - add a new disk
[   - create a new filesystem (/newroot) on the new disk
[   - copy the / filesystem to /newroot
[   - make /newroot the new root filesystem
[   - upgrade to 2.5 on /newroot

[My questions are as follows:
[   - how do I copy the entire / filesystem to /newroot?
[   - how do I make /newroot the new root filesystem?

[Any help would be greatly appreciated.

[Thanks.

[-- Dan

 
 
 

1. Solaris 2.3=>2.5: Upgrade option not presented

Hello! I'm trying to upgrade a SPARC 20 Solaris 2.3 (with Recommended
Patch Cluster applied) to Solaris 2.5, but the "upgrade" option
isn't presented.

The manual states that either of these conditions can cause this:

        1. var/sadm is symlink or on other filesystem
        2. var/sadm/softinfo/INST_RELEASE doesn't exist.

Neither of these are true, yet it won't ask whether I want
Upgrade or Initial, it just goes into Initial.

Please help!

Dave
--

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    David S. Foster         Univ. of California, San Diego
     Programmer/Analyst     Brain Image Analysis Laboratory

     (619) 622-5892         8950 Via La Jolla Drive, Suite 2200
                            La Jolla, CA  92037
                            [ UCSD Mail Code 0949 ]
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2. How can I delete a (few) socket(s)

3. NIS+ domain: 1 part -> 2 part (Solaris 2.3 -> 2.5)

4. non-blocking read from socket (Sol 2.4)

5. Solaris 2.3, Sparc 5 to Solaris 2.5, Ultra 170E upgrade

6. Number Nine SR9 video?

7. Solaris 2.3 NIS+ Upgrade to Solaris 2.5 NIS+ Question!

8. calendar manager problem

9. 2.3->2.5 Upgrade Suggestions

10. Upgrading 2.3 -> 2.5, is it easy?

11. Solaris 2.3 w/NIS+ Upgrade to 2.5 w/ NIS+ (Master Server)?

12. upgrading from Solaris 2.3 to 2.5/6

13. Solaris 2.3 to 2.5 upgrade concerns