[OpenIndiana-discuss] Migrating root zpool from old disks to new one. only one system available

Rich rercola at acm.jhu.edu
Mon Jun 11 23:16:55 UTC 2012


Won't zpool replace fail b/c the new disks require ashift=12 and his
existing pool devices have ashift=9?

- Rich

On Mon, Jun 11, 2012 at 7:12 PM, James C. McPherson
<james.c.mcpherson at gmail.com> wrote:
> On 12/06/12 08:39 AM, Hans J. Albertsson wrote:
>>
>> Suppose:
>>
>> I have a system with but two disks. They're fairly small: 300GB, and use
>> 512B sectors.
>>
>> These two disks are a mirror zpool, creqated from the entire disks.
>>
>> There are about 20 or so filesystems in there.
>>
>> The system has room for only two disks.
>>
>> I'd like to replace these two small disks with two 2TB disks using 4kB
>> blocks.
>>
>> So:
>>
>> Is there a writeup on how to connect one of these new disks to the
>> existing machine, using an external esata cabinet.
>> set up a new zpool on this new disk, and transfer all the root pool data
>> to the new single disk zpool.
>> then set up the new zpool to be bootable.
>> And last: taking the old disks out of the machine, place the new single
>> disk, and another, empty, similar 2TB disk in the machine, and boot from the
>> single new one as the new root zpool. And then add the second new disk as a
>> mirror.. effectively running the old system exactly as it was w/o
>> reinstalling anything significant, but with much roomier disks.
>>
>> Note: in this case there is no way to get another system to do it on. And
>> a third disk can only be connected using an external cabinet and Esata or
>> USB.
>
>
> Hi Hans,
> I suggest this:
>
> #1 set autoexpand=on for rpool
> #2 connect your esata enclosure
> #3 once you've got them sliced up as desired (I suggest slice 0 should cover
> all
>   except cylinders 0 and 1), run installgrub on both new disks, to the mbr
> #4 zpool replace one of your rpool disks
> #5 zpool replace the other rpool disk
> #6 poweroff
> #7 do the physical replacement
> #8 poweron
>
>
>
> James C. McPherson
> --
> Solaris kernel software engineer, system admin and troubleshooter
>              http://www.jmcp.homeunix.com/blog
> Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
>
>
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss



More information about the OpenIndiana-discuss mailing list