[OpenIndiana-discuss] rpool mirror disk problems when moved to different slot

Stephan Althaus Stephan.Althaus at Duedinghausen.eu
Fri Aug 6 11:07:45 UTC 2021


On 8/6/21 12:59 PM, Michelle wrote:
> Ah, if you're moving a live rpool, that's a bit more complex.
>
> I'd have destroyed the mirror, moved the drive and then re-mirrored...
> but only if I'd put another boot on the other drive.
>
> After all, if you've mirrored your rpool, but there's no boot on the
> mirror drive, then it will still not boot the mirror drive.
>
>
>
> On Fri, 2021-08-06 at 12:54 +0200, Stephan Althaus wrote:
>> On 8/6/21 12:47 PM, Michelle wrote:
>>> Did you export the zpool before moving the drives and then import
>>> again
>>> after?
>>>
>>> If I don't export before I move things, then I wouldn't expect ZFS
>>> to
>>> be able to track it automatically.
>>>
>>>
>>>
>>> On Fri, 2021-08-06 at 11:19 +0200, Stephan Althaus wrote:
>>>> Hello!
>>>>
>>>> i just added a new disk to my system, which i put into the slot
>>>> where
>>>> a
>>>> mirror disk of my rpool resided.
>>>>
>>>> The mirror disk of my rpool went to a other slot, so the device
>>>> name
>>>> was
>>>> changed c27t1d0 -> c27t0d0
>>>>
>>>> Booting into my OI system, the zpool was found as the first
>>>> mirror
>>>> disk
>>>> was there,
>>>> but the second partition was not found.
>>>>
>>>>
>>>> Is there a chance that the rpool mount procedure could try harder
>>>> to
>>>> find the mirrors, even when moved ??
>>>>
>>>>
>>>> Yes i know this may be a rare case :-/
>>>>
>>>>
>>>> Greetings,
>>>>
>>>> Stephan
>>>>
>>>>
>>>> _______________________________________________
>>>> openindiana-discuss mailing list
>>>> openindiana-discuss at openindiana.org
>>>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>>> _______________________________________________
>>> openindiana-discuss mailing list
>>> openindiana-discuss at openindiana.org
>>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>> Hi!
>>
>> This is my root pool, is it exported on shutdown? i would think so..
>>
>> I think, if i move the mirror drive to a different slot and leave the
>> origin-slot empty, it could work..
>>
>> I should have imported and exported the pool with a illumos-live-
>> USB, 
>> _before_ trying to boot the installed system with the change.
>>
>> i had no live-medium at hand so i just gave it a try..
>>
>> Stephan
>>
>> BTW, the mirrored pool is up and working:
>>
>> $ zpool status rpool
>>   pool: rpool
>>  state: ONLINE
>>   scan: resilvered 194G in 0 days 00:50:39 with 0 errors on Fri Aug 
>> 6
>> 12:04:20 2021
>> config:
>>
>>     NAME                         STATE     READ WRITE CKSUM
>>     rpool                        ONLINE       0     0     0
>>       mirror-0                   ONLINE       0     0     0
>>         c9t002538B471B9EFD3d0s8  ONLINE       0     0     0
>>         c27t0d0s0                ONLINE       0     0     0
>>
>>
>>
>> _______________________________________________
>> openindiana-discuss mailing list
>> openindiana-discuss at openindiana.org
>> https://openindiana.org/mailman/listinfo/openindiana-discuss
>
> _______________________________________________
> openindiana-discuss mailing list
> openindiana-discuss at openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

Yes, Michelle, you're right.

The intention of my thread was to enhance the automagically discovered
changes.

There have been efforts to re-import pools that have been im- and
exported on linux and changed the device names.

My case is just another one that (maybe) could be handled automagically,
without user intervention.

...

Stephan





More information about the openindiana-discuss mailing list