Skip Headers
Oracle® Secure Backup Installation Guide
Release 10.1

Part Number B14235-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Creating Device Special Files on Solaris and Linux

Device special files are required before devices can be configured for use with Oracle Secure Backup. Specifically, device special files are links that will be referenced as attachments when devices are configured for use with Oracle Secure Backup.

After the device special files are created for devices, you can use the mkdev command in obtool, the Oracle Secure Backup Web tool, or the Oracle Secure Backup interface in Oracle Enterprise Manager to configure devices for use with Oracle Secure Backup.

This section assumes that you have already performed the following tasks:

  1. Established your administrative domain so that media servers can be associated with their attached devices. See "Configuring an Administrative Domain on Linux and UNIX with obtool".

  2. Determined the operating system-specific SCSI (or Fibre Channel) device data required for device configuration. See "Determining SCSI Device Parameters on Linux and UNIX".

You can create the device special files either by using the installob script or the makedev tool.

Follow the instructions in the appropriate section:


Note:

It is generally most convenient to use installob to configure all SCSI devices immediately after the installation process.

Creating Device Special Files with makedev

The makedev tool is used to create device special files for a single media device that Oracle Secure Backup uses to access the device.

The makedev tool provides an alternative to creating device special files with installob. makedev does not require you to run the installob script again. It handles only device special file creation and configuration, and does not relate to other installation and configuration tasks. makedev can be used on media servers before they are added to the administrative domain. makedev only creates device special files for a single device at a time, so if you have multiple devices to configure, consider using installob.


See Also:

Oracle Secure Backup Reference for makedev syntax

This section assumes that you have already determined the operating system-specific SCSI (or Fibre Channel) device data required for device configuration and decided upon Oracle Secure Backup logical unit numbers for each device. See "Determining SCSI Device Parameters on Linux and UNIX" for details on performing this task on your operating system.

For this example, makedev is used to configure the single tape library attached to Solaris 64-bit host dlsun1976. As determined in "Determining SCSI Device Parameters on Linux and UNIX", the tape library is assigned Oracle Secure Backup logical unit number 0, and has SCSI bus name-instance glm1, SCSI target ID 1, and SCSI logical unit number 0.

To use makedev to create device special files for a device:

  1. Log on as root.

  2. Change to the Oracle Secure Backup home directory. For example:

    # cd /usr/local/oracle/backup
    
    
  3. Enter the makedev command at the shell prompt:

    # install/makedev
    
    
  4. makedev prompts for the Oracle Secure Backup logical unit number. For example:

    Enter logical unit number 0-31 [0]: 
    
    

    Enter the Oracle Secure Backup logical unit number for the device. For this example, enter 0.


    Note:

    Do not confuse the Oracle Secure Backup logical unit number with the SCSI LUN.

  5. makedev prompts for the device type, tape drive or tape library. For example:

    Enter 'd' if this device is a tape drive or 'l' if a SCSI-2 addressable
        tape library [d]:
    
    

    Note:

    For a tape library, enter a lower-case L, not a number 1.

    To specify a tape library, enter l.

  6. makedev prompts for the SCSI bus name-instance. For example:

    Enter SCSI bus name [glm1]:
    
    
  7. Enter the SCSI bus name-instance for this device. For this example, enter glm1.

  8. makedev prompts for the SCSI target ID. For example:

    Enter SCSI target id 0-15 [4]:
    
    

    Enter the SCSI target ID for this device. For this example, enter 1.

  9. makedev prompts for the SCSI logical unit number. For example:

    Enter SCSI logical unit number (lun) 0-7 [0]:
    
    

    Enter the SCSI logical unit number. For this example, enter 0.

  10. makedev creates the device special file, displaying messages indicating its progress. For this example, on Solaris the following output appears:

    NOTE: table for devlinks...
       type=ddi_pseudo;name=ob;addr=0,0;minor=glm1  obt0
    /dev/obt0 created
    
    

    makedev now exits. The device special file has been created.


    Note:

    Oracle Secure Backup can also replace an old device, rather than adding a new one. If you re-use an Oracle Secure Backup logical unit number for a tape library or tape drive, the device special files for the old device are overwritten.

