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
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
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
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
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
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
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
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
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
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 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
LEARN ABOUT OPENSOLARIS
ndmp
ndmp(4) File Formats ndmp(4)
NAME
ndmp - configuration properties for Solaris Network Data Management Protocol (NDMP) server
DESCRIPTION
The behavior of the Solaris NDMP server is specified by property values that are stored in the Service Management Facility, smf(5).
An authorized user can use the ndmpadm(1M) command to set global values for these properties in SMF.
You can set the following properties by using the ndmpadm set command:
backup-quarantine Backup the files marked as quarantined by AV. Acceptable values are yes or no. The default is no.
dar-support Set the Direct Access Recovery mode. Acceptable values are yes or no. The default is no.
debug-level Set the debug level. The debug-level can be set to either 0 (off) or 1 (on). The default is 0.
debug-path The path to which to save the debug log. The default is /var/ndmp.
dump-pathnode Enable or disable backing up the directories containing modified files or directories in dump(1) backup format.
Acceptable values are yes or no. The default is no.
ignore-ctime Determines whether the change timestamp (ctime) of files and directories is used to determine whether a file should
be backed up in level backup. If this parameter is set to yes, only the modification time (mtime) of the file or
directory determines whether it should be backed up. Acceptable values are yes or no. The default value is no.
overwrite-quarantine Restore quarantined files on top of current files if they already exist. Acceptable values are yes or no. The
default value is no.
restore-quarantine Restore the files that had been marked as quarantined by AV and are backed up. Acceptable values are yes or no. The
default value is no.
tar-pathnode Enable or disable backing up the directories containing modified files or directories in tar(1) backup format.
Acceptable values are yes or no. The default value is no.
token-maxseq Set the maximum sequence number for subsequent token-based incremental backup in NDMP-V4. The default value is 9.
There are two limits for this value: soft-limit, which is 59, and hard-limit, equal to 64. If the token sequence
number, passed by the DMA, is between the soft and hard limits, a warning message is issued to the DMA. The token
sequence number can never exceed the hard-limit value.
version Set the maximum active NDMP protocol version. Valid values are currently 2, 3, and 4. The default is 4.
The following property can only be set when using the ndmpadm enable or ndmpadm disable command:
auth-type Sets the password encryption type for the authentication of local users. Valid values are cram-md5 or cleartext.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWndmpu, SUNWndmpr |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
dump(1), tar(1), ndmpadm(1M), ndmpd(1M), attributes(5), smf(5)
SunOS 5.11 3 Mar 2009 ndmp(4)