Sponsored Content
Full Discussion: Server replication
Operating Systems Solaris Solaris BigAdmin RSS Server replication Post 302473510 by DavidHalko on Saturday 20th of November 2010 09:25:45 PM
Old 11-20-2010
I had to clone systems a number of times recently.

If you are using Solaris, there is a facility called "Flash Archive" with the command "flar". I have replicated some fairly sophisticated servers including their applications.
  • Take a Flash Archive of your reference system, sending the output archive to an NFS Server. (You can use the "/net/<ip-address>/..." nomenclature leveraging the Solaris auto-mounter so you don't have to bother with setting up mounts when creating or restoring the "flar'.)
    "ServerB# flar create ..."
  • Use the boot CD/DVD on the new system, install from the NFS image of the Flash Archive file. (I have used other Solars Operating System boot CD's than the OS version of the "flar" that I was installing, in the past.)
  • You will be prompted for basic Node, Network, and Time information during the installation process, but your cloned system will be functional!
Asking about everything you need to watch out for when you want to clone a system can get infinitely long, depending on which features you are using and which applications you have installed. Let me give you some basics:
  • Node Name ( /etc/nodename )
  • Host Table ( /etc/inet/hosts )
  • Network Interfaces ( /etc/hostname.* )
  • Default Router ( /etc/defaultrouter )
  • Password File ( /etc/passwd )
  • Shadow File ( /etc/shadow )
  • Name Resolver ( /etc/nsswitch.conf )
  • DNS Resolver ( /etc/resolv.conf )
  • Network Masks ( /etc/inet/netmasks )
  • Network Services ( /etc/inet/services )
I had struggled with cloning in the past with scripts to perform the work. Yes, it can be done with backups, restores, writing boot blocks, etc. The Flash Archive system is painless when replicating across similar architectures, with different hardware from the same manufacturer (in this case, Sun SPARC systems.)

Happy Cloning!
 

7 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

dns replication

my primary dns server is not replicating to secondary. i dont know why. i am running solaris 2.6 on both servers. what should i do?:confused: (2 Replies)
Discussion started by: lealyz
2 Replies

2. UNIX for Dummies Questions & Answers

BIND DNS replication

I have a RedHat 7.1 box that we use for DNS in our System Engineering lab. We have a Windows 2000 box that handles DNS in our main office. The Microsoft Admin and I have been given the task of making both of our domains accessible to each other. I had originally made his domain my forwarder, so... (5 Replies)
Discussion started by: Jody
5 Replies

3. HP-UX

HP Unix replication solution

Hi, I looking to setup HP Unix to HP Unix replication as plan of business continuity. The setup can be active passive or active active. Anyone can give me some idea what solution able to perform that? Thanks (3 Replies)
Discussion started by: ufo_999
3 Replies

4. SCO

Replication using NFS.

Hi all, I am going to implement a script which will use NFS to replicate data between two SCO unix servers. It will take files with mtime -1 and copy the data periodically .In this regard my questions are : Is this approach good and reliable enough with respect... (2 Replies)
Discussion started by: dextergenious
2 Replies

5. Red Hat

Openldap 2.4.31 replication

Hi, I have done setup for openldap master and slave. Its working fine and replicating also. But it is working only with plane text password in syncrepl . How we can use encrypted password here also like we are using in rootpw ? Below portion is working. syncrepl rid=101 ... (3 Replies)
Discussion started by: Priy
3 Replies

6. Linux

Mysql replication

Need to recover a replication broken error on the mysql slave server. I want to force it to resend the binlog file from the begining. What is the correct value for the: MASTER_LOG_POS ? 0, 1 or 107 ? (2 Replies)
Discussion started by: andriesh
2 Replies

7. HP-UX

Database replication process stopped in server

Hi, A database (Oracle) replication process was executed by the DBA team in one server (serverX). However, this replication process gets terminated, and there are no errors in the replication log. But there is error in the OS log files (syslog.log) : Aug 8 16:51:47 L28dre02 sshd: subsystem... (1 Reply)
Discussion started by: anaigini45
1 Replies
sys-unconfig(1M)					  System Administration Commands					  sys-unconfig(1M)

NAME
sys-unconfig - undo a system's configuration SYNOPSIS
/usr/sbin/sys-unconfig DESCRIPTION
The sys-unconfig command is used to restore a system's configuration to an "as-manufactured" state, ready to be reconfigured again. The system's configuration consists of hostname, Network Information Service (NIS) domain name, timezone, IP address, IP subnet mask, and root password. This operation is the inverse of those performed by the sysidnet(1M), sysidns(1M), and sysidsys(1M) programs run at boot. See sysidtool(1M). sys-unconfig does the following: o Saves current /etc/inet/hosts file information in /etc/inet/hosts.saved. o If the current /etc/vfstab file contains NFS mount entries, saves the /etc/vfstab file to /etc/vfstab.orig. o Restores the default /etc/inet/hosts file. o Removes the default hostname in /etc/hostname.interface files for all interfaces configured when this command is run. To determine which interfaces are configured, run the command 'ifconfig-a'. The /etc/hostname.interface files corresponding to all of the inter- faces listed in the resulting output, with the exception of the loopback interface (lo0), will be removed. o Removes the default domainname in /etc/defaultdomain. o Restores the timezone to PST8PDT in /etc/TIMEZONE. o Disables the Network Information Service (NIS) and Network Information Service Plus (NIS+) if either NIS or NIS+ was configured. o Removes the file /etc/inet/netmasks. o Removes the file /etc/defaultrouter. o Removes the password set for root in /etc/shadow. o Removes the file /etc/.rootkey. o Executes all system configuration applications. These applications are defined by prior executions of a sysidconfig -a application. (See sysidconfig(1M)). When sys-unconfig is run, all system configuration applications are passed one argument, -u. o Removes the file /etc/resolv.conf. o Disables LDAP by removing /var/ldap/ldap_client_cache, /var/ldap/ldap_client_file, /var/ldap/ldap_client_cred, and /var/ldap/cachemgr.log. o Regenerates keys for sshd(1M). When sys-unconfig is finished, it performs a system shutdown. sys-unconfig is a potentially dangerous utility and can only be run by the super user. FILES
/etc/default/init process control initialization /etc/defaultdomain /etc/defaultrouter /etc/hostname.interface /etc/inet/hosts host name database /etc/inet/netmasks network mask database /etc/nodename /etc/.rootkey super-user's secret key /etc/shadow shadow password file /etc/vfstab virtual file system table /var/nis/NIS_COLD_START /var/yp/binding/*/ypservers ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWadmap | +-----------------------------+-----------------------------+ SEE ALSO
init(1M), kdmconfig(1M), sshd(1M), sysidconfig(1M), sysidtool(1M), hosts(4), netmasks(4), shadow(4), attributes(5) NOTES
sys-unconfig is not available on diskless clients. SunOS 5.10 4 Jun 2004 sys-unconfig(1M)
All times are GMT -4. The time now is 02:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy