Tuesday, December 18, 2007

How to scan the SCSI bus with a 2.6 kernel

If you are playing with SCSI devices (like Fibre Channel, SAS, ..) you sometimes need to rescan the SCSI bus to add devices or to tell the kernel a device is gone. Well, this is the way to do it in CentOS with versions that have a 2.6 kernel. This means CentOS 5 and CentOS 4 (starting from update 3).
  1. Find what's the host number for the HBA:
    ls /sys/class/fc_host/
    (You'll have something like host1 or host2, I'll refer to them as host$NUMBER from now on)

  2. Ask the HBA to issue a LIP signal to rescan the FC bus:
    echo 1 >/sys/class/fc_host/host$NUMBER/issue_lip
  3. Wait around 15 seconds for the LIP command to have effect

  4. Ask Linux to rescan the SCSI devices on that HBA:
    echo - - - >/sys/class/scsi_host/host$NUMBER/scan
    The wildcards "- - -" mean to look at every channel, every target, every lun.
That's it. You can look for log messages at "dmesg" to see if it's working, and you can look at /proc/scsi/scsi to see if the devices are there. In CentOS 5 there is also the "lsscsi" command that will show you the know devices plus the device entries that point to those devices (very usefull).

For more information about how this works see the the upstream release notes for 4.3.

217 comments:

«Oldest   ‹Older   201 – 217 of 217
Justin Jordan said...

Great post thanks for the information on trucking companies . I hope I can use this to my benefit.

Tom Hardy said...

Wow, that's a lot of information to take in. Anything regarding rv insurance in Calgary would be greatly appreciated if you could show me that? Thank you.

Costa Rica Tours said...


Costa Rica Honeymoon All Inclusive Packages,
Costa Rica Honeymoon Vacation Packages,
Costa Rica Vacations All Inclusive,
Costa Rica All Inclusive Vacations,
Costa Rica Mountain Biking Tours,
Costa Rica Horseback Riding Tours,
Monteverde Cloud Forest Reserve Tours,
Carara National Park Tours,
Costa Rica Surf Lessons Jaco,
Manuel Antonio Beach Tours,
Costa Rica Tours,
Arenal Volcano National Park Tours,
Rincon De La Vieja National Park Tours,
Poas Volcano National Park Tours,
Costa Rica Family Surf Vacation Packages,
Arenal Volcano Overnight And Monteverde Cloud Forest,
Tenorio Volcano National Park Tours,
Tortuga Island Costa Rica Tours,
Costa Rica Canopy Tours Los Suenos,
Irazu Volcano National Park Tours,
Braulio Carrillo National Park Tours,
Manuel Antonio National Park Tours,
Costa Rica Bird Watching Tours Jaco,
Costa Rica Transportation,
Costa Rica Volcano Tours,
Costa Rica Tours,
Costa Rica National Park Tours,
Palo Verde National Park Tours,
Costa Rica Rent A Car

Charles Brawnyson said...

Thanks so much for posting this! This helped me find some great red deer moving companies. Thanks!

Costa Rica Weddings said...

Costa Rica has some of the best Sport Fishing in the world. The Pacific side
has incredible fishing for Sailfish, Marlin, Dorado, Tuna, Wahoo, Roosterfish,
Snapper, and more. The Caribbean side and Northern regions of Costa Rica are
famous for big Tarpon and big Snook.Costa
Rica Fishing Packages
, Costa
Rica Fishing Boats
, Costa Rica Fishing,
Costa Rica Sport
Fishing Packages
, Costa Rica
Fishing
, Costa Rica
Fishing Packages All Inclusive
, Fishing Trips Costa Rica,
Los Suenos Costa Rica Fishing,
Los Suenos Costa Rica Fishing Charters
, Costa Rica Fishing Vacation Packages,
Costa Rica Fishing Packages All
Inclusive
, Costa Rica Fishing
Trips
, Costa Rica Fishing Trips
All Inclusive
, Sport Fishing
Costa Rica
, Costa Rica Sport
Fishing Charters
, Sportfishing
In Costa Rica
, Jaco Costa Rica
Fishing Charters
, Jaco Costa
Rica Fishing Packages
, Jaco
Costa Rica Sport Fishing


 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

CostaRicaWeddingPlanners is an unforgettable experience. We are the premier
planners, coordinators, officiants, and photographers of Costa Rica weddings and
our site is proof positive of our experience and commitment to weddings in this
beautiful country.Costa Rica
Weddings
, Costa Rica
Wedding Packages
, Costa
Rica Weddings All Inclusive
,Wedding In Jaco Costa Rica,
Costa Rica Beach Weddings,
Los Suenos Wedding,
Jaco Costa Rica Wedding,
Jaco Wedding Planner,
Costa Rica Married,
Wedding Planning Costa Rica,
Costa Rica Wedding Locations,
Costa Rica Wedding Venues,
Costa Rica Wedding Packages All
Inclusive
, Costa Rica
Wedding Planner
, Getting
Married Costa Rica
, Costa
Rica Destination Weddings

