Video Screencast Help

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

Created: 03 Oct 2012 • Updated: 13 Nov 2012 | 4 comments
This issue has been solved. See solution.


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.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.


Comments 4 CommentsJump to latest comment

Marianne's picture

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

These steps have always worked for me:

See 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/ 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.)

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Yasuhisa Ishikawa's picture

Run can run and sg.install without reboot. No problem.

Authorized Symantec Consultant(ASC) Data Protection in Tokyo, Japan

mph999's picture

Run like Marianne shows, but only use all

This is my way ...

cd /usr/openv/volmgr/bin/driver

../ all

modunload -i $(echo $(modinfo |grep "sg (SCSA" |awk '{print $1}'))
mv /kernel/drv/sg.conf /kernel/drv/sg.conf.old
Regards,  Martin
Setting Logs in NetBackup: