Bug #6108

zone stuck in shutting_down mode / CIFS

Added by Piotr Jasiukajtis over 3 years ago. Updated over 3 years ago.

Status:NewStart date:2015-08-09
Priority:LowDue date:
Assignee:Gordon Ross% Done:


Category:cifs - CIFS server and client
Target version:-
Difficulty:Medium Tags:hang


OpenIndiana /hipster-2015 illumos-8f5190a

# zonecfg -z zone1 info
zonename: zone1
zonepath: /zones/zone1
brand: ipkg
autoboot: true
ip-type: exclusive
    dir: /data
    special: /tank/data
    raw not specified
    type: lofs
    options: []
    address not specified
    allowed-address not specified
    physical: zone1
    defrouter not specified
    [ncpus: 0.50]
    physical: 512M
    [swap: 768M]
    name: zone.cpu-cap
    value: (priv=privileged,limit=50,action=deny)
    name: zone.max-swap
    value: (priv=privileged,limit=805306368,action=deny)

Lofi mounted dataset '/tank/data' were shared before using 'sharemgr share -p -o ...' without specifying protocol from global zone.

More or less transcript from MDB:

root@openindiana:~# mdb -k
Loading modules: [ unix genunix specfs dtrace mac cpu.generic uppc apix scsi_vhci zfs mpt sd ip hook neti sockfs arp usba uhci fctl stmf stmf_sbd md lofs random idm nfs crypto sppp cpc fcip fcp ufs logindmux nsmb ptm smbsrv ]

> ::walk zone | ::printf "%p: %s %d\n" zone_t . zone_name zone_ref
fffffffffbcefbc0: global 265
ffffff014b335b00: zone1 22

root@openindiana:~# mount | grep zone1
/zones/zone1 on rpool3/zones/zone1 read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4290015 on Sun Aug  9 14:29:52 2015
/zones/zone1/root on rpool3/zones/zone1/ROOT/zbe read/write/setuid/devices/nonbmand/exec/xattr/atime/dev=4290016 on Sun Aug  9 14:30:17 2015
/zones/zone1/root/dev on /dev read/write/setuid/devices/dev=8340001 on Sun Aug  9 14:30:18 2015
/zones/zone1/root/system/object on objfs read/write/setuid/nodevices/zone=zone1/dev=84c0002 on Sun Aug  9 14:30:19 2015
/zones/zone1/root/etc/svc/volatile on swap read/write/setuid/nodevices/xattr/zone=zone1/dev=8480004 on Sun Aug  9 14:30:19 2015
/zones/zone1/root/var/run on swap read/write/setuid/nodevices/xattr/zone=zone1/dev=8480006 on Sun Aug  9 14:30:34 2015

root@openindiana:~# umount /zones/zone1/root/system/object
root@openindiana:~# umount /zones/zone1/root/dev

root@openindiana:~# umount /zones/zone1/root/etc/svc/volatile
umount: /zones/zone1/root/etc/svc/volatile busy

root@openindiana:~# umount /zones/zone1/root/var/run
umount: /zones/zone1/root/var/run busy

> ffffff014b335b00::print zone_t zone_kthreads
zone_kthreads = 0xffffff00060c6c40

> 0xffffff00060c6c40::print kthread_t t_startpc t_forw
t_startpc = smb_thread_entry_point
t_forw = 0xffffff00060c6c40

> 0xffffff00060c6c40::findstack -v
stack pointer for thread ffffff00060c6c40: ffffff00060c6ac0
[ ffffff00060c6ac0 _resume_from_idle+0xf4() ]
  ffffff00060c6af0 swtch+0x141()
  ffffff00060c6b30 cv_wait+0x70(ffffffffc04230c8, ffffffffc04230c0)
  ffffff00060c6b60 smb_thread_continue_timedwait_locked+0x5d(ffffffffc0423080, 0)
  ffffff00060c6ba0 smb_thread_continue+0x2d(ffffffffc0423080)
  ffffff00060c6be0 smb_oplock_break_thread+0x20(ffffffffc0423080, 0)
  ffffff00060c6c20 smb_thread_entry_point+0x53(ffffffffc0423080)
  ffffff00060c6c30 thread_start+8()


#1 Updated by Gordon Ross over 3 years ago

We fixed this in NexentaStor. Need to upstream the fix...

#2 Updated by Gordon Ross over 3 years ago

  • Assignee set to Gordon Ross

#3 Updated by Gordon Ross over 3 years ago

  • Tags changed from needs-triage to hang

Also available in: Atom