Sybase how to create device

How to create device:


1> disk init name="d2",physname="/opt/sybase/data/abc.dat",skip_alloc="true",size="100M"

2> go

Warning: The 'skip_alloc' option of disk init/disk resize command is turned on,

and does not ensure allocation of the specified number of pages. Please make

sure file system has enough space for future operations.

1> 

2> 

3> 

4> disk init name="d2",physname="/opt/sybase/data/abc.dat",skip_alloc="true",size="10M"

5> go

Msg 5148, Level 16, State 1:

Server 'LOCALHOST', Line 4:

Device 'd2' already exists.

1> 

2> sp_helpdevice

3> go

 device_name           

physical_name                                               

description                                                                                                                                                                                                           

status       cntrltype          vdevno       vpn_low       

vpn_high         

 ----------------------

------------------------------------------------------------

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------ ------------------ ------------ --------------

---------------- 

 d2                    

/opt/sybase/data/abc.dat                                    

file system device, special, dsync off, directio on, physical disk, 100

.00 MB, Free: 100.00 MB                                                                                                                        

      2               0               5             0       

    51199         

 master                

/opt/sybase/data/master.dat                                 

file system device, special, dsync on, directio off, default disk, phys

ical disk, 110.00 MB, Free: 54.00 MB                                                                                                           

      3               0               0             0       

    56319         

 sybmgmtdev            

/opt/sybase/data/sybmgmtdb.dat                              

file system device, special, dsync off, directio on, physical disk, 75.

00 MB, Free: 0.00 MB                                                                                                                           

      2               0               4             0       

    38399         

 sysprocsdev           

/opt/sybase/data/sysprocs.dat                               

file system device, special, dsync off, directio on, physical disk, 172

.00 MB, Free: 0.00 MB                                                                                                                          

      2               0               1             0       

    88063         

 systemdbdev           

/opt/sybase/data/sybsysdb.dat                               

file system device, special, dsync off, directio on, physical disk, 6.0

0 MB, Free: 0.00 MB                                                                                                                            

      2               0               2             0       

     3071         

 tapedump1             

/dev/nst0                                                   

unknown device type, disk, dump device                                                                                                                                                                                

     16               2               0             0       

    20000         

 tapedump2             

/dev/nst1                                                   

unknown device type, tape,        625 MB, dump device                                                                                                                                                                 

     16               3               0             0       

    20000         

 tempdbdev             

/opt/sybase/data/tempdbdev.dat                              

file system device, special, dsync off, directio on, physical disk, 100

.00 MB, Free: 0.00 MB                                                                                                                          

      2               0               3             0       

    51199         


Post a Comment