VMware Cloud Community
xitim
Contributor
Contributor

Can't modify the Scsi.RescanAllHbas parameter

Hello,

I'd like to change the Scsi.RescanAllHbas parameter for one of my ESX hosts so that there's no need to specify a SCSI Adapter after the esxcfg-rescan command.

First I've tried to make the change (from 0 to 1) within the VI Client but as it wouldn't work I've decided to try my luck from the command line. Unfortunately I still got an error and it seems to me that the modification doesn't actually takes place.

root@srv6 /# esxcfg-advcfg -g /Scsi/ScsiRescanAllHbas

Value of ScsiRescanAllHbas is 0

root@srv6 /# esxcfg-advcfg -s 1 /Scsi/ScsiRescanAllHbas

Value of ScsiRescanAllHbas is 1

root@srv6 /# esxcfg-advcfg -g /Scsi/ScsiRescanAllHbas

Value of ScsiRescanAllHbas is 1

root@srv6 /# esxcfg-rescan

Incorrect number of arguments.

Usage: /usr/sbin/esxcfg-rescan <vmkernel SCSI adapter name>

By the way, when I change this parameter from the command line, the VIC doesn't take the change into account....(bug ?)

What do you think ?

___________________________ Blog : http://www.xitim.com Twitter : http://twitter.com/myxitim
0 Kudos
5 Replies
kjb007
Immortal
Immortal

Every server I have (100+) has this set by default to 1. I've never seen the value be anything else. Not sure if that is a byproduct of updates or not. The CLI requires the parameters to be filled in, and the command itself requires the parameter, so the description for the option appears to be incorrect.

When you make command-line changes, the changes don't always immediately reflect in the GUI. Especially if you are using vCenter.

-KjB

VMware vExpert

Don't forget to leave points for helpful/correct posts.

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
xitim
Contributor
Contributor

Thank you for your answer.

I think you have only ESX 3.5 U4 (build 153875) hosts then because I do have this setting set to 1 on two hosts with this version. The matter is all my other ESX hosts are using ESX 3.5 U2 (build 123630) and the default parameter is 0.

Regarding the delay between the command-line and the GUI, I know about that and I've waited about half an hour before I got suspicious...whatever, this isn't the issue here.

Anyway, can you confirm you're using ESX 3.5 U4 so that I know that it's an issue with ESX 3.5 U2 only ?

___________________________ Blog : http://www.xitim.com Twitter : http://twitter.com/myxitim
0 Kudos
depping
Leadership
Leadership

I'm pretty sure that up to U3 it was set to 0 by default. If you set to to 1 you will still need to specify an HBA to scan but it will do both...

Duncan

VMware Communities User Moderator | VCP | VCDX

-


Blogging:

Twitter: (*NEW*)

Available Soon: vSphere Quick Start Guide ()

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
kjb007
Immortal
Immortal

I am at U4.

-KjB

VMware vExpert

Don't forget to leave points for helpful/correct posts.

vExpert/VCP/VCAP vmwise.com / @vmwise -KjB
0 Kudos
xitim
Contributor
Contributor

Thank you Duncan. We've come full circle 'cause I've learned the command at Yellow Bricks a few months ago...

Well I wasn't totally clear about the process I guess.

___________________________ Blog : http://www.xitim.com Twitter : http://twitter.com/myxitim
0 Kudos