Problem while replacing a drive (mirror)
Posted: 05 Aug 2014 02:21
Hi!
In an earlier post you guys helped me to discover that one of the drives in my pool was a zombie. So I bought a replacement drive, shutdown the nas, replaced the drive and then restarted. I thought it would be as easy as except that it didn't work like last time. 
I'm running stock 9.1.0.1 - Sandstorm (revision 775)
I got
The da1.nop used to be da2.nop. ??Huh??
I thought I'd make sure autoreplace was on. It was. But nothing happened. I was worried that if replace 7198073037835413877 with da1 I would end up with 2 empty drives.
I think I may have screwed up everything now.
I thought I could detach the 7198073037835413877 and then reattach and get it to mirror. This looks like it was a mistake.
Now I have only 1 drive. While the GUI shows mirror, it isn't.
The Disks|ZFS|Pools|Virtual device|Edit still shows the Virtual Device as mirrored but only the one drive /dev/da1
I've tried to attach, add but it wouldn't work.
Then I deleted the Virtual Device and tried to readd the new disk. Also no luck. But it did work as a stripe. Then I tried to format the da2 drive for zfs and this appeared to work.
I then deleted the Virtual Device stripe and add both drives to Mirror. But got errors and nothing added.
Now I'm stuck and confused. I can't decide what to do next but I'm sure it shouldn't be too difficult assuming I haven't screwed it all up too much.
At the moment I have
Disks|Management
Pool1 still exists as a mirror with only 1 drive in Device1 (vdev).
Device1 (virtual device) shows mirror with only 1 drive - da1.
How do I get the new WDC drive into the zpool with mirroring while avoiding to screw up all the data in da1 (ST3000VN000)?
Thanks.
In an earlier post you guys helped me to discover that one of the drives in my pool was a zombie. So I bought a replacement drive, shutdown the nas, replaced the drive and then restarted. I thought it would be as easy as
Code: Select all
zpool replace Pool da1I'm running stock 9.1.0.1 - Sandstorm (revision 775)
I got
Code: Select all
zpool status Pool1
pool: Pool1
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: resilvered 1.33T in 3h37m with 0 errors on Sun Mar 30 14:02:33 2014
config:
NAME STATE READ WRITE CKSUM
Pool1 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
7198073037835413877 UNAVAIL 0 0 0 was /dev/da1.nop
da1.nop ONLINE 0 0 0
I thought I'd make sure autoreplace was on. It was. But nothing happened. I was worried that if replace 7198073037835413877 with da1 I would end up with 2 empty drives.
I think I may have screwed up everything now.
I thought I could detach the 7198073037835413877 and then reattach and get it to mirror. This looks like it was a mistake.
Now I have only 1 drive. While the GUI shows mirror, it isn't.
Code: Select all
zpool status
pool: Pool1
state: ONLINE
scan: resilvered 1.33T in 3h37m with 0 errors on Sun Mar 30 14:02:33 2014
config:
NAME STATE READ WRITE CKSUM
Pool1 ONLINE 0 0 0
da1.nop ONLINE 0 0 0
errors: No known data errors
I've tried to attach, add but it wouldn't work.
Then I deleted the Virtual Device and tried to readd the new disk. Also no luck. But it did work as a stripe. Then I tried to format the da2 drive for zfs and this appeared to work.
I then deleted the Virtual Device stripe and add both drives to Mirror. But got errors and nothing added.
Now I'm stuck and confused. I can't decide what to do next but I'm sure it shouldn't be too difficult assuming I haven't screwed it all up too much.
At the moment I have
Disks|Management
Code: Select all
da1 2861589MB ATA ST3000VN000 ST3000VN000 Ser#1 Always on ZFS storage pool device ONLINE Edit disk Delete disk
da2 2861589MB ATA WDC WD30EFRX WDC WD30EFRX Ser#2 Always on Unknown or unformatted ONLINE Device1 (virtual device) shows mirror with only 1 drive - da1.
How do I get the new WDC drive into the zpool with mirroring while avoiding to screw up all the data in da1 (ST3000VN000)?
Thanks.