Hi,
I've played lately with ZFS building a raidz pool of 3 usb sticks. Using 3 USB sticks of 8GB, I've created 4G partitions with gpart. I've added those drives to a ZFS pool. Then I've tried to remove one and add a new usb stick formatted at 8G. The idea is to simulate upgrading hard drives. After first stick was changed and everything resilvered I've changed second drive. When pool resilvered for second drive I've got an error:
That was a file I've copied to test the speed of the pool, before changing sticks. Here is the status of my pool:
So my question is: it is safe to upgrade drives from a raidz pool? And another weird thing. I've destroyed my pool and now I try to create it again:
But I do not have tank pool anymore:
I've played lately with ZFS building a raidz pool of 3 usb sticks. Using 3 USB sticks of 8GB, I've created 4G partitions with gpart. I've added those drives to a ZFS pool. Then I've tried to remove one and add a new usb stick formatted at 8G. The idea is to simulate upgrading hard drives. After first stick was changed and everything resilvered I've changed second drive. When pool resilvered for second drive I've got an error:
Code:
errors: Permanent errors have been detected in the following files:
/tank/FreeBSD-8.2-RELEASE-amd64-memstick.img
That was a file I've copied to test the speed of the pool, before changing sticks. Here is the status of my pool:
Code:
zpool status -v
pool: tank
state: DEGRADED
status: One or more devices has experienced an error resulting in data
corruption. Applications may be affected.
action: Restore the file in question if possible. Otherwise restore the
entire pool from backup.
see: http://www.sun.com/msg/ZFS-8000-8A
scrub: resilver completed after 0h4m with 1 errors on Tue May 24 02:34:03 2011
config:
NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 2
raidz1 DEGRADED 0 0 4
replacing DEGRADED 0 0 0
da1p1/old REMOVED 0 0 0
da1p1 ONLINE 0 0 0 1.05G resilvered
da0p1 ONLINE 0 0 0
da3p1 ONLINE 0 0 0 21.5K resilvered
errors: Permanent errors have been detected in the following files:
/tank/FreeBSD-8.2-RELEASE-amd64-memstick.img
Code:
zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tank 10.5G 3.15G 7.35G 29% DEGRADED -
So my question is: it is safe to upgrade drives from a raidz pool? And another weird thing. I've destroyed my pool and now I try to create it again:
Code:
zpool create tank2 raidz da0p1 da1p1 da2p1
invalid vdev specification
use '-f' to override the following errors:
/dev/da1p1 is part of potentially active pool 'tank'
But I do not have tank pool anymore:
Code:
zpool list
no pools available