Sponsored Content
Operating Systems Solaris Can /usr and /var be copied to another machine? Post 302531025 by methyl on Wednesday 15th of June 2011 04:22:13 PM
Old 06-15-2011
This is getting hard to follow because each question is a new post.

It all seems to derive from the same initial problem. It might be a good idea to make a consolidated post giving the full history (including commands typed) and mentioning the filesystem types and the contents of /etc/fstab .

Anyway, I cannot advise in detail (but those on the Solaris board or Sun Support can).

One idea.
When I was in a similar situation on an old Solaris server the Sun support guy talked me through the following:

1) Boot the broken server from release media DVD.
2) Mount relevant local filesystems on temporary mountpoints.
3) Set up NFS mounts from broken server to good server to make filesystems from the good system available to the broken system.
The generic kernel included NFS (this is the bit I'm not sure about for Solaris 9).
4) Copy enough from the good server to the bad server to get the broken system running. Pay particular attention to /etc/fstab and at all times know what the root password is.
Either copy from NFS map to the good server hard discs or from NFS map to backup device.
5) Boot the newly repaired server and restore remaining detail from backup.

The only rider was that my backup was a bog-standard unix backup (not tar).
If however your original restore error only overwrote those files which were on a tar backup I would not expect it to overwrite device special files. A tar backup is not suitable for backing up system partitions.

Note: I didn't overwrite /etc/passwd /etc/shadow or /etc/group but chose to repair them having restored the originals to temporary space. Use "vipw" to repair a password file, "vi" to repair /etc/shadow and "pwconv" to sync passwd and shadow. Use "vi" for /etc/group . Run "pwck" and "grpck" before trying to boot.


Ps: 99% of all Systems Administrators would do a cold build and then restore the custom bit from backup.

Last edited by methyl; 06-15-2011 at 05:28 PM..
 

10 More Discussions You Might Find Interesting

1. Solaris

/var filesystem recovery from other machine

Hi Folks, I'm wordering if I can ufsdump the /var fs from a server1 and create a new /var fs in Server2, that is because some damage happened in the /var fs and we don't have backup of it, I've tried fsck and no sucess at all.. Any ideia how I can recovery that /var fs ? Thanks, ... (0 Replies)
Discussion started by: ramosbrazil
0 Replies

2. UNIX for Dummies Questions & Answers

problem in /var/log/messages and /usr/bin/last

Unfortunately., i had remove the files /var/log/messages and /usr/bin/last in our server, we have to touch another one and change the permissions also but not working still now. help me yours thakshina (2 Replies)
Discussion started by: thakshina
2 Replies

3. Solaris

Problem creating sol8 container using seperate / /usr and /var ufsdumps

Hello experts New to solaris 8 containers and zones in general and I'm having some problems creating a Solaris 8 container using ufsdumps of /, /usr and /var. I have created the zone which worked fine and a running the following command. zoneadm -z zone_s8 install -v -p -a /root.ufs ... (2 Replies)
Discussion started by: BrokeIt
2 Replies

4. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

5. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

6. Red Hat

/usr/sbin/crond: can't lock /var/run/crond.pid,

please tell pre-requisite steps to activate cron. i activated the cron but it not executing the script which i set in crontab entry.through root user i passed the service crond start it get start.but when i go to etc/init.d and passed crond stop command.it gets crond: can't lock /var/run/crond.pid,... (2 Replies)
Discussion started by: umair
2 Replies

7. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

8. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble: $ ./autogen.sh checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

9. Red Hat

Server shutdown- /var/log/messages copied over here

Hi, Please share your thought what could make the server shutdown: Dec 1 10:20:05 powellton syslog-ng: syslog-ng version 1.6.8 starting Dec 1 10:20:06 powellton kdump: Loaded kdump kernel: /sbin/kexec -p /boot/vmlinux-2.6.16.60-0.34-kdump --append="CRASH=1 root=/dev/rootvg/rootlv... (1 Reply)
Discussion started by: admin_db
1 Replies

10. OS X (Apple)

OSX: ./Users/myname OR. /usr/myname ? 1) what is the truth on UNIX ./usr/ directory.

OSX uses its own directory strecture on the BSD core, for example /Users/Bob_Alice/. but legacy Unix structure /usr/... remains. Adding confustion, some Unix books say /usr/ was never intended for specific users. and others show it being used for Bor or Alice. I am not sure where to put my third... (5 Replies)
Discussion started by: michaelayres
5 Replies
install-solaris(1M)													       install-solaris(1M)

NAME
install-solaris - install the Solaris operating system SYNOPSIS
install-solaris install-solaris invokes the Solaris Install program. Depending on graphical capability and available memory at the time of invocation, install-solaris invokes either a text-based installer or a graphical installer. The following minimum requirements for physical memory dictate which features are available during installation: For SPARC machines: 128 MB Minimum physical memory for all installation types 128 MB Minimum physical memory required for windowing system 384 MB Minimum physical memory required for graphical-based installation For x86 machines: 256 MB Minimum physical memory for all installation types 256 MB Minimum physical memory required for windowing system 512 MB Minimum physical memory required for graphical-based installation In some cases, even if the minimum physical memory is present, available virtual memory after system startup can limit the number of fea- tures available. install-solaris exists only on the Solaris installation media (CD or DVD) and should be invoked only from there. Refer to the for more details. install-solaris allows installation of the operating system onto any standalone system. install-solaris loads the software available on the installation media. Refer to the for disk space requirements. Refer to the for more information on the various menus and selections. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcdrom (Solaris instal- | | |lation media) | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ pkginfo(1), install(1M), pkgadd(1M), attributes(5) It is advisable to exit install-solaris by means of the exit options in the install-solaris menus. 23 Sep 2005 install-solaris(1M)
All times are GMT -4. The time now is 04:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy