Sponsored Content
Operating Systems Solaris Restoring a system from a backup Post 302890977 by unblockable on Monday 3rd of March 2014 01:14:27 AM
Old 03-03-2014
Thanks for the reply.
Quote:
Originally Posted by hicksd8
The wording of your post doesn't tell us much. What is the old platform? What is the new platform? What version of Solaris exactly? (Is the version pre-10u3 boot-archive architecture, or post-10u3 non-boot-archive?) What filesystems are they? ufs or zfs?
Sorry about that!

Right now I'm trying to do this with Solaris 10 update 10 on VMWare, but I am looking for information that would apply to SPARC machines too.

UFS filesystems.

Quote:
Looking at your profile and posts so far on this forum I cannot tell you whether you have the knowledge to do this. Can you give a clue as to your skill level. You say that you've laid out a copy of the filesystems?
Please consider me a novice! I have a rudimentary understanding of Solaris and filesystems.

And I have laid out a "copy" of the filesystems on my new VM in the sense that I have created filesystems (/opt, /, etc.) on the same slices as the original machine and I have tried to create them the same size as the original VM but I might be off by a few megabytes.

Quote:
What I'm saying that it's probably do-able but can be tricky. I'm sure we can provide the missing pieces of the jigsaw if you have the experience.

---------- Post updated at 07:12 PM ---------- Previous update was at 09:10 AM ----------

And also, what media is your backup stored on? A tape drive that you're going to attach to the new platform, a remote (nfs) node, or what?
I've backed up my files using some backup application that I'd rather not name at the moment. It is stored on our backup server.

What I did was install a new version of Solaris and copied over my old files to some directory (lets say /restore). Then I booted Solaris off of the CDROM into read-only mode and mounted my root filesystem to "/a" and then I went inside /a and overwrote all of the existing directories (/boot, /dev, /opt, etc.) with the files from my backup, and I'm sure those more familiar with Solaris will tell me it was silly to think this would work, which it did not. I'm guessing I shouldn't overwrite directories like /boot and /dev.

So assuming my backup contains *all* files that were in my previous system, is there a way to restore these files onto a new machine and have more or less a copy of my old machine?
 

10 More Discussions You Might Find Interesting

1. OS X (Apple)

OS X Server: Trouble restoring mail from backup...

So I had some bad RAM in my server. Of course I didn't know it at the time. And it kept making the 10.3.5 updater crash. And that last crash did it. My drive was messed up. So I had to reformat and reinstall. Luckily I had a whole slew of fresh backups. But I'm really hung up on the mail. I backed... (0 Replies)
Discussion started by: l008com
0 Replies

2. UNIX for Dummies Questions & Answers

restoring backup using tar command

Please help me in resolving the issue. I have taken backup using the below command $ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z I tried to restore the backup using the below command. $ zcat /opt/globusback2/needed_backups/apglsg.tar.Z | tar -xvf - ... (2 Replies)
Discussion started by: amirthraj_12
2 Replies

3. UNIX for Advanced & Expert Users

restoring backup using tar command

Please help me in resolving the issue. I have taken backup using the below command $ tar cvf - . |compress -> /opt/globusback2/needed_backups/apglsg.tar.Z I tried to restore the backup using the below command. $ zcat /opt/globusback2/needed_backups/apglsg.tar.Z | tar -xvf - ... (5 Replies)
Discussion started by: amirthraj_12
5 Replies

4. AIX

Question about restoring from mksysb backup

Hello, Last night I applied a DB2 fix pack which is now causing problems with the application that uses db2. Prior to applying the fix pack I did a mksysb(rootvg) which includes the file system that has db2 installed on it. If I do a restore from this will it restore the db2 version back to... (1 Reply)
Discussion started by: jyoung
1 Replies

5. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

6. Solaris

Restoring a Root File System that was on a metadevice

Hello I use Solaris 10. I need to restore the root file system, but I don't know how . i can only boot the server in safe mode or with the cd (ok boot cdrom -s) Do you guys know a good procedure, I don't want to break the mirrors. ( the server is not a cluster). Its an emergency, i would... (4 Replies)
Discussion started by: feg
4 Replies

7. AIX

restoring mksysb backup of a clustered server configured in HACMP

Hi, I have done NIM restoration via nim_bosinst a lot of times but I have some doubts on restoring a server which is clustered specifically HACMP. Previously, I don't know the trend but after doing a nim_bosinst, I can see the client's hostname is back to "localhost" rather than its original... (0 Replies)
Discussion started by: depam
0 Replies

