[zfs-discuss] HDD of bigger size replacement+upgrade without any free drive bay?

Zenny garbytrash at gmail.com
Fri Dec 1 10:10:47 EST 2017


Back again with not so good news. :-(

One of disks in mirrored datapool (sdb and sdd) got damaged and I pulled
the faulting disk (sdd) after offlining it (zpool offline datapool
/dev/sdd).

However, after rebooting, it gives:

~# zpool import datapool
> cannot import 'datapool': I/O error
> Destroy and re-create the pool from
> a backup source.
>


> ~# zpool import
>    pool: datapool
>      id: 14965496865984853628
>   state: FAULTED
>  status: The pool metadata is corrupted.
>  action: The pool cannot be imported due to damaged devices or data.
> The pool may be active on another system, but can be imported using
> the '-f' flag.
>    see: http://zfsonlinux.org/msg/ZFS-8000-72
>  config:
> datapool     FAULTED  corrupted data
> logs
>   sda4       ONLINE
>


> ~# zpool status -x
> all pools are healthy


Any suggestion appreciated. Have a nice weekend.

On Mon, Nov 27, 2017 at 7:47 AM, Zenny <garbytrash at gmail.com> wrote:

> Thanks a zillion to Dan, Andreas and Ed for your invaluable inputs.
>
> On Sat, Nov 25, 2017 at 3:10 AM, Edward Ned Harvey (zfsonlinux) via
> zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:
>
>> > From: zfs-discuss [mailto:zfs-discuss-bounces at list.zfsonlinux.org] On
>> Behalf
>> > Of Dan Brown via zfs-discuss
>> >
>> > On 11/24/17 2:55 PM, Zenny via zfs-discuss wrote:
>> >
>> > > But what to do when there is not an extra drive bay for the
>> > > replacement drive before executing the commands above?
>> >
>> > Offline one defective disk with "zpool offline poolname devicename"
>> > Remove the failing disk and replace it with the new one.
>> > "zpool status" will show the OFFLINE device as a long number.  Initiate
>> > resilvering with "zpool replace poolname longnumber newdevice".
>> >
>> > Once that completes, repeat with the other disk.
>>
>> Consider doing a scrub before pulling any drives. This reduces the risk
>> of any bad blocks on surviving drives during degraded redundancy window.
>>
>> Also, to emphasize Andreas's message, it is very common for a chassis to
>> have spare SATA and power cables and ports inside, but no place to mount a
>> drive. I have, before, dangled drives temporarily outside the case. Works
>> in a pinch.
>> _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss at list.zfsonlinux.org
>> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>>
>
>
>
> --
> Cheers,
> /z
>
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
> CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its
> contents by anyone other than the intended recipient is unauthorized as it
> contains privileged and confidential information, and is subject to legal
> privilege. Please do not re/distribute it.  If you are not the intended
> recipient (or responsible for delivery of the message to such person), you
> may not use, copy, distribute or deliver the email and part of its contents
> to anyone this message (or any part of its contents or take any action in
> connection to it. In such case, you should destroy this message, and notify
> the sender immediately. If you have received this email in error, please
> notify the sender or your sysadmin immediately by e-mail or telephone, and
> delete the e-mail from any computer. If you or your employer does not
> consent to internet e-mail messages of this kind, please notify the sender
> immediately. All reasonable precautions have been taken to ensure no
> viruses are present in this e-mail and attachments included. As the sender
> cannot accept responsibility for any loss or damage arising from the use of
> this e-mail or attachments it is recommended that you are responsible to
> follow your virus checking procedures prior to use. The views, opinions,
> conclusions and other informations expressed in this electronic mail are
> not given or endorsed by any company including the network providers unless
> otherwise indicated by an authorized representative independent of this
> message.
> -.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
>
>
> -----BEGIN PGP PUBLIC KEY BLOCK-----
> Comment: http://openpgpjs.org
>
> xsBNBFcTxwEBCAC+G0MG+BHNGs8orGRobPV6jd+8RtT4XhXXEnuEjLA5uHz8
> 1OulvUS/qiq58Jo/KEnTn19rtyNiN7GmrLvo14Q0+mpFQEfrnzj2NCr1bf8w
> l5r+CrIIb+xFEqf5dIHf3w1NNXgHwl6Z3QBflZsqaPHa8y5dhAqVlr1NS7EL
> VgCifutAppl2Fcl05p4F5pQLKHMYCO+5gPMnMfnOOe4BTch0VOg8N4qkv0Px
> JtSHjHucpivf4eJwznejYwDt/AtdyaB7LUC9N6yuLN+Q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6fJykIyAGtRMwAb3HdC1pqexk/0pYxhoy9GtQzqvK/NbcPPdBDd1N7M
> pKdXDVhXhx0R1K6UlMYfnyc9o171UYRPlFrmdBV7ZLC4KeBKqFEESKXaxyRg
> D7E1FXGl1pDMh2QJNM/n9gVLJb0+znBsPG4jUNOctAOhRwF9Z23qsU6AGpOu
> QhWG1alJz6d1T4sTgPdh+K1nMWNKGUzzayAKrRPTbnwLEijqqJPpIIDVzoai
> py73
> =JPvb
> -----END PGP PUBLIC KEY BLOCK-----
>
>


-- 
Cheers,
/z

-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.
CONFIDENTIALITY NOTICE AND DISCLAIMER: Access to this e-mail and its
contents by anyone other than the intended recipient is unauthorized as it
contains privileged and confidential information, and is subject to legal
privilege. Please do not re/distribute it.  If you are not the intended
recipient (or responsible for delivery of the message to such person), you
may not use, copy, distribute or deliver the email and part of its contents
to anyone this message (or any part of its contents or take any action in
connection to it. In such case, you should destroy this message, and notify
the sender immediately. If you have received this email in error, please
notify the sender or your sysadmin immediately by e-mail or telephone, and
delete the e-mail from any computer. If you or your employer does not
consent to internet e-mail messages of this kind, please notify the sender
immediately. All reasonable precautions have been taken to ensure no
viruses are present in this e-mail and attachments included. As the sender
cannot accept responsibility for any loss or damage arising from the use of
this e-mail or attachments it is recommended that you are responsible to
follow your virus checking procedures prior to use. The views, opinions,
conclusions and other informations expressed in this electronic mail are
not given or endorsed by any company including the network providers unless
otherwise indicated by an authorized representative independent of this
message.
-.. .. ... -.-. .-.. .- .. -- . .-. | -.. .. ... -.-. .-.. .- .. -- . .-.


-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: http://openpgpjs.org

xsBNBFcTxwEBCAC+G0MG+BHNGs8orGRobPV6jd+8RtT4XhXXEnuEjLA5uHz8
1OulvUS/qiq58Jo/KEnTn19rtyNiN7GmrLvo14Q0+mpFQEfrnzj2NCr1bf8w
l5r+CrIIb+xFEqf5dIHf3w1NNX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uvlysCGwwAAL9hCACP7CY1fivXEN4X+l/C56l/nARrNVoZvJr4QHnF
9C/r5m6TLCMov0eOLg8IvZF7M0Ecyvq1IzNqbwQd+8mTA4tn+aND20fk2z08
floFL6fJykIyAGtRMwAb3HdC1pqexk/0pYxhoy9GtQzqvK/NbcPPdBDd1N7M
pKdXDVhXhx0R1K6UlMYfnyc9o171UYRPlFrmdBV7ZLC4KeBKqFEESKXaxyRg
D7E1FXGl1pDMh2QJNM/n9gVLJb0+znBsPG4jUNOctAOhRwF9Z23qsU6AGpOu
QhWG1alJz6d1T4sTgPdh+K1nMWNKGUzzayAKrRPTbnwLEijqqJPpIIDVzoai
py73
=JPvb
-----END PGP PUBLIC KEY BLOCK-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20171201/029ec4b7/attachment-0001.html>


More information about the zfs-discuss mailing list