Before Oracle Secure Backup can access the device, you must still add the media server and the device to the administrative domain. See the following sections for the required tasks:

Creating Device Special Files with installob

You can create device special files using the installob installation script. The advantages of doing so include:

  • You can perform this task immediately after the software installation process, if you have collected the SCSI device parameters for your platform as described in "Determining SCSI Device Parameters on Linux and UNIX".

  • You can enter SCSI parameters for all of your devices during one session. Using makedev requires that you perform this task separately for each device.

Follow the instructions appropriate for your operating system:

Configuring SCSI Devices on Solaris with installob


Note:

Although the following example describes SCSI libraries and tape drives, the same procedures apply to Fibre Channel devices.

To create device special files with installob on Solaris:

  1. Start the installob script. From a shell prompt, change your working directory to the Oracle Secure Backup home, and start installob in interactive mode. For example:

    # cd /usr/local/oracle/backup
    # install/installob
    Welcome to installob, Oracle Secure Backup's UNIX installation program.
    .
    .
    .
    You can choose to install Oracle Secure Backup in one of two ways:
        (a) interactively, by answering questions asked by this program, or
        (b) in batch mode, by preparing a network description file
     
    Which installation method would you like to use (a or b) [a]? a
    
    

    Enter a to run the script in interactive mode.

  2. installob now prompts you about whether to reinstall the software. For example:

    Oracle Secure Backup is already installed on this machine (dlsun1976).
    Would you like to re-install it here [no]?
     
    

    Enter no to leave the current software installation intact and move on to device configuration.

  3. installob now prompts for whether to configure tape libraries and tape drives on this host. For example:

    Would you like to configure (or reconfigure) any Oracle Secure Backup devices that
    are attached to dlsun1976 [no]? 
    
    

    Enter yes at this prompt to configure tape drives or libraries.

  4. installob now prompts for the number of tape libraries attached to your host. For example:

    How many Oracle Secure Backup SCSI tape libraries are attached to dlsun1976 [1]?
    
    

    Enter the number of tape libraries to configure (or press Enter to accept the default). If there are no tape libraries, enter 0.

  5. If you have tape libraries to configure, installob now prompts you for information about each library. installob displays the following output:

    Please describe each tape library by answering the following questions.
    
    

    For each library, enter the device information you collected in "Determining SCSI Device Parameters on Solaris".

    For this example, the single tape library attached to dlsun1976 is assigned Oracle Secure Backup logical unit number 0, and has SCSI bus name-instance glm1, target ID 1, and logical unit number 0.


    Note:

    When entering these values, do not confuse the Oracle Secure Backup logical unit number with the SCSI LUN.

    The installob program displays the following output:

    Oracle Secure Backup logical unit number [0]:
    
    

    If the default is correct, then press Enter. Otherwise, enter the desired Oracle Secure Backup logical unit number for this device.

    SCSI bus name-instance  [glm1]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI bus name-instance for this device.

    The installob program displays the following output:

    SCSI target ID [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI target ID for this device.

    The installob program displays the following output:

    SCSI lun 0-7 [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI LUN for this device.

    The installob program displays the following output:

    Is the information you entered correct [yes]?
    
    

    If the information is not correct, enter no. installob will prompt for the parameters for this library again. Otherwise, enter yes to continue to the next library.

  6. Once you have entered parameters for all tape libraries, installob prompts for information about tape drives. For example:

    Is dlsun1976 connected to any SCSI tape drives that you'd like to use with
    Oracle Secure Backup [no]?
    
    

    If there are tape drives to configure, enter yes. Otherwise, enter no.

    If you entered yes, then installob prompts for the number of tape drives. For example:

    How many Oracle Secure Backup SCSI tape drives are attached to dlsun1976 [1]?
    
    

    For this example, there is one tape drive attached, so enter 1 and press Enter.

  7. installob now displays the following output:

    Please describe each tape drive by answering the following questions.
    
    

    installob now prompts you for the parameters for each tape drive. Enter the device information you collected in"Determining SCSI Device Parameters on Solaris".

    For this example, the single tape drive attached to dlsun1976 is assigned Oracle Secure Backup logical unit number 0, and has SCSI bus name-instance glm1, SCSI target ID 0, and SCSI logical unit number 0.

    installob now displays the following output:

    Oracle Secure Backup logical unit number [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct Oracle Secure Backup logical unit number for this device.

    The installob program displays the following output:

    SCSI bus name-instance  [glm1]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI bus name-instance value for this device.

    The installob program displays the following output:

    SCSI target ID [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI target ID for this device.

    The installob program displays the following output:

    SCSI lun 0-7 [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI LUN for this device.

    The installob program displays the following output:

    Is the information you entered correct [yes]?
    
    

    If the information is not correct, enter no. installob will prompt for the parameters for this drive again. Otherwise, enter yes to continue to the next drive.

  8. Once parameters are entered for all tape libraries and drives, installob configures the device drivers for the devices and creates the device special files. It displays the following output:

    Beginning device driver configuration and device special file creation. 
    This will likely take between one and five minutes. 
    
    

    installob generates descriptive output for each device it configures during this process. For example:

    NOTE: table for devlinks...
       type=ddi_pseudo;name=ob;addr=0,0;minor=pci1000,f1    obt0
    /dev/obt0 created
    NOTE: table for devlinks...
       type=ddi_pseudo;name=ob;addr=0,1;minor=pci1000,f1    obl0
    /dev/obl0 created
    ---------------------------------------------------------------------------
    
    

    At the end of the process, device special files have been created for two devices: /dev/obt0 (the tape drive) and /dev/obl0 (the library).

    When the process is complete, installob generates the following output:

    NOTE: You must configure the new devices via the Web interface or via
          the command line using the obtool 'mkdev' command.
    
    ---------------------------------------------------------------------------
    
    

    Note:

    Note that the name of the tape library device special file /dev/obl0 contains a lower-case letter L, not a number 1.

  9. installob now displays the following prompt:

    Would you like to install Oracle Secure Backup on another machine [yes]?
    
    

    Enter no. The installob script then displays the installation summary described in "installob Step 9: Final Installation Summary" and exits


    Note:

    As stated in the output of installob, you must complete configuration of the devices as part of the administrative domain before they can be used. These tasks cannot be performed until the media server and its devices have been added to the administrative domain.

    The remaining tasks are described in the following sections:


Configuring SCSI Devices on Linux with installob


Note:

Although the following example describes SCSI libraries and tape drives, the same procedures apply to Fibre Channel devices.

To create device special files with installob on Linux:

  1. Start the installob script. From a shell prompt, change your working directory to the Oracle Secure Backup home, and start installob in interactive mode. For example:

    # cd /usr/local/oracle/backup
    # install/installob
    Welcome to installob, Oracle Secure Backup's UNIX installation program.
    .
    .
    .
    You can choose to install Oracle Secure Backup in one of two ways:
        (a) interactively, by answering questions asked by this program, or
        (b) in batch mode, by preparing a network description file
     
    Which installation method would you like to use (a or b) [a]? a
    
    

    Enter a to run the script in interactive mode.

  2. installob now prompts you about whether to reinstall the software. For example:

    Oracle Secure Backup is already installed on this machine (storabck05).
    Would you like to re-install it here [no]?
     
    

    Enter no to leave the current software installation intact and move on to device configuration.

  3. installob now prompts for whether to configure tape libraries and tape drives on this host. For example:

    Would you like to configure (or reconfigure) any Oracle Secure Backup devices that
    are attached to storabck05 [no]? 
    
    

    Enter yes at this prompt to configure tape drives or libraries.

  4. installob now prompts for the number of tape libraries attached to your host. For example:

    How many Oracle Secure Backup SCSI tape libraries are attached to storabck05 [1]?
    
    

    Enter the number of tape libraries to configure (or press Enter to accept the default). If there are no tape libraries, enter 0.

  5. If you have tape libraries to configure, installob now prompts you for information about each library. installob displays the following output:

    Please describe each tape library by answering the following questions.
    
    

    For each library, enter the device information you collected in "Determining SCSI Device Parameters on Linux".

    For this example, the single tape library attached to storabck05 is assigned Oracle Secure Backup logical unit number 0, and has host SCSI adapter number 0, SCSI bus address 0, SCSI target ID 2, and SCSI logical unit number 0.


    Note:

    When entering these values, do not confuse the Oracle Secure Backup logical unit number with the SCSI LUN.

    The installob program displays the following output:

    Oracle Secure Backup logical unit number [0]:
    
    

    If the default is correct, then press Enter. Otherwise, enter the desired Oracle Secure Backup logical unit number for this device. For this example, enter 0.

    installob now displays the following output:

    Host SCSI adapter number [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct host SCSI adapter number for this device. For this example, enter 0.

    SCSI bus address [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI bus address for this device. For this example, enter 0.

    The installob program displays the following output:

    SCSI target ID [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI target ID for this device. For this example, enter 2.

    The installob program displays the following output:

    SCSI lun 0-7 [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI LUN for this device. For this example, enter 0.

    The installob program displays the following output:

    Is the information you entered correct [yes]?
    
    

    If the information is not correct, enter no. installob will prompt for the parameters for this library again. Otherwise, enter yes to continue to the next library.

  6. Once you have entered parameters for all tape libraries, installob prompts for information about tape drives. For example:

    Is storabck05 connected to any SCSI tape drives that you'd like to use with
    Oracle Secure Backup [no]?
    
    

    If there are tape drives to configure, enter yes. Otherwise, enter no.

    If you entered yes, then installob prompts for the number of tape drives. For example:

    How many Oracle Secure Backup SCSI tape drives are attached to storabck05 [1]?
    
    

    For this example, there is one tape drive attached, so enter 1 and press Enter.

  7. installob now displays the following output:

    Please describe each tape drive by answering the following questions.
    
    

    installob now prompts you for the parameters for each tape drive. Enter the device information you collected in"Determining SCSI Device Parameters on Linux".

    For this example, the single tape drive attached to storabck05 is assigned Oracle Secure Backup logical unit number 0, and has host SCSI adapter number 0, SCSI bus address 0, SCSI target ID 4, and SCSI logical unit number 0.

    For example:

    Oracle Secure Backup logical unit number [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct Oracle Secure Backup logical unit number for this device. For this example, enter 0.

    installob now displays the following output:

    Host SCSI adapter number [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct host SCSI adapter number for this device. For this example, enter 0.

    SCSI bus address [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI bus address for this device. For this example, enter 0.

    The installob program displays the following output:

    SCSI target ID [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI target ID for this device. For this example, enter 4.

    The installob program displays the following output:

    SCSI lun 0-7 [0]:
    
    

    If the default is correct, press Enter. Otherwise, enter the correct SCSI LUN for this device. For this example, enter 0.

    The installob program displays the following output:

    Is the information you entered correct [yes]?
    
    

    If the information is not correct, enter no. installob will prompt for the parameters for this drive again. Otherwise, enter yes to continue to the next drive.

  8. Once parameters are entered for all tape libraries and drives, installob configures the device drivers for the devices and creates the device special files. It displays the following output:

    Beginning device driver configuration and device special file creation. 
    This will likely take between one and five minutes. 
    
    

    installob generates descriptive output for each device it configures during this process. For example:

    -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
     
    Beginning device driver configuration and device special file creation.
     
    NOTE: table for devlinks...
       type=ddi_pseudo;name=ob;addr=0,0;minor=glm1  obt0
    /dev/obt0 created
    NOTE: table for devlinks...
       type=ddi_pseudo;name=ob;addr=1,0;minor=glm1  obl0
    /dev/obl0 created
     
    -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
    

    At the end of the process, device special files have been created for two devices: /dev/obt0 (the tape drive) and /dev/obl0 (the library).

    When the process is complete, installob generates the following output:

    NOTE: You must configure the new devices via the Web interface or via
          the command line using the obtool 'mkdev' command.
    
    

    Note:

    Note that the name of the tape library device special file /dev/obl0 contains a lower-case letter L, not a number 1.

  9. installob now displays the following prompt:

    Would you like to install Oracle Secure Backup on another machine [yes]?
    
    

    Enter no. The installob script then displays the installation summary described in "installob Step 9: Final Installation Summary" and exits.


    Note:

    As stated in the output of installob, you must complete configuration of the devices as part of the administrative domain before they can be used. These tasks cannot be performed until the media server host has been added to the administrative domain.

    The remaining tasks are described in the following sections: