Leandro Vanden Bosch
2009-Nov-07 19:38 UTC
[zfs-discuss] Accidentally mixed-up disks in RAIDZ
Hello to you all,
Here''s the situation:
While doing a case replacement in my home storage server I accidentally removed
the post-it with the disk number from my three 1TB disks before connecting them
back to the corresponding SATA connector.
The issue now is that I don''t know in which order they should be
connected.
Do any of you know how can I _safely_ bring the zpool on-line?
I didn''t plugged''em in yet becasue I''m afraid of
losing some valueable personal information.
Thanks in advance.
Leandro.
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091107/731ae2f5/attachment.html>
On Sat, Nov 7, 2009 at 1:38 PM, Leandro Vanden Bosch <l_vbosch at yahoo.com.ar>wrote:> Hello to you all, > > Here''s the situation: > > While doing a case replacement in my home storage server I accidentally > removed the post-it with the disk number from my three 1TB disks before > connecting them back to the corresponding SATA connector. > The issue now is that I don''t know in which order they should be connected. > > Do any of you know how can I _safely_ bring the zpool on-line? > > I didn''t plugged''em in yet becasue I''m afraid of losing some valueable > personal information. > > Thanks in advance. > > Leandro. > > ------------------------------ >Of course, it doesn''t matter which drive is plugged in where. When you import a pool, zfs scans the headers of each disk to verify if they''re part of a pool or not, and if they are, does the import. --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091107/c5ad3632/attachment.html>
Leandro Vanden Bosch
2009-Nov-07 20:27 UTC
[zfs-discuss] Accidentally mixed-up disks in RAIDZ
Thanks Tim for your answer! I''ll try it in afew hours and post the outcome. Regards, Leandro. ________________________________ De: Tim Cook <tim at cook.ms> Para: Leandro Vanden Bosch <l_vbosch at yahoo.com.ar> CC: zfs-discuss at opensolaris.org Enviado: s?bado, 7 de noviembre, 2009 16:40:55 Asunto: Re: [zfs-discuss] Accidentally mixed-up disks in RAIDZ On Sat, Nov 7, 2009 at 1:38 PM, Leandro Vanden Bosch <l_vbosch at yahoo.com.ar> wrote: Hello to you all,> >Here''s the situation: > >While doing a case replacement in my home storage server I accidentally removed the post-it with the disk number from my three 1TB disks before connecting them back to the corresponding SATA connector. >>The issue now is that I don''t know in which order they should be connected. > >Do any of you know how can I _safely_ bring the zpool on-line? > >I didn''t plugged''em in yet becasue I''m afraid of losing some valueable personal information. > >Thanks in advance. > >Leandro. > >> > >________________________________Of course, it doesn''t matter which drive is plugged in where. When you import a pool, zfs scans the headers of each disk to verify if they''re part of a pool or not, and if they are, does the import. --Tim Yahoo! Cocina Encontra las mejores recetas con Yahoo! Cocina. http://ar.mujer.yahoo.com/cocina/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091107/df5bae11/attachment.html>
I can confirm that Tim is right, I have done it myself. -- This message posted from opensolaris.org
Leandro Vanden Bosch
2009-Nov-09 13:26 UTC
[zfs-discuss] Accidentally mixed-up disks in RAIDZ
No, Chris, I didn''t export the pool becasue I didn''t expect
this to
happen. It''s an excellent suggestion, so I''ll try it when I
get my
hands on the machine.
Thank you.
Leandro.
________________________________
De: Chris Murray <chrismurray84 at gmail.com>
Para: Leandro Vanden Bosch <l_vbosch at yahoo.com.ar>
Enviado: s?bado, 7 de noviembre, 2009 19:13:33
Asunto: RE: [zfs-discuss] Accidentally mixed-up disks in RAIDZ
Did you export the pool before unplugging the drives? I''ve had
occasions in the past where ZFS does get mixed-up if the machine is powered up
with the drives of a currently imported pool, in the wrong order. The solution
in the end was to power up without the drives, export the pool, and then import.
Chris
From:zfs-discuss-bounces at opensolaris.org
[mailto:zfs-discuss-bounces at opensolaris.org] On Behalf Of Leandro Vanden
Bosch
Sent: 07 November 2009 20:28
To: Tim Cook
Cc: zfs-discuss at opensolaris.org
Subject: Re: [zfs-discuss] Accidentally mixed-up disks in RAIDZ
Thanks
Tim for your answer!
I''ll try it in afew hours and post the outcome.
Regards,
Leandro.
________________________________
De:Tim Cook <tim at cook.ms>
Para: Leandro Vanden Bosch <l_vbosch at yahoo.com.ar>
CC: zfs-discuss at opensolaris.org
Enviado: s?bado, 7 de noviembre, 2009 16:40:55
Asunto: Re: [zfs-discuss] Accidentally mixed-up disks in RAIDZ
On Sat, Nov 7, 2009 at 1:38 PM, Leandro Vanden Bosch <l_vbosch at
yahoo.com.ar>
wrote:
Hello to you all,
Here''s the situation:
While doing a case replacement in my home storage server I accidentally removed
the post-it with the disk number from my three 1TB disks before connecting them
back to the corresponding SATA connector.
The issue now is that I don''t know in which order they should be
connected.
Do any of you know how can I _safely_ bring the zpool on-line?
I didn''t plugged''em in yet becasue I''m afraid of
losing some valueable personal
information.
Thanks in advance.
Leandro.
________________________________
Of course, it doesn''t matter which drive is plugged in where. When you
import a pool, zfs scans the headers of each disk to verify if they''re
part of
a pool or not, and if they are, does the import.
--Tim
________________________________
Encontra las
mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091109/20648d08/attachment.html>
Leandro Vanden Bosch
2009-Nov-16 00:41 UTC
[zfs-discuss] Accidentally mixed-up disks in RAIDZ
Solved!
This what I did: boot with the disks unplugged, I took a ''digest -a md5
/etc/zfs/zpool.cache'', then I did ''zpool export -f
data'', I got an error message saying that the pool didn''t
exist. I checked again the MD5 against the zpool.cache and it effectively
changed (so, although the export appeared to fail, it actually did something). I
turned off the machine, plugged the disks back in and then I performed a
''zpool import'' without any issue.
All the properties retain their previous settings.
Thanks to all for your tips.
Regards,
Leandro.
Yahoo! Cocina
Encontra las mejores recetas con Yahoo! Cocina.
http://ar.mujer.yahoo.com/cocina/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20091115/5227f049/attachment.html>