Operating System - Linux
1753514 Members
5213 Online
108795 Solutions
New Discussion юеВ

Adding hardware to a Red Hat Linux Box

 
Waqar Razi
Regular Advisor

Adding hardware to a Red Hat Linux Box

I have added a lan card to a linux box, How can I see if the card is working. Do I need to issue some command to scan for the new card.

I also need to know what commands I need to issue if I am adding storage to Linux box from EMC Symmetrix, like in HPUX we do ioscan to see the newly added hardware.
7 REPLIES 7
Tony Cicone
Honored Contributor

Re: Adding hardware to a Red Hat Linux Box

You might have to add an entry to the /etc/modprobe.conf file. It should see the new card on reboot. You will have to configure using "ifconfig".

If you have qlogic cards, you san for new LUN's this way.

echo "1" > /sys/class/fc_host/host0/issue_lip
echo "1" > /sys/class/fc_host/host1/issue_lip

Do this for each "hostx".

Kranti Mahmud
Honored Contributor

Re: Adding hardware to a Red Hat Linux Box

Kranti Mahmud
Honored Contributor
Nuwan Alwis
Valued Contributor

Re: Adding hardware to a Red Hat Linux Box

Hi Waqar,
Tony Cicone has given you a good answer.
from those commands you can get live information about luns presented to each port of the HBAs.
Remember you have to run this command manually every time you add a new lun to a linux host.

About the network card
kudzu - is the command you have to run
check the man page for "kudzu"

as a trial you can run "kudzu -p" this will run a probe but will not try to configure the newly attached device.
i have come across that this didnt work some times due to missing kernel modules. in that case you have to download the driver for from the vendor and install that. this will add all required modules to the kernel. remind you this might need a reboot.

the other thing you can try is
"cat /proc/net/dev" command this will show you about all active interfaces.

Good Luck...!
Taifur
Respected Contributor

Re: Adding hardware to a Red Hat Linux Box

Hi Waqar,

You can check lancard by

#dmesg | more
#ifconfig | more

In linux no ioscan command is available.

so , You can check it by
#fdisk -l

Rgds//
Taifur


avizen9
Esteemed Contributor

Re: Adding hardware to a Red Hat Linux Box

Hello

once you add lan (hardware) card in linux box perform below.

~]# service kudzu stop
~]# service kudzu start
Checking for new hardware [ OK ]

once you add storage, you can do fdisk -l or if you want to check in gui then type
hwbrowser

let me know how it goes, thanks


mohamed.bouraoui
Frequent Advisor

Re: Adding hardware to a Red Hat Linux Box

also, i add what the Tony Cicone said, you can use the command "lspci" to verify if your card eth is installed correctly, kudzu is just the way to configure this card.