Costa Rica Weddings said...

Costa Rica has some of the best Sport Fishing in the world. The Pacific side
has incredible fishing for Sailfish, Marlin, Dorado, Tuna, Wahoo, Roosterfish,
Snapper, and more. The Caribbean side and Northern regions of Costa Rica are
famous for big Tarpon and big Snook.Costa
Rica Fishing Packages
, Costa
Rica Fishing Boats
, Costa Rica Fishing,
Costa Rica Sport
Fishing Packages
, Costa Rica
Fishing
, Costa Rica
Fishing Packages All Inclusive
, Fishing Trips Costa Rica,
Los Suenos Costa Rica Fishing,
Los Suenos Costa Rica Fishing Charters
, Costa Rica Fishing Vacation Packages,
Costa Rica Fishing Packages All
Inclusive
, Costa Rica Fishing
Trips
, Costa Rica Fishing Trips
All Inclusive
, Sport Fishing
Costa Rica
, Costa Rica Sport
Fishing Charters
, Sportfishing
In Costa Rica
, Jaco Costa Rica
Fishing Charters
, Jaco Costa
Rica Fishing Packages
, Jaco
Costa Rica Sport Fishing


 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

CostaRicaWeddingPlanners is an unforgettable experience. We are the premier
planners, coordinators, officiants, and photographers of Costa Rica weddings and
our site is proof positive of our experience and commitment to weddings in this
beautiful country.Costa Rica
Weddings
, Costa Rica
Wedding Packages
, Costa
Rica Weddings All Inclusive
,Wedding In Jaco Costa Rica,
Costa Rica Beach Weddings,
Los Suenos Wedding,
Jaco Costa Rica Wedding,
Jaco Wedding Planner,
Costa Rica Married,
Wedding Planning Costa Rica,
Costa Rica Wedding Locations,
Costa Rica Wedding Venues,
Costa Rica Wedding Packages All
Inclusive
, Costa Rica
Wedding Planner
, Getting
Married Costa Rica
, Costa
Rica Destination Weddings

Vard Scarie said...

If you're looking for the best auto repair north vancouver has to offer, then look no further, check these guys out! Much love...

Semen Rendi said...

Find the latest used and new boats for sale.
Great used boat deals and prices.
More here postallads4free.com

高合金鋼 said...

外送茶 
外約 
叫小姐
 一夜情 
魚訊 
約砲
 台北援交 
外約指油壓 
魚訊
 台中援交 
一夜情 
援魚
 一夜情援交 
援交一夜情 
一夜情留言板
 傳播小姐 
傳播妹 
援-交line
按摩半套 
高雄魚訊 
茶訊
 外送茶 
外送茶莊 
外送茶坊
 援交 
援交妹 
援交一夜情
 外送茶 
外送茶莊 
外送茶坊
 援交 
援交妹 
援魚

高合金鋼 said...

針對馬英九台中援交總統定調要求核四應該續建魚訊論壇,同時將在22日晚間約砲社團與國民黨立委進行溝通外送茶莊,國民黨立委丁守中表示約砲網站,他會參加此場溝通會,摸摸茶因為他希望馬總統在核四案中「不要先有定見」,按摩個人工作室他強調,先完工後再來測試有沒有問題,兼職援這是諫言的漢語詞典解釋援交妹:諫言(jiàn yán),1.規勸的話。規勸的話。援交妹《周書·馮景傳》高雄援交:“ 寶夤 敗後, 台北援交景 還 洛 。朝廷先聞 一夜情景 有諫言,故免之。” 範文瀾 蔡美彪 等《中國通史》外送茶第四編第一章第一節台北援交:“諫院設知院官,應召女對朝政得失、炮友大臣以緻百官援交日記的過錯一夜情援交

mobogenie said...

This is wonderful. This is precisely the article I needed to read today
----
i like play game clickjogos online free and apply baixar facebook online free and apply baixar mobogenie online free

facebook movil gratis said...

Thanks for all your information, Website is very nice and informative content.
---
five nights at freddy's | five nights at freddy's download | fnaf 3

descargar whatsapp gratis para android said...

I think I need it. Thank you for update information. i like your blog.
----
apply baixar facebook and descargar whatsapp para android and apply baixar facebook movel

Mít Trang said...

I'm happy about everything you bring it very interesting and helpful, thanks
Signature:
download baixar facebook movel, Facebook movel, baixar facebook. Facebook chat, baixar whatsapp, fazer o download baixar whatsapp gratis para Android, iPhone. Últimas Facebook

Muhammad Taufan said...

I know where I'm going and l know the truth, and I don't have to be what you want me to be. I'm free to be what I want.Thankyou i really love it.

games unblocked said...

Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
kids games online
friv 2
unblocked games
juegos de un show mas

amit gupta said...

VLCC offers personalized, solution oriented beauty, skin and hair therapies with necessary interventions and treatments being administered from time to time by experts. Beauty Basics

«Oldest ‹Older   201 – 217 of 217   Newer› Newest»