Sponsored Content
Top Forums UNIX for Advanced & Expert Users Migrating Solaris 9 to different hardware Post 302100896 by snerta on Sunday 24th of December 2006 04:58:01 AM
Old 12-24-2006
I found a document that looks to be a set of instructions for restoring a sun backup on to different hardware. It reads like it might work. Can someone take a look and fill in any missing or unclear gaps. I only have basic unix skills. I can install/admin etc but thats it.

Who wants to be first to publish a guide using this as the frame work?

thank you.

==================start======================

Installing the operating system


Turn system on and from the “ok>” prompt run: -

Ok> probe-scsi-all

This will check that the system can see all the attached (physical) SCSI devices.

If all ok then insert the Installation CD and run :-

Ok> boot cdrom

This will start the installation and will prompt you warning messages (wrong magic numbers if disks not labelled)

Set up

Local UK-English
Hostname NDR
Networked No (YES for Legato/Netbackup )
NIS None
Subnet no
Timezone Europe/GB
Client Services no
Installation Entire Distribution including OEM support







**Point to remember:-

Any disks, which were previously used in a non sun system, will mean that the disk labels have been overwritten. The installation routine may exit due to this!

From the console window run “format” - to label each disk

Once each disk has been checked for a Solaris Label then the installation can be resumed by running “suninstall” from the same console window.

When prompted select “Auto Layout” and then “Customise” (to create file system layout)

Now set up the system as per their “df -k” ( Note this must be kept up to date)

Mount Remote Filesystems no
Begin Installation
Auto reboot
Set Root password None (This will be recovered from backup)
Power Saving no*

*You must respond to “no” for Power Saving otherwise the system will shutdown when there is little or no activity.




Restoring the customers backup



It is better to bring back the O/S first ie /, /usr, /var, /opt, /export/home then reboot single user mode to bring the rest of the user filesystems. This provides confidence that the system is ok using the backup of the O/S.

Login as root and bring system into single user mode.

* The following will alter depending on the type of backup that has been performed

Tape device as /dev/rmt/0

Ufsdump

These are created on a “per” filesystem (or per slice basis). Multiple usfdumps are written to the same tape and can be accessed sequentially using the “n” - non rewind switch.

You will now need to look at the Customers backup script to see what order they were created.
You may need to skip using “mt -f /dev/rmt/0n fsf X” (X=No backups to skip) This will position the tape correctly for the filesystem you wish to recover.

There are excludes needed for root (/) and the (/usr) filesystems. All others can be restore non-interactively.
















Root filesystem restore:-

boot cdrom -s

Mount root filesystem on temporary mount point /mnt ie :-

# mount /dev/dsk/c0t0d0s0 /mnt

# cd /mnt

# ufsrestore -ivf /dev/rmt/0n

 ls
 add
 delete /cdrom /dev /devices /kernel /platform /proc
 cd /etc
 delete devlink.tab device.tab mnttab name_to_major path_to_inst
 delete driver_aliases driver_classes vfstab wtmpx utmpx

If the /usr directory is part of the / directory do :-
 cd /usr
 delete kernel
 extract
 volume # : 1
 set owner / mode? no
 set modes on directories? No
 quit

If the /usr is separate filesystem do the following :-
For the /usr filesystem:-

Mount usr filesystem on temporary mount point /mnt ie :-

# mount /dev/dsk/c0t0d0s6 /mnt

# cd /mnt

# ufsrestore -ivf /dev/rmt/0n
 ls
 add
 delete kernel
 cd lib / ufs
 delete ufsrestore
 extract
 volume # : 1
 set owner / mode? no
 set modes on directories? No
 quit
Restore the /var and /opt filesystems these can be fully overwritten :-

For the /var filesystem:-

Mount usr filesystem on temporary mount point /mnt ie :-

# mount /dev/dsk/c0t0d0s1 /mnt

# cd /mnt

Make certain the tape is at the right partition

# ufsrestore -rf /dev/rmt/0n


A standard restore can be performed for the remaining filesystems.








CPIO recovery

Command:

# cpio -icvdum -f “*****” “*****2” “*****3” </dev/rmt/0

Create a file containing this it makes it easy to check/correct typos before execution!!

The patterns used when excluding files are the same as those used when performing a selective restore. e.g. “etc/utmp” or “./etc/utmp” (if relative) and “/dev/*” to exclude whole directories

TAR recovery

Command:

# tar -xvfX /dev/rmt/0 /exclude.list

When creating the exclude list you will need to set it up as “one file per line” and you don't need to include “*” when specifying directories*

* don't forget to use “./” if needed!

e.g.

/cdrom
/dev
/devices
/etc/utmpx
.
.
/usr/sbin/tar

Post restore

If Solstice Disk Suite (SDS) or Veritas Filesystems and Volume manager (VX) are being used then you will need to edit /etc/system and comment out any reference to both.

Disk Suite:-

SDS looks like /dev/md/....

Disable Veritas Volume manager: -

VX looks like /dev/vx....


*rootdev:/psuedo/vx....
*set vx.....
cd /etc/vx/reconfig.d/state.d
rm root-done
touch install-db

**Don't forget to change the password file as this has now been restored from tape as customers.





SUN EXCLUDES LIST:



/cdrom
/dev
/devices
/kernel
/platform
/proc
/etc/driver_aliases
/etc/driver_classes
/etc/devlink.tab
/etc/device.tab
/etc/mnttab
/etc/name_to_major
/etc/path_to_inst
/etc/vfstab
/etc/utmpx
/etc/wtmpx
/usr/kernel
/var/run
/etc/sysevent
/usr/lib/fs/ufs/ufsrestore (If this is used for recovery)
/usr/sbin/tar “
/usr/bin/cpio “

=================end=================
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Migrating from HP to Solaris

My company is considering migrating from HP unix to Solaris just to get two more years of support for a particular software product. My question is just how much of an effort is it to do this migration? Are you aware of any migration tools to assist us in this migration? Thanks (1 Reply)
Discussion started by: jkuchar747
1 Replies

2. AIX

migrating solaris DB servers to AIX - resources ?

Hi Guys, I have a new project where I have to migrate about 150+ database environments from various solaris systems running Solaris 8 / 10 and residing on very different sun boxes (from 25k down to ancient/unsupported hardware) to AIX (power6). As special bonus for me, about half of these DBs... (1 Reply)
Discussion started by: zxmaus
1 Replies

3. HP-UX

Migrating from HP UX to LINUX/SOLARIS- which one is more preferable?

Hi all, We have an application that is running on HP-UX operating system (11i). the application is built using C, C++, ProC and ProC++ codes. we have been given two choices for migration: LINUX and SOLARIS. I would like to know the differences between the three OS and which OS to prefer... (3 Replies)
Discussion started by: pb0069950
3 Replies

4. Solaris

Migrating Solaris 8, 9 to Guest Domains (LDOMs)

Hi Everyone, one question is it possible to migrate a physical standalone Solaris 8 or 9 OS to Guest Domain (LDOMs). If yes, can someone please provide steps to migrate these OS to LDOMs. Thanks, Kartheek. (1 Reply)
Discussion started by: bobby320
1 Replies

5. Shell Programming and Scripting

Migrating Oracle on Solaris Sparc to Linux RHEL 7 VM

Hi Gurus, We are migrating Oracle from Solaris to RHEL 7 and looking for Solaris equivalent commands for Linux. we are using lot of korn shell scripts built on Solaris so, i am looking for equivalent commands which are using in Solaris.. Could you please help me here by proving any info... (1 Reply)
Discussion started by: mssprince
1 Replies

6. Red Hat

Migrating Oracle on Solaris Sparc to Linux RHEL 7 VM

Hi Gurus, We are migrating Oracle from Solaris to RHEL 7 and looking for Solaris equivalent commands for Linux. we are using lot of korn shell scripts built on Solaris so, i am looking for equivalent commands which are using in Solaris.. Could you please help me here by proving any info ... (4 Replies)
Discussion started by: mssprince
4 Replies
All times are GMT -4. The time now is 08:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy