Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Howto tell Solaris to rescan for luns without taking the hba offline

2,049 views
Skip to first unread message

Thomas Glanzmann

unread,
Aug 16, 2007, 12:05:47 PM8/16/07
to
Hello,
is there a command in Solaris is available which rescans LUN while a HBA
is active. At the Moment I always tell the EMC people to initiate a
reset.

I tried:

luxadm probe -p

which doesn't work.

Thomas

Andrew Gabriel

unread,
Aug 16, 2007, 3:22:52 PM8/16/07
to
In article <slrnfc8ter....@faui00u.informatik.uni-erlangen.de>,

I would try:

devfsadm -c disk

but I don't know if it will work for exactly what you want.

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]

Message has been deleted

Andrew Gabriel

unread,
Aug 17, 2007, 2:39:57 AM8/17/07
to
In article <vilain-DFC27C....@comcast.dca.giganews.com>,
Michael Vilain <vil...@spamcop.net> writes:
> In article <46c4a40c$0$645$5a6a...@news.aaisp.net.uk>,

> and...@cucumber.demon.co.uk (Andrew Gabriel) wrote:
>
>> In article <slrnfc8ter....@faui00u.informatik.uni-erlangen.de>,
>> Thomas Glanzmann <sith...@stud.uni-erlangen.de> writes:
>> > Hello,
>> > is there a command in Solaris is available which rescans LUN while a HBA
>> > is active. At the Moment I always tell the EMC people to initiate a
>> > reset.
>> >
>> > I tried:
>> >
>> > luxadm probe -p
>> >
>> > which doesn't work.
>> >
>> > Thomas
>>
>> I would try:
>>
>> devfsadm -c disk
>>
>> but I don't know if it will work for exactly what you want.
>
> If it's the equivalent of HP's ioscan which will scan all SCSI buses, I
> don't know if that exists. It didn't in Solaris 2.6 or Solaris 7.

It was two commands in Solaris 2.6 and Solaris 7,

drvconfig # rescan for devices
disks # rebuild /dev links for disk devices

Ceri Davies

unread,
Aug 17, 2007, 2:41:45 AM8/17/07
to

In Solaris 10, with QLogic HBAs and an EMC based SAN, I've been finding
that I need to do "cfgadm -al" before anything else will see new LUNs.

Ceri
--
That must be wonderful! I don't understand it at all.
-- Moliere

andre.boegelsack

unread,
Aug 17, 2007, 3:32:44 AM8/17/07
to
On Aug 16, 6:05 pm, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:

Try following command first to get all available channels:
# cfgadm -al

You will see the channels (each channel is one HBA) and the connected
& un-/configured devices. Then execute:
# cfgadm -o force_update -c configure cX
where cX is the channel where the new devices should be connected to.

This command rescans the channel and register new devices on the
channel. After you executed the command use devfsadm to update the
device configuration.

Greetings
André

Darren Dunham

unread,
Aug 17, 2007, 12:37:55 PM8/17/07
to
Michael Vilain <vil...@spamcop.net> wrote:
>>
>> devfsadm -c disk
>>
>> but I don't know if it will work for exactly what you want.

> If it's the equivalent of HP's ioscan which will scan all SCSI buses, I

> don't know if that exists. It didn't in Solaris 2.6 or Solaris 7.

It pretty much is. (prior to Solaris 8, it would be 'drvconfig',
'devlinks', and 'disks').

Both 'drvconfig' and 'devfsadm' do basically the same thing. They ask
all the drivers to go out and do the heavy lifting of looking for
devices and creating any necessary links in /devices to support them.

So yes, the 'sd' driver does go out and scan all busses that it's
attached to for valid devices. What it will not do is reload the sd
driver. So any limitations in the boot-time sd.conf remain (unless
you're at Solaris 9 or higher and use update_drv).

Other drivers should act similarly, but it depends on the specific
driver. There's no master device daemon that's going out and looking
for stuff.

If we're talking FC, then the sd driver might be talking to some other
driver like lpfc or jnic. Older FC drivers didn't rescan as well via
'drvconfig'. You'd have to poke them with a vendor supplied utility, or
possibly even reboot. Most of the modern ones are much better, and all
the Solaris fiber drivers should be fine (but you may need to config
them up with 'cfgadm').

--
Darren Dunham ddu...@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >

Thomas Glanzmann

unread,
Oct 15, 2007, 11:28:46 AM10/15/07
to
Hello,
the following allowed me today to rescan a new lun on a hba:

Warning: Be carefull with the following command because it reloads the
qlc driver if I understand it correctly.

update_drv -f qlc

Everything else that was suggested in this thread: Did _not_ work.

Thomas

Jim Leonard

unread,
Oct 15, 2007, 1:35:28 PM10/15/07
to
On Oct 15, 10:28 am, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:

What architecture was this for? Sparc, or x86? If Sparc, which model?

Thomas Glanzmann

unread,
Oct 15, 2007, 3:56:17 PM10/15/07
to
Hello Jim,

> What architecture was this for? Sparc, or x86? If Sparc, which model?

SunOS HOSTNAME 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V240

HBA Port WWN: 2100001b321f2abb
OS Device Name: /dev/cfg/c4
Manufacturer: QLogic Corp.
Model: QLA2460
Firmware Version: 4.0.23
FCode/BIOS Version: QLA2460 Host Adapter Driver(SPARC): 1.11 10/03/05
Type: N-port
State: online
Supported Speeds: 1Gb 2Gb 4Gb
Current Speed: 4Gb
Node WWN: 2000001b321f2abb

Connected to a EMC-SYMMETRIX-5771.

Thomas

Daniel Rock

unread,
Oct 15, 2007, 4:47:47 PM10/15/07
to
Thomas Glanzmann <sith...@stud.uni-erlangen.de> wrote:
> OS Device Name: /dev/cfg/c4
>
> Connected to a EMC-SYMMETRIX-5771.

cfgadm -c configure c4

or

cfgadm -c configure c4:50060484XXXXXXXX (your Symmetrix WWPN)

man cfgadm_fp(1M)

Note: At least known to work with the emlxs driver in Solaris 10
and with qlc driver (QLA2200 adapter) in Solaris Express (snv_67).

--
Daniel

Thomas Glanzmann

unread,
Oct 16, 2007, 1:15:03 AM10/16/07
to
Hello Daniel,

> cfgadm -c configure c4

that did not work for sure.

> cfgadm -c configure c4:50060484XXXXXXXX (your Symmetrix WWPN)

This I haven't tried.

> Note: At least known to work with the emlxs driver in Solaris 10
> and with qlc driver (QLA2200 adapter) in Solaris Express (snv_67).

Well, I don't do Solaris Express. And as far as I can see, I don't a
card that would work with the elmxs driver.

Thomas

0 new messages