Forum Discussion

cornell's avatar
cornell
Level 2
13 years ago
Solved

recreate /dev/sg/* on solaris 10 without reboot

Hi,

We have added 6 new tape drives to our Solaris 10 Media servers. After running "devfsadm -C -c tape" I can see the new drives in the OS. That is, the /dev/rmt/* paths have been created & I can issue mt commands to query the drives.

I just need to get NetBackup to see the drives without rebooting.

Can I run the sg.build & sg.install scripts without rebooting?

I assume that I can considering the OS sees the drives?

My problem is that I am only allowed to reboot these servers twice a year.

I have read your excellent TECH31047 but it specifies a reboot.

Thanks.

 

 

 

  • Yes, you can run sg.build and sg.install without need for reboot.

    These steps have always worked for me:

     

    See http://www.symantec.com/docs/TECH10725 for examples how to determine number of targets (to be used with -mt) and number of luns (-ml).

    Next, do the following:

    # cd /usr/openv/volmgr/bin/driver
    # /usr/openv/volmgr/bin/sg.build all -mt <15> -ml <1>

    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

     

    (I am aware that Martin's method is different, but as I've said - this has always worked for me.)

  • Yes, you can run sg.build and sg.install without need for reboot.

    These steps have always worked for me:

     

    See http://www.symantec.com/docs/TECH10725 for examples how to determine number of targets (to be used with -mt) and number of luns (-ml).

    Next, do the following:

    # cd /usr/openv/volmgr/bin/driver
    # /usr/openv/volmgr/bin/sg.build all -mt <15> -ml <1>

    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

     

    (I am aware that Martin's method is different, but as I've said - this has always worked for me.)

  • Run like Marianne shows, but only use sg.build all

     

    This is my way ...

    cd /usr/openv/volmgr/bin/driver

    ../sg.build all

     

    modunload -i $(echo $(modinfo |grep "sg (SCSA" |awk '{print $1}'))
    mv /kernel/drv/sg.conf /kernel/drv/sg.conf.old
    /usr/openv/volmgr/bin/driver/sg.install
     
    Martin