HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

adding a new device

 
SOLVED
Go to solution
kunjuttan
Super Advisor

adding a new device

hi,
I want to know if I add some device to my server like a new hdd or an external tape drive,it will automatically detect or not?If not what is to be done
14 REPLIES
Torsten.
Acclaimed Contributor
Solution

Re: adding a new device

An "ioscan" will detect such devices. If the driver is already loaded, you need to install the device file and you are ready to go.

Otherwise you need to include the driver, e.g. stape for tapes (use "kcmodule stape=static" for this).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: adding a new device

"If the driver is already loaded, you need to install the device file and you are ready to go."
You mean creating device files with insf or mksf command.right?But if I reboot the sever I think it will automatically get created.

"Otherwise you need to include the driver, e.g. stape for tapes (use "kcmodule stape=static" for this)."
Can you please make that clear??
Torsten.
Acclaimed Contributor

Re: adding a new device

If a device class like tape was not present during install, the driver is not loaded. Even a reboot will not change this.

You see UNKNOWN in ioscan.

So you need to include the driver now.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: adding a new device

"If the driver is already loaded, you need to install the device file and you are ready to go."
But how to install the device files?
Gangadhar Kenguva
Occasional Visitor

Re: adding a new device

use insf to install the device files for new devices.
kunjuttan
Super Advisor

Re: adding a new device

can you pls give the syntax??
melvyn burnard
Honored Contributor

Re: adding a new device

man insf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
R.K. #
Honored Contributor

Re: adding a new device

# insf -eC disk # for disk
# insf -eC tape # for tape

e --> Reinstall the special files for pseudo-drivers and existing devices. This is useful for restoring special files if one or more have been removed.

C --> Match devices that belong to a given device class.

To install special files for all devices:
# insf -e
Don't fix what ain't broke
kunjuttan
Super Advisor

Re: adding a new device

Ok,Thanks.
Otherwise you need to include the driver, e.g. stape for tapes (use "kcmodule stape=static" for this)."
You were telling that,if the driver is not there then we have to do the following?I think it is kerenel reconfiguration?right?
Torsten.
Acclaimed Contributor

Re: adding a new device

Let's assume you connect a tape and it is listed as UNKNOWN in ioscan.

You include the stape driver, the system builds a new kernel and reboots. That's it.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: adding a new device

We have to download the driver.right?
Torsten.
Acclaimed Contributor

Re: adding a new device

It depends on the device.

For FC cards or NICs probably yes, for tapes it is already there.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
kunjuttan
Super Advisor

Re: adding a new device

thanks.
Torsten.
Acclaimed Contributor

Re: adding a new device

Example for a tape:

ioscan:

...
unknown -1 0/1/1/1.3.0 UNCLAIMED UNKNOWN HP Ultriu
m 2-SC
...

/usr/sbin/kcmodule stape=static

Do you want to proceed ? (y/n) [n] = y


* The automatic 'backup' configuration has been updated.
* Building a new kernel for configuration 'nextboot'...
* Adding version information to new kernel...
* The requested changes have been saved, and will take effect at
next boot.


--- reboot ---

# ioscan -fnkCtape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/1/1/1.3.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/0m /dev/rmt/c3t3d0BEST
/dev/rmt/0mb /dev/rmt/c3t3d0BESTb
/dev/rmt/0mn /dev/rmt/c3t3d0BESTn
/dev/rmt/0mnb /dev/rmt/c3t3d0BESTnb

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!