Project

General

Profile

Bug #6108

zone stuck in shutting_down mode / CIFS

Added by Piotr Jasiukajtis about 4 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
cifs - CIFS server and client
Start date:
2015-08-09
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
hang

Description

OpenIndiana /hipster-2015 illumos-8f5190a

# zonecfg -z zone1 info
zonename: zone1
zonepath: /zones/zone1
brand: ipkg
autoboot: true
bootargs: 
pool: 
limitpriv: 
scheduling-class: 
ip-type: exclusive
hostid: 
fs-allowed: 
fs:
    dir: /data
    special: /tank/data
    raw not specified
    type: lofs
    options: []
net:
    address not specified
    allowed-address not specified
    physical: zone1
    defrouter not specified
capped-cpu:
    [ncpus: 0.50]
capped-memory:
    physical: 512M
    [swap: 768M]
rctl:
    name: zone.cpu-cap
    value: (priv=privileged,limit=50,action=deny)
rctl:
    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()
> 

History

#1

Updated by Gordon Ross almost 4 years ago

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

#2

Updated by Gordon Ross almost 4 years ago

  • Assignee set to Gordon Ross
#3

Updated by Gordon Ross almost 4 years ago

  • Tags changed from needs-triage to hang
#4

Updated by Gordon Ross 4 months ago

Fixed in #11011

#5

Updated by Gordon Ross 4 months ago

  • Status changed from New to Closed

Also available in: Atom PDF