Solved

Sybase initialize new disk in Solaris 10 failed

Posted on 2013-12-19
2
920 Views
Last Modified: 2014-01-14
Hello,
I just a bit confuse why init disk command did not work for me, anyone familiar with the error as I got below ??


1> sp_helpdevice
2>
 device_name physical_name         description                                                                                 status cntrltype vdevno vpn_low vpn_high
 ----------- --------------------- ------------------------------------------------------------------------------------------- ------ --------- ------ ------- --------
 data100     /dev/md/rdsk/d04     raw device, special, dsync off, directio off, physical disk, 80000.00 MB, Free: 5750.00 MB       2         0      2       0 40959999
 data101     /dev/md/rdsk/d08     raw device, special, dsync off, directio off, physical disk, 20480.00 MB, Free: 456.00 MB        2         0      6       0 10485759
 data102     /dev/md/rdsk/d09     raw device, special, dsync off, directio off, physical disk, 20480.00 MB, Free: 480.00 MB        2         0      7       0 10485759
 data103     /dev/md/rdsk/d11     raw device, special, dsync off, directio off, physical disk, 20480.00 MB, Free: 20480.00 MB      2         0      9       0 10485759
 data104     /dev/md/rdsk/d39     raw device, special, dsync off, directio off, physical disk, 32000.00 MB, Free: 20000.00 MB      2         0     15       0 16383999
 data105     /dev/md/rdsk/d40     raw device, special, dsync off, directio off, physical disk, 32000.00 MB, Free: 32000.00 MB      2         0     16       0 16383999
 data106     /dev/md/rdsk/d42     raw device, special, dsync off, directio off, physical disk, 32000.00 MB, Free: 32000.00 MB      2         0     18       0 16383999
 etc100      /dev/md/rdsk/d03     raw device, special, dsync off, directio off, physical disk, 187.00 MB, Free: 0.00 MB            2         0      1       0    95743
 log100      /dev/md/rdsk/d05     raw device, special, dsync off, directio off, physical disk, 8000.00 MB, Free: 0.00 MB           2         0      3       0  4095999
 log101      /dev/md/rdsk/d10     raw device, special, dsync off, directio off, physical disk, 20480.00 MB, Free: 1980.00 MB       2         0      8       0 10485759
 master      /dev/md/rdsk/d02     raw device, special, dsync on, directio off, physical disk, 187.00 MB, Free: 127.00 MB           2         0      0       0    95743
 sybsec1     /dev/md/rdsk/d06     raw device, special, dsync off, directio off, physical disk, 487.00 MB, Free: 87.00 MB           2         0      4       0   249343
 sybsec2     /dev/md/rdsk/d07     raw device, special, dsync off, directio off, physical disk, 487.00 MB, Free: 0.00 MB            2         0      5       0   249343
 sybsec3     /dev/md/rdsk/d34     raw device, special, dsync off, directio off, physical disk, 2000.00 MB, Free: 0.00 MB           2         0     10       0  1023999
 sybsec4     /dev/md/rdsk/d35     raw device, special, dsync off, directio off, physical disk, 2000.00 MB, Free: 0.00 MB           2         0     11       0  1023999
 sybsec5     /dev/md/rdsk/d36     raw device, special, dsync off, directio off, physical disk, 2000.00 MB, Free: 0.00 MB           2         0     12       0  1023999
 sybsec6     /dev/md/rdsk/d37     raw device, special, dsync off, directio off, physical disk, 2000.00 MB, Free: 450.00 MB         2         0     13       0  1023999
 sybsec7     /dev/md/rdsk/d38     raw device, special, dsync off, directio off, physical disk, 32000.00 MB, Free: 30000.00 MB      2         0     14       0 16383999
 sybsec8     /dev/md/rdsk/d41     raw device, special, dsync off, directio off, physical disk, 32000.00 MB, Free: 27000.00 MB      2         0     17       0 16383999



1> disk init name='log102',physname='dev/md/rdsk/d43',vdevno=19,size='100G'
2>
Warning: Relative path name 'dev/md/rdsk/d43' used for physical device. Device may become unavailable if the server's current directory changes.
Msg 5123, Level 16, State 1:
Server 'Samba_2', Line 1:
DISK INIT encountered an error while attempting to open/create the physical file. Please consult the ASE error log (in the ASE boot directory) for more details.
1>


Inside sybase log

 kernel  dcreate: error creating dev/md/rdsk/d43.  System message is: No such file or directory
 kernel  dcreate: error creating dev/md/rdsk/d43.  System message is: No such file or directory
 kernel  dcreate: error creating dev/md/rdsk/d43.  System message is: No such file or directory

Open in new window

0
Comment
Question by:motioneye
2 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 39732196
drvconfig
disks
(or devfsadm -c disks)
0
 
LVL 13

Accepted Solution

by:
alpmoon earned 500 total points
ID: 39732523
You have forgotten "/" at the beginning of path. In that case it would be a subdirectory dev under Sybase directory. Try:

disk init name='log102',physname='/dev/md/rdsk/d43',vdevno=19,size='100G'
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now