Project

General

Profile

Bug #2103

dlmgmtd core dump

Added by Piotr Kowalski over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2012-02-10
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

I did something that cause dlmgmtd to core dump:

# svcs -x
svc:/network/datalink-management:default (data-link management daemon)
 State: maintenance since February  9, 2012 06:14:16 PM CET
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: dlmgmtd(1M)
   See: /var/svc/log/network-datalink-management:default.log
Impact: This service is not running.

# cat /var/svc/log/network-datalink-management:default.log
[ Feb  9 18:14:16 Stopping because process dumped core. ]
[ Feb  9 18:14:16 Executing stop method (:kill). ]
[ Feb  9 18:14:16 Executing start method ("/lib/svc/method/svc-dlmgmtd"). ]
[ Feb  9 18:14:16 Method "start" exited with status 95. ]
It looks like two things happened:
  • I tried to clone a new zone but the one with exact same name already had existed, and
  • the source zone zdevel was running
February 10, 2012 12:29:36 AM CET
+ '[' 5 '!=' 5 ']'
+ SOURCEZONENAME=zdevel
+ ZONENAME=ztest1
+ VNIC1=vtest1
+ VNIC1HOSTNAME=ztest1
+ VNIC1IP=10.0.9.101
+ echo 'Create zone ztest1' with
Create zone ztest1 with
+ echo ' Interface vtest1, hostname ztest1 at IP Address 10.0.9.101'
 Interface vtest1, hostname ztest1 at IP Address 10.0.9.101
+ zonecfg -z zdevel export
+ zonecfg -z ztest1 -f -
On line 1:
Zone ztest1 already installed; create not allowed.                                                            
On line 2:
Zone ztest1 already installed; set zonepath not allowed.                                                      
On line 3:
Zone ztest1 already installed; set brand not allowed.                                                         
On line 10:
A fs resource with the dir '/usr' already exists.
usage:
add <resource-type>
        (global scope)
add <property-name> <property-value>
        (resource scope)
        Add specified resource to configuration.
On line 15:
A fs resource with the dir '/opt' already exists.
usage:
add <resource-type>
        (global scope)
add <property-name> <property-value>
        (resource scope)
        Add specified resource to configuration.
On line 17:
physical: No such property type
usage:
set <property-name>=<property-value>
        Sets property values.
For resource type ... there are property types ...:
        (global)        zonename
        (global)        zonepath
        (global)        brand
        (global)        autoboot
        (global)        bootargs
        (global)        pool
        (global)        limitpriv
        (global)        scheduling-class
        (global)        ip-type
        (global)        hostid
        (global)        fs-allowed
        (global)        max-lwps
        (global)        max-processes
        (global)        max-shm-memory
        (global)        max-shm-ids
        (global)        max-msg-ids
        (global)        max-sem-ids
        (global)        cpu-shares
        fs              dir, special, raw, type, options
        net             address, allowed-address, physical|defrouter
        device          match
        rctl            name, value
        attr            name, type, value
        dataset         name
        dedicated-cpu   ncpus, importance
        capped-cpu      ncpus
        capped-memory   physical, swap, locked
        admin           user, auths
On line 18:
A fs resource with the dir '/opt' already exists.
Resource incomplete.
+ zonecfg -z ztest1 'set zonepath=/zones/ztest1'
Zone ztest1 already installed; set zonepath not allowed.                                                      
+ zonecfg -z ztest1 'remove net;end'                                                                          
The end command only makes sense in the resource scope.
+ zonecfg -z ztest1 'add net;set physical=vtest1;end'                                                         
+ zonecfg -z ztest1 'add fs;set type=lofs; set dir=/usr; set special=/usr; end'                               
A fs resource with the dir '/usr' already exists.
Resource incomplete.
+ zonecfg -z ztest1 'add fs;set type=lofs; set dir=/opt; set special=/opt; end'                               
A fs resource with the dir '/opt' already exists.
Resource incomplete.
+ zoneadm -z ztest1 clone zdevel
zoneadm: zone 'ztest1': clone operation is invalid for running zones.
+ zoneadm -z ztest1 ready
zone 'ztest1': unable to notify dlmgmtd of zone halt: operation failed
zone 'ztest1': failed to add network device: Bad file number
zoneadm: zone 'ztest1': call to zoneadmd failed
+ cat
+ zoneadm -z ztest1 boot
WARNING: skipping network interface 'vtest1': operation failed
zone 'ztest1': failed to add network device: Bad file number
zoneadm: zone 'ztest1': call to zoneadmd failed

Also available in: Atom PDF