Backup issues (ufsdump/ufsrestore) under solaris 10
Hello all,
We are in the process of migrating to Solaris 10 from Solaris 8.
On our Solaris 8 systems with 2 HDDs we have a script that does a full backup of one disk (slice by slice) on to another using ufsdump/ufsrestore + boot record. The idea is that if one disk becomes corrupt logically/physically we can boot off the backup disk and continue using the system.
This worked fine under Solaris 8. We tried to do the same under Solaris 10 and noticed some unexpected behaviour when we tried to boot off the backup disk. Solaris 10 started "reconfiguring services" just like it does it when you install the OS fresh with the message:
Loading smf(5) service descriptions: xx/117
Somehow Solaris 10 "knew" that it was booted from a different device than last time.
My question would be: how does Solaris 10 know this and could we "fool" it into thinking that it was always installed on a backup disk, so it doesn't reconfigure itself every time new backup is made (and used).
"... The real question is "how can I be sure that except smf there is nothing else in the OS affected by HDD change" and that is what I meant..."
The fact that you use ufsdump on mounted (I am guessing that you are doing so :-) file systems is risky!. Alternatively, you can create snapshots (fssnap(1M)) for the file systems that you are going to ufsdump on.
If your main aim is to replicate and reduce down time in case of root disk failure, a better solution is make use of mirriong via Solaris Volume Manager (aka SDS or md(7D)). Mirror does not guard against human errors though, such as accidentally deletion of crucial files :-) (which a backup strategy can guard against).
Hope this helps.
Regards,
S.T.Chang
Similar Messages
-
What is the limit of the size of a disk under Solaris 8?
Hello,
I have a problem when I try to run format command to label a disk of 1TB under solaris 8.
# format.......
114. c9t14d3 <DGC-RAID3-0322 cyl 32766 alt 2 hd 1 sec 0>
/pci@8,700000/lpfc@4/sd@e,3
Specify disk (enter its number)[115]: 114
selecting c9t14d3
[disk formatted]
Disk not labeled. Label it now? y
Warning: error writing VTOC.
Warning: no backup labels
Write label failed
format> print
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (default):
Total disk cylinders available: 32766 + 2 (reserved cylinders)
Arithmetic Exception - core dumpedI think maybe if you split it into two luns, you can
stitch them back together with svm.
But even thats not certain.Depends on what you're going to do with the device at that point. UFS on Solaris also does not support volumes 1TB or larger. So you'd have to use it as a raw slice space or a filesystem that did support larger sizes.
You need later versions of Solaris 9 to get mutli-terabyte UFS support. (a separate issue from multi-terabyte LUN support).
Darren -
Hi-
Looked thru the thread related to my questions and found nothing that applies yet.
Example:
http://social.technet.microsoft.com/Forums/en-US/4e4472b9-8e6f-4fdc-a287-1cc8c0f6de09/windows-2008-r2-backup-fails-with-event-521-error-code-2155348001?forum=windowsbackup
http://social.technet.microsoft.com/Forums/en-US/e8c910f7-f0dd-4613-beae-b98894fb6f23/windows-server-2008-std-backup-fails-constantly-with-error-code-2155348001?forum=windowsbackup
Here are details of the issues....
Backup - OS error - system image:
External disk - USB
Mon - Fri @ 6PM.
Windows SystemState
OS(C:)
Last backup failure...
Start time: 8/11/2014 6:01:32 PM
End time: 8/12/2014 4:51:29 AM
Duration: 10:49:56.4414784
[Critical error WINIMAGE_UNABLE_VSS] Unable to create VSS snapshot
- Additional information: Refer to the log for more details
- Troubleshooting link:
http://kb.backupassist.com/errormap.php?BA2512
The backup operation stopped before completing.
Detailed error: ERROR - The shared restore point operation failed with error (0x81000101)
The creation of a shadow copy has timed out. Try this operation again.
Log of files successfully backed up:
C:\Windows\Logs\WindowsServerBackup\Backup-12-08-2014_04-41-00.log
Log of files for which backup failed:
C:\Windows\Logs\WindowsServerBackup\Backup_Error-12-08-2014_04-41-00.log
NOTE:
The errors logs are not there?
Windows Backup timed-out before the shared protection point was created.
ERROR - The shared restore point operation failed with error (0x81000101)
The creation of a shadow copy has timed out. Try this operation again.
Event Viewer Log:
Sequence of Events...
1.
The Block Level Backup Engine service has successfully started.
2.
Backup operation that started...
Log Name: Application
Source: Microsoft-Windows-Backup
Date: 8/12/2014 4:51:06 AM
Event ID: 521
Task Category: None
Level: Error
Keywords:
User: SYSTEM
Computer: mdnfile.Auxiant.local
Description:
The backup operation that started at '?2014?-?08?-?12T09:41:00.492000000Z' has failed because the
Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed
with following error code '2155348001'.
Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.
--> Suggestion are to check Virus scanner or consult DPM forum...
3.
OS Job failed with errors...( Backup Assist is 3rd party backup - wrapper round Wbadmin/Win Backup)
Log Name: Application
Source: BackupAssist
Date: 8/12/2014 4:51:51 AM
Event ID: 5634
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
Backup job OS backup failed with errors.
Critical error: Unable to create VSS snapshot
Destination: External disk
Start time: 8/11/2014 6:01:32 PM
End time: 8/12/2014 4:51:29 AM
Duration: 10:49:56.4414784
Destination: External disk
Start time: 8/11/2014 6:01:32 PM
End time: 8/12/2014 4:51:29 AM
Duration: 10:49:56.4414784
4.
Backup Assist reports via Win backup - Snapshot in progress
Log Name: Application
Source: BackupAssist
Date: 8/12/2014 4:52:20 AM
Event ID: 5634
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
Backup job Data backup failed with errors.
Ultra critical error: Volume Shadow Copy Error 0x80042316 - snapshot set in progress
Destination: Local directory
Start time: 8/12/2014 4:52:10 AM
End time: 8/12/2014 4:52:12 AM
Duration: 00:00:02.7300000
5.
The Block Level Backup Engine service has stopped.
6.
Later...we tried manually stopping VSS and SWPRV services - only VSS had the issue.
WBengine was not running...
C:\>sc stop swprv
SERVICE_NAME: swprv
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\>sc query swprv
SERVICE_NAME: swprv
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\>sc query wbengine
SERVICE_NAME: wbengine
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\>sc query vss
SERVICE_NAME: vss
TYPE : 10 WIN32_OWN_PROCESS
STATE : 3 STOP_PENDING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\>sc stop vss
[SC] ControlService FAILED 1061:
The service cannot accept control messages at this time.
Log Name: Application
Source: VSS
Date: 8/12/2014 9:20:33 AM
Event ID: 8225
Task Category: None
Level: Information
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
The VSS service is shutting down due to shutdown event from the Service Control Manager.
7.
VSS still having issues here...not stopping!
Log Name: Application
Source: VSS
Date: 8/12/2014 9:42:33 AM
Event ID: 11
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
Volume Shadow Copy Service information:
The COM Server with CLSID {e579ab5f-1cc4-44b4-bed9-de0991ff0623} and name IVssCoordinatorEx2 cannot be started.
Most likely the CPU is under heavy load. [0x80080005, Server execution failed]
8.
Not sure why this is started again?
Plus a DCOM timeout...
Log Name: Application
Source: Microsoft-Windows-Backup
Date: 8/12/2014 9:31:13 AM
Event ID: 753
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: mdnfile.Auxiant.local
Description:
The Block Level Backup Engine service has successfully started.
Event Xml:
Log Name: System
Source: Microsoft-Windows-DistributedCOM
Date: 8/12/2014 9:31:43 AM
Event ID: 10010
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
The server {E579AB5F-1CC4-44B4-BED9-DE0991FF0623} did not register with DCOM within the required timeout.
9.
Lots more errors about VSS...repeating Event ID's 11 and 8193...
Log Name: Application
Source: VSS
Date: 8/12/2014 9:42:33 AM
Event ID: 8193
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: mdnfile.Auxiant.local
Description:
Volume Shadow Copy Service error: Unexpected error calling routine CoCreateInstance.
hr = 0x80080005, Server execution failed
. Operation:
Instantiating VSS server
10.
Then, finally stopping again...
Log Name: Application
Source: Microsoft-Windows-Backup
Date: 8/12/2014 9:51:13 AM
Event ID: 754
Task Category: None
Level: Information
Keywords:
User: SYSTEM
Computer: mdnfile.Auxiant.local
Description:
The Block Level Backup Engine service has stopped.
11.
And still repeating 11 & 8193 at this point...as we write up this post.
12.
This was suggested by the Backup Assist - software vendor....
A.)
...for 0x81080101:
"ERROR - The shared restore point operation failed with error (0x81000101)
The creation of a shadow copy has timed out. Try again this operation."
If you receive the above error in your report, we have recently found a registry key which
contains the timeout value set by Microsoft for VSS and found that you can edit this to extend it.
To get to the registry key, open Regedit (Start > Run > Regedit) and browse to:
"HKLM\Software\\Microsoft\\Windows NT\\CurrentVersion\\SPP\\CreateTimeout".
Change value to 1200000 (2*10*60*1000 = 20 mins).
The default for the timeout period is 10 mins so hopefully doubling this will give enough time to
complete the snapshot.
If this isn't present, you'll need to manually enter the registry key. It's a DWORD 32-bit key.
--> NOTE: HAve not done this yet.
B.)
And for 0x80080005...
http://support.microsoft.com/kb/870655/en-gb
Our server does have high CPU load at times...
13.
Another post from technet mentions system volume size - here is our layout below:
A.)
OS/system Disk...
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 278 GB 0 B (System Vol = C: Drive - OS w/ Programs and batch jobs)
Disk 1 Online 2791 GB 0 B * (Data drive - DFS, rsync,etc. run on D: Drive)
Disk 2 Online 1863 GB 0 B (USB 2/3.0 - Enclosure w/ SATA disk = 2GB formatted w/ NTFS.)
DISKPART> detail disk
DELL PERC H710P SCSI Disk Device
Disk ID: CA0DEEA5
Type : RAID
Status : Online
Path : 1
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(0100)#PCI(0000)#RAID(P01T00L00)
Current Read-only State : No
Read-only : No
Boot Disk : Yes
Pagefile Disk : Yes
Hibernation File Disk : No
Crashdump Disk : Yes
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
Volume 1 RECOVERY NTFS Partition 3072 MB Healthy System
Volume 2 C OS NTFS Partition 275 GB Healthy Boot
B.)
Backup disk...
ST320006 41AS USB Device
Disk ID: 801AF48C
Type : USB
Status : Online
Path : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
Volume ### Ltr Label Fs Type Size Status Info
Volume 4 F BACKUPS NTFS Partition 1863 GB Healthy
C.)
NOTE:
Also on disk 0(system Disk) - we have a small OEM partition = 39MB and a Recovery Partition = 3GB.
D.)
Issues with WBAdmin now...
C:\>wbadmin get disks
wbadmin 1.0 - Backup command-line tool
(C) Copyright 2004 Microsoft Corp.
ERROR - A Volume Shadow Copy Service operation error has
occurred: (0x80042302)
A Volume Shadow Copy Service component encountered an unexpected error.
Check the Application event log for more information.
14.
Ran "Check-Disk" -no errors...
C:\>chkdsk
The type of the file system is NTFS.
The volume is in use by another process. Chkdsk
might report errors when no corruption is present.
Volume label is OS.
WARNING! F parameter not specified.
Running CHKDSK in read-only mode.
CHKDSK is verifying files (stage 1 of 3)...
116224 file records processed.
File verification completed.
654 large file records processed.
0 bad file records processed.
0 EA records processed.
76 reparse records processed.
CHKDSK is verifying indexes (stage 2 of 3)...
156676 index entries processed.
Index verification completed.
0 unindexed files scanned.
0 unindexed files recovered.
CHKDSK is verifying security descriptors (stage 3 of 3)...
116224 file SDs/SIDs processed.
Security descriptor verification completed.
20227 data files processed.
CHKDSK is verifying Usn Journal...
35628352 USN bytes processed.
Usn Journal verification completed.
Windows has checked the file system and found no problems.
289233919 KB total disk space.
100241492 KB in 85477 files.
57380 KB in 20228 indexes.
0 KB in bad sectors.
226627 KB in use by the system.
65536 KB occupied by the log file.
188708420 KB available on disk.
4096 bytes in each allocation unit.
72308479 total allocation units on disk.
47177105 allocation units available on disk.
15.
There are no backup error logs here - only .etl files...
C:\Windows\Logs\WindowsServerBackup\
Wbadmin.1.etl = 9:42AM on 8/12
Wbadmin.2.etl = 4:51AM on 8/12
Per windows Win troubleshooting:
http://technet.microsoft.com/en-us/library/ee692290(WS.10).aspx
http://blogs.technet.com/b/filecab/archive/2009/09/16/diagnosing-failures-in-windows-server-backup-part-1-vss-spp-errors.aspx
--> Related to Windows backup and not VSS?
2155348001 - 0x80780021 - Windows Backup timed-out before the shared protection point was created.
Should we run the "FIXVSS08.BAT" script - restarts services and re-registers DLL's - does this ever help?
Will this server need a reboot since VSS is in a state and we can't even test backups?
Is there a tool we can use to debug VSS or troubleshoot or OS backups further?
MSReport/Diag, VSS debugging, or another way of helping fix our OS(SystemState/C: drive) backup issues?
Any help is greatly appreciated - thx.
-SP
Scot PichelmanHi Scot,
Sometimes a third party backup application will change the default VSS provider adding VSS writers which causes Windows Server Backup using an incorrect component in doing backup, that's why I suggest to delete it for a test. Anyway you can reinstall it
after testing.
And as you said a high-load CPU could also be the cause of the issue so you may need to first rule hardware effective out.
If issue still exists, please try the steps below as well:
1. Please check DCOM Server Process Launcher service is started.
2. If not, try to change RPC service to run as SYSTEM account. To do this please modify the following key:
Note: Backup the key before edit incase it cause any issue.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\RpcSs\
Find "ObjectName" and change the value to LocalSystem.
Reboot to see if DCOM back to work and if Windows Server Backup starts working. If not, please provide the result if there is any new error occurs.
If DCOM still not work, please compare the content of the following key with a working server:
HKEY_LOCAL_MACHINE\Software\Microsoft\OLE
Edit if there is any difference and make sure you created a backup of the key before editing.
If you have any feedback on our support, please send to [email protected] -
I get this every time I put a filesystem on my Sun
lakshmi root /: newfs -f 4096 /dev/rdsk/c3t1d0s6
Cylinder groups must have a multiple of 16 cylinders with the given
parameters
Rounded cgsize up to 256
Warning: insufficient space in super block for
rotational layout tables with nsect 127, ntrack 127, and nrpos 8.
Omitting tables - file system performance may be impaired.
/dev/rdsk/c3t1d0s6: 997159296 sectors in 61824 cylinders of 127
tracks, 127 sectors
486894.2MB in 3864 cyl groups (16 c/g, 126.01MB/g, 15808 i/g)
super-block backups (for fsck -F ufs -o b=#) at:Any help would be greatHow large can be a filesystem under Solaris 8???It depends on the file system. UFS is limited to 1TByte.
SAM-QFS is virtually unlimited. Other file systems may
be limited by the size of the media (CD-ROM/HSFS etc.)
-- richard -
Upgrade LMS 2.6 to 3.1 under Solaris 9.
I was done an upgrade of CWLMS 2.6 to CWLMS 3.1 under Solaris 9.
The data was exported ok, but when I try to lunch campus Manager - Visualization - Topology Services I get this Screen (CM error.jpg)
Please any ideas to solve this issue?
Thanks very much!
best regards,
JorgelinaHi, I have a new problem.
In other cliente machine when I try to lunch CM-Visualization_ Topology services, I get this error (attach: topology services.jpg)
I done many thnigs to try to sole. but I can´t.
Please, any idea?
thanks very much in advance!
best regards,
Jorgelina -
Duplicate fiber root disk using just ufsdump/ufsrestore/installboot ...
I have to setup 5 x 890 servers and 4 x 490 servers. Without using jumpstart, is there a quick way to do a duplicate a root disk using just ufsdump/ufsrestore/installboot commands? If these boxes had SCSI drives, this would not be problem. Because of the fiber drives, I am struggling to figure out how to do it - because the WWNs are embedded into device tree.
Anybody got any ideas how to do it using plain old ufsdump/ufsrestore commands?
Thanks.
SGHi Michael,
Thanks for the qucik reply.
The problem persists. I deleted the contents of /disk2/dev/dsk and /disk2/dev/rdsk. Then I rebuilt the device tree using:
/usr/sbin/devfsadm -c disk -r /disk2 -p /disk2/etc/path_to_instThen I set the boot parameter:
luxadm set_boot_dev /dev/dsk/c2t2d0s0When rebooting, the new WWN now correctly shows up under boot-device. However, the file system appears to be mounted as read-only again. The same errors show up on the screen, all related to starting services, cron, etc. All instances are followed by an error message of "Read-only file system".
I also fsck'ed the root partition, but this didn't help fix the problem.
After this test, I ran fsck again, and noticed that c2t2d0s0 was last mounted on /disk2, so the root slice was in fact never mounted during boot.
Is there anything else I can check with regards to the read-only mounting problem?
Thanks. -
Issues with Samba and Solaris 10 when number of group is greater than 16
Has anyone heard if Sun plan to increase the value of ngroups_max from 16 to something larger in the next release of Solaris.
I have just upgraded Samba from version 3.2 to 3.3-3.4 and now users that belong to more than 16 groups have no access the shares.
I know the value can be increased via /etc/system but this breaks other stuff.
What I need is either Samba to take this limitation into account or SUN to overcome the restriction.
Edited by: neilnewman on Sep 22, 2009 8:30 AM
Edited by: neilnewman on Sep 22, 2009 8:34 AMAfter some more digging around to help myself, I found a way to get users that belong to more than 16 Windows groups access to the Samba shares under Solaris.
Using a source copy of Samba 3.2.15
cd source/lib
edit util.c
around line 460 I added the following of lines of code:
if (*num_gids >14)
*num_gids=15;
Provided the users in question that require Samba access have the group they need within the first 15 groups, all works OK.
I presume this could also be done with latter versions of Samba, but I have not taken a look at this point. -
hello all,
I am trying to launch Mozilla 1.7 under Solaris 10 with multiple Java versions, like Java 1.5, 1.4 and 1.6.
I am not 100% sure but from what I see its not fully supported by Mozilla?
some behavior patters that I noticed is that Mozilla tend to lock the session against the JRE its running under. so if you started with 1.5
it will remain under 1.5 until you kill/finish that session..
could anyone please help with this or if you have any better suggestion?
thanks a lot
/aymanNot really sure what you are trying to do, but you can get a more recent version at the following
link. README link has info on install, including java.
http://www.mozilla.com/en-US/firefox/2.0.0.11/releasenotes/#contributedbuilds -
Hi can anybody tell me if i can mount a NTFS partition under Solaris 10??
Thanks for ur help.<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>korsabad wrote on Wed, 11 January 2006 06:23</b></td></tr><tr><td class="quote">
if you use solaris x86 and the ntfs-partition
Not possible. NTFS has those windows-security-id's (you know, those about-40-character-long-id's) for each object which cannot be read from solaris.
</td></tr></table>
I think writing to NTFS is nearly impossible (due to changes of the NTFS version, security stuff, and so on).
However reading from an <u>unencrypted</u> NTFS partition seems to be a possible thing. I do not know if a tool or a driver <u>already</u> exists but I think it is a possible task to write a tool that reads from NTFS partitions.
I think writing a tool that reads from UFS partitions under Windows is an easy task, too. I wrote such a tool for reading the EXT2 file system under Windows long time ago.
Martin -
Porting of Sybase Application to Oracle 8i under Solaris
Dear All
I want to port an application from sybase 10.2 which is running under Solaris to Oracle 8I under Solaris. Apart from database objects and stored procedures which I have already converted I wan to conver some C Codes and Unix Scripts
Which are either shell scripts or perl programs. I need all of your valuable suggestions in this regard.
Q-1 . In the Perl Program the following lines are sybase specific
Use Sybase:: Dblib
Require /files0/apps/local/lib/perl15/Sybase/sybperl.pl;
What will be the equivalent for ORACLE.
Suggest what perl I should use in this context.
In continuation to the above also I have some shell variables assigned as follows
$SYB_SERVER=SYB_PROD_CERT;
$SYB_DATABASE=APPLDB;
$ENV{SYBASE}=/sybase/10.0.4;
$ENV{DSQUERY}=$SYB_SERVER
$SYB_USER=keshav;
$SYB_PWFILE=/myappl/processcert/passwords/$SYB_SERVER;
$SYB_PW=/usr/bin/cat $SYB_PWFILE;
chop($SYB_PW);
dbmsghandle(message_handler);
dberrhandle(error_handler);
( ($dbproc = &dblogin($SYB_USER,$SYB_PW,$SYB_SERVER)) != -1 );
( &dbuse($dbproc, $SYB_DATABASE) != -1 );
( ($dbproc2 = &dblogin($SYB_USER,$SYB_PW,$SYB_SERVER)) != -1 );
( &dbuse($dbproc2, $SYB_DATABASE) != -1 );
sub Statistics
# get distinct sub-cat counts
( &dbcmd($dbproc, "select count(*),orgnumber,name=(select servicerorgname from servicer where servicer.orgnumber=transactionlog.orgnumber) from transactionlog group by orgnumber order by count(*) desc\n") != -1 );
&dbsqlexec($dbproc);
&dbresults($dbproc);
$row = DBROWS( $dbproc );
2. One of the Sample C Program is given here which I want to convert into pro*c.
I would like to know what are the corresponding libraries of oracle under
Solaris are to be used and also the respective header files mapping of Sybase
To Oracle. Any comment of this will be appreciated.
#include "sql.h"
#include "unix.h"
#include <stdlib.h>
#ifndef SQL_INCLUDED
#define SQL_INCLUDED
#include <sybfront.h>
#include <sybdb.h>
/*#include "sybdbex.h"*/
/* #include <syberror.h>*/
#endif
/* LogonToServer(char server[]) */
/*----------------------------------------------------------------------sra-*/
DBPROCESS *LogonToServer(char server[], char datab[], char user[],
char passwd[], char appname[] )
PCHAR szTemp;
char data[1000];
int result;
long l;
DBPROCESS *dbp;
LOGINREC *login;
/* initiailize library */
if ( dbinit() == FAIL)
printf("DB Initialization failed!\n");
exit(1);
/* install user supplied error handling and message handling routines*/
dberrhandle(err_handler);
dbmsghandle(msg_handler);
/* get LOGINREC structure and fill */
login = dblogin();
DBSETLUSER(login,user);
DBSETLPWD(login,passwd);
DBSETLAPP(login,appname);
/* get a DBPROCESS structure for communicating with the server */
if ((dbp = dbopen(login,server)) == NULL)
printf("dbopen failed on server: %s\n",server);
exit(1);
dbcmd(dbp,strcat("use ",datab));
dbsqlexec(dbp);
result=dbresults(dbp);
return dbp;
/* LogoutOfServer() */
/*----------------------------------------------------------------------sra-*/
void LogoutOfServer(DBPROCESS *dbproc)
DBPROCESS *dbp2;
dbclose( dbproc );
return;
int err_handler(DBPROCESS *dbproc,int severity,int dberr,int oserr,
char dberrstr,char oserrstr)
if ((dbproc == NULL))
return(INT_EXIT);
else
fprintf(ERR_CH, "DB-LIBRARY error:\n\t%s\n",dberrstr);
if (oserr != DBNOERR)
fprintf(ERR_CH,"Operating-system error:\n\t%s\n",oserrstr);
return(INT_CANCEL);
int msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity,
char msgtext,char srvname,char *procname,DBUSMALLINT line)
return 0;Hello
The "-D_BIG_ENDIAN" shows you that the code is endian-dependent. This means that the program cannot be ported 1:1 because x86 is little endian while Sparc is big-endian.
I would first try to use "-D_LITTLE_ENDIAN" (or what flag ever I can find in the source codes) and to compile for x86.
Because of the "-D_BIG_ENDIAN" different source code is used for both machines. Maybe the little-endian source code is wrong:
#ifdef _BIG_ENDIAN
// correct source code for Sparc
#else
// INCORRECT source code for x86
#endifMartin -
after having played back a backup on a Mac under OSX 10.7 containing CS4 following error massage occured when trying to start PS:
eroor 150:30
seems to be related with registrationBy courtesy of R_Kelly:
The 150:30 error means licensing broke.
Two ways to fix this: If you are used to the Terminal app, you download the license recovery package and following instructions carefully, you use the python script in the package. Error "Licensing has stopped working" | Mac OS
If for some reason it doesn't, reinstall CS4 from your discs, or download the CS4 installer here.
http://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html
Have your serial number ready. -
How to start ftp under solaris 10
Hi,
if I try to enable ftp under Solaris 10, I get the message "unsatisfied dependencies":
root@u015ad2a:.../>svcadm -v enable -rst svc:/network/ftp:default
svc:/network/ftp:default temporarily enabled.
svc:/network/inetd:default temporarily enabled.
svc:/network/loopback temporarily enabled.
svc:/system/filesystem/local temporarily enabled.
svc:/milestone/single-user temporarily enabled.
svc:/system/identity:node temporarily enabled.
svc:/system/filesystem/minimal temporarily enabled.
svc:/system/filesystem/usr temporarily enabled.
svc:/system/filesystem/root temporarily enabled.
svc:/system/device/local temporarily enabled.
svc:/milestone/devices temporarily enabled.
svc:/system/manifest-import temporarily enabled.
svc:/milestone/sysconfig temporarily enabled.
svc:/milestone/name-services temporarily enabled.
svcadm: Instance "svc:/network/ftp:default" has unsatisfied dependencies.
root@u015ad2a:.../>svcs svc:/network/ftp:default
STATE STIME FMRI
uninitialized 9:40:09 svc:/network/ftp:default
How can I enable ftp?This looks sort of like what happened to me just now. I tried svcs -x
and got:
# svcs -x
svc:/network/rpc/gss:default (Generic Security Service)
State: uninitialized since Mon Apr 18 13:01:12 2005
Reason: Restarter svc:/network/inetd:default has not initialized service state.
See: http://sun.com/msg/SMF-8000-4D
See: gssd(1M)
Impact: 10 dependent services are not running. (Use -v for list.)
svc:/network/service:default (layered network services)
State: offline since Mon Apr 18 13:01:29 2005
Reason: Start method is running.
See: http://sun.com/msg/SMF-8000-C4
See: ifconfig(1M)
See: /var/svc/log/network-service:default.log
Impact: 4 dependent services are not running. (Use -v for list.)
svc:/application/print/server:default (LP print server)
State: disabled since Mon Apr 18 13:01:12 2005
Reason: Disabled by an administrator.
See: http://sun.com/msg/SMF-8000-05
See: lpsched(1M)
Impact: 1 dependent service is not running. (Use -v for list.)
I tried all kinds of things to get gss to run, but I finally realized that
it was really ifconfig that was the problem. The system has two
network interfaces, and during installation I gave both of them
a name. However, hme1 was not really connected to anything.
All I did to get it to work was
# cd /etc
# mv hostname.hme1 no.hme1
After that, I rebooted, and everything came up OK. I don't know
if the original problem was the same, but this solved my problem. -
Sparc Storag Array 102 needs to run under solaris 10
I need to get a Sparc Storage Array to run under solaris 10. The soc driver that is needed is not supportted under solairs 10. I took the packages needed off of solari 9 cd and installed them but no luck. I tried to to do a modload and modinfo but it was not there.
The package loaded a file into /kernel/drv/sparcv9/soc. I have solaris 9 onanother disk on the same system and looked at the system trying to copy and edit the files on 10 but not device paths show up in the system. I copyied a file called soc that was in /kernel/drv/ I edited the /etc/device_aliases and path_to_inst but no good.
There are no entries in the /devices/ dir that reference the soc path. I do not if than can work but really would like to get this working.The fibre interface on that beast is NOT a Gigabit connection,
such as is common on current systems.
It was a 100Mbps connection through an array controller,
running with a 40MHz microSPARC II control module.
You'd exceed its throughput capabilities in any attempt
to read or write data at or beyond that 100Mbps rate.
I don't anticipate much assistance in these forums for a technology that goes back a decade-and-a-half.
Contributors familiar with products from that era stopped posting in 2006
when the previous supportforum.sun.com was merged into this one.
We'll all look forward to your guidance after you succeed.
You'll teach the rest of us. -
How to install a LPR Printer under Solaris 10 01/06
Hi,
I just installed Solaris 10 01/06 2 days ago and so far I'm pretty impressed, really a nice system!
I have one problem, though:
I have a Kyocera FS-1010 printer in my office which is connected to a CNet Printserver.
I'm able to print from other Linux and *BSD boxes to this printer by using CUPS and adding the Printer as a LPR Printqueue.
My question is: Is there a way to do the same under Solaris? As far as I know, Solaris doesn't use CUPS as the default printing system, unlike OSX for example.
Thanks in advance,
DominikIs there any reason you haven't ftp'd and then configued cups on Solaris?
http://www.sun.com/bigadmin/content/submitted/install_cups.html
alan -
LSI1030 scsi adapter does not work under solaris 10 on t5240 sparc server
hi all,
i have following LSI1030 scsi pci-x card in t5240 server with solaris 10u8 ..
## prtpicl -v ## director's cut
LSILogic,scsi (scsi-2, ad0000061e)
:DeviceID 0x8
:UnitAddress 8
:vendor-id 0x1000
:device-id 0x30
:revision-id 0xc1
:subsystem-vendor-id 0x103c
:subsystem-id 0x322a
:class-code 0x10000
:cache-line-size 0x10
:interrupts 00 00 00 01
:min-grant 0x10
:max-latency 0x6
:latency-timer 0x40
:devsel-speed 0x1
:66mhz-capable
:fcode-rom-offset 0xa800
:device_type scsi-2
:wide 0x10
:version 1.00.38
:reg
00 07 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
01 07 40 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
03 07 40 14 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00
03 07 40 1c 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 00
02 07 40 30 00 00 00 00 00 00 00 00 00 00 00 00 00 10 00 00
:model LSI,1030
:compatible pci103c,30
:assigned-addresses
81 07 40 10 00 00 00 00 00 00 10 00 00 00 00 00 00 00 01 00
82 07 40 14 00 00 00 00 05 20 00 00 00 00 00 00 00 02 00 00
82 07 40 1c 00 00 00 00 05 22 00 00 00 00 00 00 00 02 00 00
82 07 40 30 00 00 00 00 05 30 00 00 00 00 00 00 00 10 00 00
:mpt-version 1.02
:firmware-version 1.03.39.00
:devfs-path /pci@500/pci@0/pci@c/pci@0/LSILogic,scsi
:binding-name LSILogic,scsi
:instance -1
:_class scsi-2
:name LSILogic,scsi
## prtdiag -v # director's cut
MB lsilOGICLSILogic,scsi LSI,1030
/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi
## prtconf -v # director's cut
LSILogic,scsi (driver not attached)
tape (driver not attached)
disk (driver not attached)
{0} ok probe-scsi-all
/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8
MPT Version 1.02, Firmware Version 1.03.39.00
Initiator ID is 7
Target 3
Unit 0 Removable Tape HP Ultrium 2-SCSI S63Di am unable to run this controller under solaris 10, is it even possible ??
regards, daniel
ps. i did reconfigure reboot and tried to tweak a mpt driver by hand, i also checked a patches for mpt driver ..# prtconf -v | grep LSI
LSILogic,scsi, instance #0
dev_path=/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:devctl
dev_path=/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:scsi
# cfgadm -lv c2
Ap_Id Receptacle Occupant Condition Information
When Type Busy Phys_Id
c2 connected unconfigured unknown
unavailable scsi-bus n /devices/pci@500/pci@0/pci@c/pci@0/LSILogic,scsi@8:scsi
# iostat -En ## cut
rmt/0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Vendor: HP Product: Ultrium 2-SCSI Revision: S63D Serial No:thanks, resolved .. i added this device (mpt "pci103c,30") in /etc/driver_aliases
regards
Maybe you are looking for
-
IPod touch 4g will not sync with iTunes after ios6
I upgraded my iPod touch 4g to ios6, and I have iTunes 10.7.0.21 my iPod touch will not sync my music. When it starts I receive an error about a song, different each time I've tried it. It gets stuck most times (Step 5 of 5) Waiting for changes to b
-
DVD Burned by Mac will not play on PC -- Help?
I know this question has probably popped up quite a bit, and I apologize for reasking something that has most likely already been asked. I am fine with computers and can typically solve my own problems after some research, but I can't seem to find an
-
Testing BW Statistics (Technical Content)
Hello ever one, need some help in testing BW Statistics. I have install all standard 6 cube and 1 multiprovider in Dev. Every thing went fine,I am facing problem in testing, as i am comparing BW Statistics Report out come with BW objects (such as Cub
-
Recent iPhoto videos missing?
How do I get iMovie to refresh its iPhoto videos import and thumbnails? I've taken several videos which are in iPhoto which don't appear to have been updated in iMovie event. Any help much appreciated. D
-
Hello, After reading lots of threads i still can't figure out the best solution to transfer attachements to xi. We are on XI SP10. EBP SRM4.0. In the standalone configuration on ebp we transfer orders with XML output to Xi via the rfc adapter. The re