VMware Cloud Community
Pio
Contributor
Contributor

Cannot remove satp rule in ESXi 5

Hi,

I'm trying to remove a satp rule, but allways geting an error that the rule dosn't exist.

Here what I'm doing:

1.     list all rules in VMW_SATP_ALUA:

esxcli storage nmp satp rule list -s VMW_SATP_ALUA

Here the list:

Name           Device  Vendor  Model    Driver  Transport  Options                     Rule Group  Claim Options  Default PSP  P
SP Options  Description

-------------  ------  ------  -------  ------  ---------  --------------------------  ----------  -------------  -----------  -
----------  ------------------------------------

VMW_SATP_ALUA          NETAPP                                                          system      tpgs_on        VMW_PSP_RR
            NetApp arrays with ALUA support

VMW_SATP_ALUA          IBM     2810XIV                                                 system      tpgs_on        VMW_PSP_RR
            IBM 2810XIV arrays with ALUA support

VMW_SATP_ALUA                                                                          system      tpgs_on
            Any array with ALUA support

VMW_SATP_ALUA          IBM     2107900                     reset_on_attempted_reserve  system

2.     than I try to remove the first entry in de list:

esxcli storage nmp satp rule remove -s VMW_SATP_ALUA -V NETAPP

and got this error:

Error deleting SATP rule: Sysinfo error on operation returned status : Not found. Please see the VMkernel log for detailed error
information

Here the VMkernel log entries:

2011-09-14T12:30:37.671Z cpu2:2834)NMP: nmp_SatpRemoveSupportedID:1748: user rule Uid "(null)" Vendor "NETAPP" and Model "(null)" and Claim Options "(null)" Driver "(null)" not in the SATP "VMW_SATP_ALUA" Supported ID list.
2011-09-14T12:30:37.784Z cpu0:3333)NMP: nmp_ThrottleLogForDevice:2318: Cmd 0x1a (0x4124007bbdc0) to dev "mpx.vmhba32:C0:T0:L0" on path "vmhba32:C0:T0:L0" Failed: H:0x7 D:0x0 P:0x0 Possible sense data: 0x5 0x24 0x0.Act:EVAL
2011-09-14T12:30:37.784Z cpu0:3333)WARNING: NMP: nmp_DeviceRequestFastDeviceProbe:237:NMP device "mpx.vmhba32:C0:T0:L0" state in doubt; requested fast path state update...
2011-09-14T12:30:37.784Z cpu0:3333)ScsiDeviceIO: 2316: Cmd(0x4124007bbdc0) 0x1a, CmdSN 0x1856 to dev "mpx.vmhba32:C0:T0:L0" failed H:0x7 D:0x0 P:0x0 Possible sense data: 0x5 0x24 0x0.
2011-09-14T12:30:37.814Z cpu0:3333)NMP: nmp_ThrottleLogForDevice:2318: Cmd 0x1a (0x4124007bbdc0) to dev "mpx.vmhba0:C0:T0:L0" on path "vmhba0:C0:T0:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.Act:NONE
2011-09-14T12:30:37.814Z cpu0:3333)ScsiDeviceIO: 2316: Cmd(0x4124007bbdc0) 0x1a, CmdSN 0x1858 to dev "mpx.vmhba0:C0:T0:L0" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.
2011-09-14T12:30:37.838Z cpu0:2052)NMP: nmp_ThrottleLogForDevice:2318: Cmd 0x1a (0x4124007bbdc0) to dev "t10.DP______BACKPLANE000000" on path "vmhba1:C0:T8:L0" Failed: H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.Act:NONE
2011-09-14T12:30:37.838Z cpu0:2052)ScsiDeviceIO: 2316: Cmd(0x4124007bbdc0) 0x1a, CmdSN 0x185a to dev "t10.DP______BACKPLANE000000" failed H:0x0 D:0x2 P:0x0 Valid sense data: 0x5 0x20 0x0.

What am I doing wrong?

THX

Pio

Tags (1)
Reply
0 Kudos
13 Replies
Pio
Contributor
Contributor

No ideas?

Reply
0 Kudos
Malce30
Contributor
Contributor

I too have a similar issue to this, any help would be greatful

Thanks

Reply
0 Kudos
vmwarefc
Contributor
Contributor

I think it can not be removed at all.

I try a similar command on ESXi. and got the same output.

~ # esxcli storage nmp satp rule remove -s VMW_SATP_LSI -V IBM -M ^1814*
Error deleting SATP rule: Sysinfo error on operation returned status : Not found. Please see the VMkernel log for detailed error information

I think they cannot be removed for they are generated by system be default.  Only those which is created by a user can be removed.

Maybe, the system should throw a clear message to let users know.

Thanks,

Zhifeng

Zhifeng
Reply
0 Kudos
pavan009
Contributor
Contributor

you can still delete the system added SATP rules,

EX: esxcli storage  nmp satp rule remove --satp=VMW_SATP_DEFAULT_AA  --vendor=HITACHI -P VMW_PSP_RR  -b        -------> default rule  deleted

Thanks

Pavan

Reply
0 Kudos
vmwarefc
Contributor
Contributor

You are right.  The system added rule you mentioned can be removed.

This is an issue.

Zhifeng
Reply
0 Kudos
Pio
Contributor
Contributor

So, why the ALUA rule can not be removed?

Reply
0 Kudos
vmwarefc
Contributor
Contributor

Please try the command to remove a rule that system added by default.

# esxcli storage nmp satp rule remove -s VMW_SATP_ALUA -V NETAPP --claim-option="tpgs_on" --psp="VMW_PSP_RR" -b

Zhifeng
Reply
0 Kudos
Pio
Contributor
Contributor

Thanks a lot!!!!

It works and the rule is gone!

Reply
0 Kudos
Malce30
Contributor
Contributor

Brilliant guys, thanks for all the help, this cured my problem too. Nice work! 🙂

Reply
0 Kudos
dulix
Contributor
Contributor

Hi

i tried this command and it worked. But when i reboot the host the settings is lost and i have to rerun the command. Does anybody knows how make this change persistent?

Sincerly

dulix

Reply
0 Kudos
pdirks
VMware Employee
VMware Employee

Hi,

System-supplied default rules cannot be persistently removed anymore (although as noted you can temporarily remove them from the running system).

Assuming the reason you want to delete the rule is to have another rule take effect instead, what you should do instead is ADD a claimrule with a lower number that assigns the SATP you want.  That's why the system default claimrules have such high rule numbers.

Hope that helps,

-Patrick.

Reply
0 Kudos
dulix
Contributor
Contributor

Hi Patrick

thanks for your respone. In fact i would like to pass through a scsi-tape library to a virtual machine. if i remove the rule mentioned, i can assign the tape library with it's two scsi-id's to the virtual machine. Do you have a better idea how to establish a permanent connection from the vm to a scsi-tape library?

Kind regards

Werner

Reply
0 Kudos
pdirks
VMware Employee
VMware Employee

Hi Werner,

Which rule exactly is interfering with your ability to use your tape library (as an RDM)?

I'd expect you need to check how the tape library presents itself (i.e. the exact vendor / model strings; "esxcli storage core device list" will help) and which SATP/PSP combination you want to use for it, then ADD a new claimrule claiming devices with that vendor/model string by your choice of SATP/PSP (see "esxcli storage nmp satp rule add --help").  I assume this hardware is on the HCL?  There may be a KB article that's helpful in providing these details.

Hope that helps,

-Patrick.

Reply
0 Kudos