Unable to Create/Delete Link Aggregation Using dladm

Oracle Solaris 0 Comments

I was working on the network part of some Solaris servers today, this involved deleting and recreating things like vnic, interface and link aggregation.

The planned configuration look like this one:

Link Aggregation Topology With a Switch

image from http://docs.oracle.com/

After deleting all the network configuration from the LDOM, I wasn’t able to recreate the link aggregation, the following error was shown:

# dladm create-aggr -P L2,L3 -L active -l net0 -l net1 aggr01
dladm: create operation failed: object already exists

Verifying the link aggregation and all the interfaces doesn’t show any configured aggregation.

# dladm show-aggr
# dladm show-aggr -x
# dladm
LINK                CLASS     MTU    STATE    OVER
net0                phys      1500   unknown  --
net1                phys      1500   unknown  --
net2                phys      1500   unknown  --
net3                phys      1500   unknown  --

I also got an error when I tried to delete it:

# delete-aggr aggr01
dladm: delete operation failed: link busy

The system log also show the following error

WARNING: cannot detach client: 22

The trick here was to use the below command to show any existing persistent but unavailable links.

# dladm show-link -P
LINK                CLASS     OVER
net0                phys      --
net1                phys      --
net2                phys      --
net3                phys      --
aggr01              aggr      net2 net3
vlan-bkp0           vlan      aggr01
vlan-admin0         vlan      aggr01

As per Oracle documentation: A persistent link becomes unavailable if the link is temporarily deleted. A link also becomes unavailable if the associated hardware has been removed

So the problem her was that some vlans was configured on the aggr01 link.

Removing those unneeded vlans was enough to let me recreate my link aggregation, virtual network (vnet), and vSwitch.

Hope this can help? Be sociable, Share your knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *