This issue has been solved.

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

Created: 03 Oct 2012 | Updated: 13 Nov 2012
Login to vote
0 0 Votes

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.

 

 

 

Quick Look Solution

Yes, you can run sg.build and

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

Filed Under

Comments

Marianne van den Berg's picture
Marianne van den Berg
Trusted Advisor
Accredited
Certified
03
Oct
2012
Votes
+1
SOLUTION

Yes, you can run sg.build and

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

Yasuhisa Ishikawa's picture
Yasuhisa Ishikawa
Partner
Accredited
Certified
03
Oct
2012
Votes
0

Run can run sg.build and

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

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

03
Oct
2012
Votes
0

Great. Many thanks for your

Great. Many thanks for your replies. :-)

mph999's picture
mph999
Symantec Employee
03
Oct
2012
Votes
0

Run like Marianne shows, but

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