yangjie
Cadet
- Joined
- Sep 17, 2014
- Messages
- 8
Hello,everyone.
Let's start.....
/*Now ,ZFS can’t do anything.I ready to reboot*/
[root@supool]/#reboot
......
Sep 27 02:11:54 supool reboot:rebooted by root
Sep 27 02:11:54 supool syslogd:exiting on signal 15
Waiting .........................'vnlru'.....done
Waiting .........................'bufdaemon' ....done
Waiting ..........................'syncer' to stop ....time out
Syncing disks,buffers remaining ... 4 2 1
Final sync complete
/*nothing,It has remained so,I can't reboot*/
There is no workaround.
Any one knows?
Let's start.....
Code:
[root@supool] ~# uname -a FreeBSD supool.local 8.3-RELEASE-p8 FreeBSD 8.3-RELEASE-p8 #1 r252195M: Mon Aug 18 19:30:12 CST 2014 root@karas.karas:/root/trunk/os-base/amd64/root/trunk/FreeBSD/src/sys/FREENAS.amd64 amd64 [root@supool] /# camcontrol devlist <SEAGATE ST4000NM0023 MS00> at scbus2 target 9 lun 0 (da16,pass0) <SEAGATE ST3450857SS XREC> at scbus2 target 10 lun 0 (da17,pass1) <SEAGATE ST31000424SS XRMA> at scbus2 target 13 lun 0 (da19,pass3) <SEAGATE ST31000424SS XRMA> at scbus2 target 14 lun 0 (da20,pass4) <SEAGATE ST31000424SS XRMA> at scbus2 target 15 lun 0 (da21,pass5) <GOOXI Bobcat 0d00> at scbus2 target 16 lun 0 (ses0,pass6) <Innostor Innostor 1.00> at scbus8 target 0 lun 0 (da22,pass7) [root@supool] /# zpool create tank raidz /dev/da19 /dev/da20 /dev/da21 [root@supool] /# zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT tank 2.72T 180K 2.72T 0% 1.00x ONLINE - [root@supool] /# zfs create tank/fs [root@supool] /# zfs list NAME USED AVAIL REFER MOUNTPOINT tank 171K 1.78T 41.3K /tank tank/fs 40.0K 1.78T 40.0K /tank/fs [root@supool] /# cd /tank/fs [root@supool] /tank/fs# touch test_file [root@supool] /tank/fs# zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 da19 ONLINE 0 0 0 da20 ONLINE 0 0 0 da21 ONLINE 0 0 0 errors: No known data errors [root@supool] /tank/fs# /*now ,I ‘dd’ some data to test_file,it will take a long time*/ [root@supool] /tank/fs# dd if=/dev/zero of=/tank/fs/test_file bs=1M count=100000 /*then ,I unplug two disks of three disks. I find ‘dd’ don’t work.It seems to be suspended. I try to use “kill” command to end the process of “dd”,but it don’t work.’dd’ can’t to be killed. Now,I shutdown it, Similarly,it don’t work. */ Connecting to another ssh [root@supool] ~# camcontrol devlist <SEAGATE ST4000NM0023 MS00> at scbus2 target 9 lun 0 (da16,pass0) <SEAGATE ST3450857SS XREC> at scbus2 target 10 lun 0 (da17,pass1) <SEAGATE ST31000424SS XRMA> at scbus2 target 13 lun 0 (da19,pass3) <GOOXI Bobcat 0d00> at scbus2 target 16 lun 0 (ses0,pass6) <Innostor Innostor 1.00> at scbus8 target 0 lun 0 (da22,pass7) [root@supool] ~# ps –ax ………… 56057 1 D+ 0:00.56 dd if=/dev/zero of=/tank/fs/test_file bs=1M count=100000 56890 2 Ss 0:00.01 -csh (csh) 57694 2 R+ 0:00.00 ps -ax 41569 0 Is+ 0:00.03 -csh (csh) [root@supool] ~# kill -9 56057 [root@supool] ~# ps –ax 56057 1 D+ 0:00.56 dd if=/dev/zero of=/tank/fs/test_file bs=1M count=100000 56890 2 Ss 0:00.01 -csh (csh) 58520 2 R+ 0:00.00 ps -ax 41569 0 Is+ 0:00.03 -csh (csh) /*at the time , ZFS does not reflect.*/ [root@supool] ~# zpool status pool: tank state: DEGRADED 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 tank DEGRADED 0 2.75K 0 raidz1-0 DEGRADED 0 2.79K 0 da19 ONLINE 0 0 0 10105509833566695808 REMOVED 0 0 0 was /dev/da20 da21 ONLINE 3 3.49K 0 errors: 2817 data errors, use '-v' for a list [root@supool] ~# /*I excute ‘zpool clear tank’,then look the ‘zpool status’*/ [root@supool] ~# zpool clear tank cannot clear errors for tank: I/O error [root@supool] ~# zpool status pool: tank 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 tank UNAVAIL 0 0 0 raidz1-0 UNAVAIL 0 0 0 da19 ONLINE 0 0 0 10105509833566695808 REMOVED 0 0 0 was /dev/da20 9442496166343931282 UNAVAIL 0 0 0 was /dev/da21 errors: 4224 data errors, use '-v' for a list /*I try to destroy ‘tank’,but the command is suspended.*/ [root@supool] ~# zpool destroy -f tank suspend /*’dd’ alse is suspended*/ [root@supool] /tank/fs# dd if=/dev/zero of=/tank/fs/test_file bs=1M count=100000->suspend
/*Now ,ZFS can’t do anything.I ready to reboot*/
[root@supool]/#reboot
......
Sep 27 02:11:54 supool reboot:rebooted by root
Sep 27 02:11:54 supool syslogd:exiting on signal 15
Waiting .........................'vnlru'.....done
Waiting .........................'bufdaemon' ....done
Waiting ..........................'syncer' to stop ....time out
Syncing disks,buffers remaining ... 4 2 1
Final sync complete
/*nothing,It has remained so,I can't reboot*/
There is no workaround.
Any one knows?