Vidéos d'aide de Screencast

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

Created: 03 Oct. 2012 • Updated: 13 Nov. 2012 | 4 comments
Ce problème a été résolu. Voir la solution.

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.

 

 

 

Commentaires CommentairesAccéder au dernier commentaire

l'image des Marianne

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

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

SOLUTION
l'image des Yasuhisa Ishikawa

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

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

l'image des mph999

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

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805