Troubleshooting
Problem
Unable to delete a logical switch even though there is no more ports associated with the logical switch.
Symptom
Cause
In order to delete a logical switch, all the existing ports should be moved back to default switch.
After that "lscfg --delete" can be used to delete the logical switch but sometime it fails to do so.
Example:
Default_Switch:FID128:root> lscfg --delete 127
The Logical switch with FID 127 will be deleted.
Would you like to continue [y/n]?: y
lscfg:Unable to delete switch with ports.
Please remove ports before attempting to delete switch.
FID: 127
But switchshow doesn't display any port associated with Logical Switch
Default_Switch:FID128:root> setcontext 127
LS_Edge_1:FID127:root> switchshow
switchName: LS_edge_1
switchType: 62.0
switchState: Online
switchMode: Native
switchRole: Principal
switchDomain: 2
switchId: fffc02
zoning: ON (C_2016_02_25)
switchBeacon: OFF
FC Router: OFF
Fabric Name: Common
HIF Mode: OFF
Allow XISL Use: ON
LS Attributes:
[FID: 127, Base Switch: No, Default Switch: No, Address Mode 0]
Index Slot Port Address Media Speed State Proto
============================================================
No ports found in the system!!!
Resolving The Problem
Use the command below to restore logical switch to default and then it can be deleted.
"lscfg --restore_to_default 127"
--restore_to_default FID Moves all vacant ports in the logical switch specified by FID to the default switch. Use this command when lsCfg --show displays no ports, but the switch continues to generate errors indicating that there are ports on the switch.
Was this topic helpful?
Document Information
More support for:
IBM Storage Networking SAN512B-6
Software version:
Not Applicable
Operating system(s):
N/A
Document number:
650837
Modified date:
27 February 2023
UID
ssg1S1012207