Greetings,

I was experimenting with zfs, and i made the following test, i shutdown the
computer during a write operation
in a mirrored usb storage filesystem.

Here is my configuration

NGS USB 2.0 Minihub 4
3 USB Silicom Power Storage Pens 1 GB each

These are the ports:

hub devices
/-------------------------------------------\
| port 2         | port  1              |
| c10t0d0p0  | c9t0d0p0          |
---------------------------------------------
| port 4         | port  4              |
| c12t0d0p0  | c11t0d0p0        |
\________________________/

Here is the problem:

1)First i create a mirror with port2 and port1 devices

zpool create myPool mirror c10t0d0p0 c9t0d0p0
-bash-3.2# zpool status
  pool: myPool
 state: ONLINE
 scrub: none requested
config:

    NAME           STATE     READ WRITE CKSUM
    myPool         ONLINE       0     0     0
      mirror       ONLINE       0     0     0
        c10t0d0p0  ONLINE       0     0     0
        c9t0d0p0   ONLINE       0     0     0

errors: No known data errors

  pool: rpool
 state: ONLINE
 scrub: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
      c5t0d0s0  ONLINE       0     0     0

errors: No known data errors

2)zfs create myPool/myfs

3)created a random file (file.txt - more or less 100MB size)

digest -a md5 file.txt
3f9d17531d6103ec75ba9762cb250b4c

4)While making a second copy of the file:

cp file.txt test &

I've shutdown the computer while the file was being copied. And restarted
the computer again. And here is the result:


-bash-3.2# zpool status
  pool: myPool
 state: UNAVAIL
status: One or more devices could not be used because the label is missing
    or invalid.  There are insufficient replicas for the pool to continue
    functioning.
action: Destroy and re-create the pool from a backup source.
   see: http://www.sun.com/msg/ZFS-8000-5E
 scrub: none requested
config:

    NAME           STATE     READ WRITE CKSUM
    myPool         UNAVAIL      0     0     0  insufficient replicas
      mirror       UNAVAIL      0     0     0  insufficient replicas
        c12t0d0p0  OFFLINE      0     0     0
        c9t0d0p0   FAULTED      0     0     0  corrupted data

  pool: rpool
 state: ONLINE
 scrub: none requested
config:

    NAME        STATE     READ WRITE CKSUM
    rpool       ONLINE       0     0     0
      c5t0d0s0  ONLINE       0     0     0

errors: No known data errors

-------------------------------------------------------------------

I was expecting that only one of the files was corrupted, not the all the
filesystem.


Thanks & Regards
Paulo
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to