misc/157399: [bug] trouble with: mdconfig force delete && zfs stripe

Ilya A. Arkhipov micro at heavennet.ru
Sun May 29 19:00:21 UTC 2011


>Number:         157399
>Category:       misc
>Synopsis:       [bug] trouble with: mdconfig force delete && zfs stripe
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 29 19:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ilya A. Arkhipov
>Release:        FreeBSD 9.0-CURRENT
>Organization:
>Environment:
FreeBSD micro 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Fri Mar 18 07:11:37 UTC 2011     root at micro:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
On VirtualBox with freebsd head system install on ufs:
testbsd# uname -a
FreeBSD testbsd 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Wed Apr 27 00:19:50 MSD 2011     root at testbsd:/usr/obj/usr/src/sys/GENERIC  i386

testbsd# mdconfig -a -t malloc -s 100M 
md0

testbsd# mdconfig -a -t malloc -s 100M
md1

testbsd# zpool create testpools md0 md1

testbsd# zfs list
NAME        USED  AVAIL  REFER  MOUNTPOINT
testpool    100K  62,9M    31K  /testpool
testpools    97K   159M    31K  /testpools

testbsd# dd if=/dev/random of=/testpools/myfile.dat bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 8.402073 secs (12479968 bytes/sec)

testbsd# ll /testpools
total 102479
-rw-r--r--  1 root  wheel  104857600 13 май 10:33 myfile.dat

testbsd# zfs list
NAME        USED  AVAIL  REFER  MOUNTPOINT
testpool    100K  62,9M    31K  /testpool
testpools   101M  58,2M   100M  /testpools

testbsd# mdconfig -d -u 0 -o force
not responding... 

http://imm.io/5BLl -- screen vb(not responding)
hard reboot

micro[10:47:20]> ssh micro at 192.168.3.116
Password:
Last login: Fri May 13 10:46:03 2011
FreeBSD 9.0-CURRENT (GENERIC) #0: Wed Apr 27 00:19:50 MSD 2011

%zpool status testpools
  pool: testpools
 state: UNAVAIL
status: One or more devices could not be opened.  There are insufficient
    replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
   see: http://www.sun.com/msg/ZFS-8000-3C
 scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    testpools   UNAVAIL      0     0     0  insufficient replicas
      md0       UNAVAIL      0     0     0  cannot open
      md1       UNAVAIL      0     0     0  cannot open

%su -
Password:

testbsd# zpool destroy testpools
testbsd#

On virtual box after "mdconfig -d -u 0 -o force" i have freezee.. &&
system not responding.

#########Laptop##########
system install on pool z
root[16:24:45]> zpool destroy tester
load: 1.78  cmd: zpool 45206 [zfs] 192.77r 0.00u 0.01s 0% 2248k

root[16:31:27]> zpool status tester
  pool: tester
 state: UNAVAIL
status: One or more devices are faulted in response to IO failures.
action: Make sure the affected devices are connected, then run 'zpool clear'.
   see: http://www.sun.com/msg/ZFS-8000-HC
 scan: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    tester      UNAVAIL      0     0     0  insufficient replicas
      md0       ONLINE       0     0     0
      md2       UNAVAIL      0     0     0  corrupted data

errors: No known data errors

root[16:39:35]> mdconfig -l
md0 

root[16:39:44]> mdconfig -d -u 0 -o force
mdconfig: ioctl(/dev/mdctl): No such file or directory

root[16:41:20]> procstat -kk 45206
  PID    TID COMM             TDNAME           KSTACK                       
45206 100990 zpool            initial thread   mi_switch+0x21d sleepq_switch+0x123 sleepq_wait+0x4d __lockmgr_args+0x793 vop_stdlock+0x39 VOP_LOCK1_APV+0x9b _vn_lock+0x47 vflush+0x200 zfs_umount+0x9f dounmount+0x2dc unmount+0x28e syscallenter+0x1aa syscall+0x4c Xfast_syscall+0xdd

On my system "mdconfig -o force" normal work but.. after "zpool destoy <pool>" have freeze

micro[11:36:48]> sysctl vfs.zfs. | grep version
vfs.zfs.version.zpl: 5
vfs.zfs.version.spa: 28
vfs.zfs.version.acl: 1

Vb have zfsv28 too.
##########################
>How-To-Repeat:
testbsd# mdconfig -a -t malloc -s 100M 
md0
testbsd# mdconfig -a -t malloc -s 100M
md1
testbsd# zpool create testpools md0 md1
testbsd# dd if=/dev/random of=/testpools/myfile.dat bs=1M count=100
100+0 records in
100+0 records out
104857600 bytes transferred in 9.230674 secs (11359690 bytes/sec)
testbsd# mdconfig -d -u 0 -o force
if all right try "zpool destoy <pool>"

>Fix:
Sorry i don't know.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list