Forum Discussion

NBU2010's avatar
NBU2010
Level 6
11 years ago
Solved

Understanding of SG BUILD

Dear Forum,

I am facing problem with tape drive visibility on netbackup.

Total 8 drive should be visible but only 7 is getting detected on nbu.

On OS and OBP level i m getting it but not in netbackup.

I have tried rebuilding sg, rebooting media server etc.but no luck.

MY ? is : Need to understand -mt & -ml while giving for sg.build

Can you pls. explain or any good doc on this to understand it.

 

Thanks

 

  • If we look at your steps and the steps that I have posted over here, you will agree that if you followed the steps in my post exactly, it would've worked, right?

    Your steps: 

     in some cases the Target can be a WWN
     the value between the comma and the : is the Lun
    ...  not necessary to convert Target value if it's a WWN
     
    We already new this from /dev/rmt listing in your 2nd post. 
    I have therefore not listed -mt and -mt options.

     
     
    3) go to driver directory
    a) cd /usr/openv/volmgr/bin/driver
    i) all your commands will be run FROM THIS DIRECTORY

    Exactly as per my steps:

     # cd /usr/openv/volmgr/bin/driver

    If steps are run from ANY other folder, the sg.links and sg.conf file is created in the wrong place and sg.install will not use the newly created templates. Older and probably incorrect files in driver folder will still be used. 

    4) if Target is a WWN
    a) run the command ../sg.build all (make sure to include the two leading periods)
    My step:
    # /usr/openv/volmgr/bin/sg.build all 

    There is no need for leading dots if the full path is specified.

    We new target is wwn from your /dev/rmt listing. 
    ​I have therefore not listed -mt and -mt options. 

    6) remove old sg.conf file
    a) rm /kernel/drv/sg.conf
    7) install new driver configuration files
    a) ./sg.install (make sure to include the single leading period)
    8) verify correct sg operation by running scan
    a) /usr/openv/volmgr/bin/scan

    My steps: 

    Install the new sg driver configuration:

    # /usr/bin/rm -f /kernel/drv/sg.conf
    # /usr/openv/volmgr/bin/driver/sg.install

    Check/verify config:

    # /usr/openv/volmgr/bin/sgscan

     

    So... you will agree that your steps is just a longer version of mine, right? 

    I always have my steps in a text file and simply copy & paste. 
    Especially when target is wwn.
    Works every time!

23 Replies

Replies have been turned off for this discussion