On Fri, Mar 20, 2009 at 8:04 PM, Harry Putnam <[email protected]> wrote:
> I want to move my OS (rpool) to a different disk.  It's all a pretty
> new install but I have gotten enough updates and config edits in place
> that I'd not like to re-install from 2008.11 101b.
>
> Can I use `dd' for that task or is that likely to have problems with
> zfs?
>
> Is there a better way?

Probably so, using zfs to do the copying of only the used blocks.  It
goes something like:

1. Physically install the new disk.
2. Partition it as you would like (assuming c0t1s0 is the new destination slice)
3. zpool attach -f rpool c0t0s0 c0t1s0
4. installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0d1s0
5. zpool detach rpool c0t0s0

I used http://darkstar-solaris.blogspot.com/2008/09/zfs-root-mirror.html
as for hints on the process.  There may be one more magical step
(possibly a reboot?) to get it to recognize that rpool is now 500 GB
instead of 25 GB.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to