Suppose I have a single ZFS pool on a single disk; I want to upgrade the system to use two different, larger disks and I want to mirror. Can I do something like: - I start with disk #0 - add mirror on disk #1 (resilver) - replace first disk (#0) with disk #2 (resilver) Casper
Casper.Dik at Sun.COM wrote:> Suppose I have a single ZFS pool on a single disk; > I want to upgrade the system to use two different, larger disks > and I want to mirror. > > Can I do something like: > > - I start with disk #0 > - add mirror on disk #1 > (resilver) > - replace first disk (#0) with disk #2 > (resilver) > > Casper > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussmake sure to install the bootblk on disk#2 before removing disk#0, zpool doesn''t do this if you add a second disk to the system. Enda
Enda O''Connor wrote:> Casper.Dik at Sun.COM wrote: >> Suppose I have a single ZFS pool on a single disk; >> I want to upgrade the system to use two different, larger disks >> and I want to mirror. >> >> Can I do something like: >> >> - I start with disk #0 >> - add mirror on disk #1 >> (resilver) >> - replace first disk (#0) with disk #2 >> (resilver) >> >> Casper >> _______________________________________________ >> zfs-discuss mailing list >> zfs-discuss at opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > make sure to install the bootblk on disk#2 before removing disk#0, > zpool doesn''t do this if you add a second disk to the system. > > Enda > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussHi just to be clear /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/.... it works fine for me, once you do the above step if you add a disk to a root pool, and then remove the original boot disk. Enda
Sorry to ask a dumb question, but is that before or after you attach the disk to the mirror? -- This message posted from opensolaris.org
>Sorry to ask a dumb question, but is that before or after you attach the disk to the mirror?If you need to install bootblocks, it doesn''t matter when you do it. But I found the answers I want, I think what I need to do is: zpool attach export disk#0 disk#1 (this makes the single pool into a mirror) And if resilvering is done, I can use: zpool replace export disk#0 disk#2 Right? (Just like to make sure that I can remove disk#0 at one point) Casper
On Wed, Nov 19, 2008 at 8:39 AM, Ross <myxiplx at googlemail.com> wrote:> Sorry to ask a dumb question, but is that before or after you attach the > disk to the mirror? > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >For me I had to wait until after I rebooted after installing opensolaris. I attached the disk right away on first boot after install, and for some reason it wouldn''t let me install grub, claiming that s0 was an invalid location. After a reboot though, all was well. --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20081119/50968495/attachment.html>
>If you need to install bootblocks, it doesn''t matter when you do it. > >But I found the answers I want, I think what I need to do is: > > > zpool attach export disk#0 disk#1 > >(this makes the single pool into a mirror) > >And if resilvering is done, I can use: > > zpool replace export disk#0 disk#2 >It was indeed very simple; you can even run both commands at the same time and the result is that the first disk is read only ones. The only thing that didn''t work is making the zpool bigger. That seems to have required a reboot. Before the reboot it just kept the old (first disk) size. Is there a specific way to make zfs reevaluate the size without requiring a reboot (or export/import) Casper
On Thu, Nov 20, 2008 at 4:41 AM, <Casper.Dik at sun.com> wrote:> > >If you need to install bootblocks, it doesn''t matter when you do it. > > > >But I found the answers I want, I think what I need to do is: > > > > > > zpool attach export disk#0 disk#1 > > > >(this makes the single pool into a mirror) > > > >And if resilvering is done, I can use: > > > > zpool replace export disk#0 disk#2 > > > > It was indeed very simple; you can even run both commands at the same time > and the result is that the first disk is read only ones. > > The only thing that didn''t work is making the zpool bigger. > > That seems to have required a reboot. Before the reboot it just kept > the old (first disk) size. > > Is there a specific way to make zfs reevaluate the size without requiring > a reboot (or export/import) > > CasperIt''s a known bug, I don''t have the ID offhand, but I''m sure someone can get it to you ;) --Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20081120/5ffc4df4/attachment.html>