8. UNIX for Dummies Questions & Answers

[SOLVED] Restoring differential backup files

I'm using a script (automysqlbackup) to dump mysql db's to .sql file followed by taking one full backup of the .sql file and the differential backups of the newer sql file every day using the tool diff. Now the backup destination folder contains files like, I would like to how do i restore... (3 Replies)
Discussion started by: csengineer
3 Replies

9. Shell Programming and Scripting

Restoring files from backup based on ctime

Hello, I need to restore some yesterday emails from backup within a 5 hours timeframe this is a openvz container, backup is made by rsync files to another partition in the same server I have tried to do this #!/bin/sh cd /vz/backup/414/home/smartftp/mail/domain1.com/ for dir in new... (6 Replies)
Discussion started by: cuantica
6 Replies

10. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies
live_upgrade(5) 														   live_upgrade(5)

NAME
live_upgrade - overview of Live Upgrade feature The Live Upgrade feature of the Solaris operating environment enables you to maintain multiple operating system images on a single system. An image--called a boot environment, or BE--represents a set of operating system and application software packages. The BEs might contain different operating system and/or application versions. On a system with the Solaris Live Upgrade software, your currently booted OS environment is referred to as your active, or current BE. You have one active, or current BE; all others are inactive. You can perform any number of modifications to inactive BEs on the same system, then boot from one of those BEs. If there is a failure or some undesired behavior in the newly booted BE, Live Upgrade software makes it easy for you to fall back to the previously running BE. Live Upgrade software includes a full suite of commands, listed below and described in individual man pages, which implement all of the Live Upgrade features and functions. The software also includes a Forms and Menu Language Interpreter-based user interface named lu(1M). (See fmli(1) for a description of the Forms and Menu Language Interpreter.) The FMLI interface implements a subset of Live Upgrade func- tions. Unlike the command-line interfaces, output from the FMLI interface is not internationalizable. The following are some of the tasks you can perform with Live Upgrade software: o You can make one or more copies of the currently running system. o You can upgrade to a new OS version on a second boot environment, then boot from that environment. If you choose, you can then fall back to your original boot environment or boot from yet another environment. o You can install application or OS packages to a boot environment, then boot from that environment. o You can install OS patches to a boot environment, then boot from that environment. o From a flash archive, you can install an OS to a boot environment, then boot from that environment. See flar(1M) for information on administering flash archives. o You can split and rejoin file systems in a new BE. For example, you can separate /usr, /var, and /opt from /, putting them on their own partitions. Conversely, you could join these file systems on a single partition under /. o You can mount any or all of the filesystems of a BE that is not active, compare the files in any pair of BEs, delete or rename a BE, and perform other administrative tasks. The Live Upgrade software supports upgrade from any valid Solaris installation medium, including a CD-ROM, an NFS or UFS directory, or a flash archive. (See flash_archive(4) for a description of the flash archive feature.) In simplest terms, a BE, for Live Upgrade, consists of the disk slice containing a root file system and the file system/device (usually disk) slice entries specified in vfstab(4). This set of slices is not limited to a single disk. This means that you can have multiple BEs on a single device, or have a BE spread across slices on multiple devices. The minimal requirement for a Live Upgrade BE is the same as for any Solaris boot environment: you must have root (/) and usr filesystems (which might both reside on /). All filesystems except for /, /usr, /var, and /opt can be shared among multiple BEs, if you choose. Each BE must have a unique copy of the file systems that contain the OS--/, /usr, /var, and /opt. For Live Upgrade purposes, these are referred to as non-shareable (sometimes referred to as critical) file systems. With other file systems, such as /export or /home, you have the option of copying the files to a new BE or, the default, sharing them among BEs. These are referred to as shareable file systems. A BE is made up of a unique copy of one or more non-shareable file systems and zero or more copies of shareable file systems. Live Upgrade commands support an option (-X) that enables XML output. Characteristics of the XML are specified in a DTD shipped with the product. XML output enables programmatic parsing of portions of the command output. Live Upgrade supports the notion of a BE description, an optional attribute of a BE. A BE description can be of any length and format. It might be a text string or a binary file. See ludesc(1M) for details. Below is an example set of steps that you might follow in the use of Live Upgrade software. These steps specify the use of commands rather than lu(1M), the FMLI interface. Many Live Upgrade functions are accessible through lu. Except where lu does not support a function, the choice between lu and Live Upgrade commands is a matter of your requirements and preferences. The following example is by no means exhaus- tive of the possibilities of the use of the Live Upgrade software. 1. You create a new BE, using lucreate(1M). The first time you create a BE on a given system, you must designate the current Solaris oper- ating environment as a BE (give it a name). You then specify a name and a set of device (disk) slices you want to use for the new BE. The lucreate command copies the contents of the current Solaris operating environment (now a BE) to the new BE. After you have created additional BEs, you can use a BE other than the current BE as the source for a new BE. Also, you can create an empty BE onto which you can later install a flash archive. 2. Using luupgrade(1M), you upgrade the OS version on your new BE (or on yet another BE you created with lucreate). The luupgrade enables you to upgrade an OS (from any valid Solaris installation medium, including a flash archive), add or remove packages (OS or applica- tion), and add or remove patches. 3. You use luactivate(1M) to make the new BE bootable. The next time you reboot your system, you will come up in the new BE. 4. Using lucompare(1M), you compare the system files on two different BEs. This utility gives you a comprehensive list of the files that have differences. 5. Using lumount(1M), you mount the filesystems of a BE that is not active, enabling you to make changes. When you are finished with the changes, use luumount(1M) to unmount the BE's file systems. 6. Upon booting a new BE, you discover a failure or some other undesirable behavior. Using the procedure specified in luactivate, you can fall back to the previous BE. 7. Using ludelete then lucreate, you reassign file systems on the now-deleted BE to different disk slices. You separate /opt and /var from / on the new BE. Also, you specify that swap be spread over slices on multiple disks. The following is a summary of Live Upgrade commands. All commands require root privileges. lu FMLI-based interface for creating and administering BEs. luactivate Designate a BE as the BE to boot from upon the next reboot of the system. lucancel Cancel a previously scheduled operation. lucompare Compare the contents of two BEs. lucreate Create a BE. lucurr Display the name of the current BE. ludelete Delete a BE. ludesc Add or change BE descriptions. lufslist List the file systems on a specified BE. lumake Re-create a BE based on the active BE. lumount, luumount Mount, unmount file systems of a specified BE. lurename Rename a BE. lustatus For all BEs on a system, report on whether a BE is active, active upon the next reboot, in the midst of a copy operation, and whether a copy operation is scheduled for it. luupgrade Upgrade an OS and install application software on a BE. Such software includes flash archives, complete OS installations, OS and appli- cation packages, and OS patches. /etc/lutab list of BEs on the system lu(1M), luactivate(1M), lucancel(1M), lucompare(1M), lucreate(1M), lucurr(1M), ludelete(1M), ludesc(1M), lufslist(1M), lumake(1M), lumount(1M), lurename(1M), lustatus(1M), luupgrade(1M), lutab(4) Correct operation of Solaris Live Upgrade requires that a limited set of patch revisions be installed for a given OS version. Before installing or running Live Upgrade, you are required to install the limited set of patch revisions. Make sure you have the most recently updated patch list by consulting http://sunsolve.sun.com. Search for the infodoc 72099 on the SunSolve web site. It is possible for an operating system upgrade to remove installed patches. Prior to such an upgrade, use analyze_patches, as described in luupgrade(1M), to determine which, if any, patches will be removed. For versions of the Solaris operating system prior to Solaris 10, Live Upgrade supports the release it is distributed on and up to three marketing releases back. For example, if you obtained Live Upgrade with Solaris 9 (including a Solaris 9 upgrade), that version of Live Upgrade supports Solaris versions 2.6, Solaris 7, and Solaris 8, in addition to Solaris 9. No version of Live Upgrade supports a Solaris version prior to Solaris 2.6. Starting with version 10 of the Solaris operating system, Live Upgrade supports the release it is distributed on and up to two marketing releases back. For example, if you obtained Live Upgrade with Solaris 10 (including a Solaris 10 upgrade), that version of Live Upgrade supports Solaris 8 and Solaris 9, in addition to Solaris 10. The Live Upgrade feature does not support the upgrade of a system running the current Solaris release that has installed non-global zones. (See zones(5).) See for further details. 5 Oct 2005 live_upgrade(5)
All times are GMT -4. The time now is 10:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy