ZFS disk migration

Sun workstations/servers and operating systems (SunOS, Solaris and OpenSolaris)
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
coredog64
Posts: 324
Joined: Tue May 20, 2003 5:02 pm
Location: Phoenix, AZ
Contact:

ZFS disk migration

Unread postby coredog64 » Tue Mar 16, 2010 7:39 pm

My Google-fu is failing me, and I can't figure out how to accomplish something that should
be pretty easy.

I'd like to clone an OpenSolaris install (on a sun4u machine) onto a new disk. The new disk is larger than the current disk, so I don't want to set up a mirror just yet. Or, at least I don't _think_ I want to set up a mirror.

Can anyone provide a pointer or two?

User avatar
japes
Posts: 714
Joined: Thu Nov 08, 2007 4:35 pm
Location: Lynnwood, WA

Re: ZFS disk migration

Unread postby japes » Wed Mar 17, 2010 1:38 am

zfs send | zfs receive is what you're looking for. They may have renamed it, but that should help your google-fu.
:O3000: :Fuel: :Tezro: :Octane2: :Octane: :Indigo: :Indigo: :Indigo: :O2: :1600SW: :Indigo2: :Indigo2: :Indigo2: :Indigo2IMP: :Indigo2IMP: :Indy: :Indy: <--challenge S

User avatar
zmttoxics
Posts: 893
Joined: Mon Aug 31, 2009 9:11 am

Re: ZFS disk migration

Unread postby zmttoxics » Wed Mar 17, 2010 3:39 am

japes wrote:zfs send | zfs receive is what you're looking for. They may have renamed it, but that should help your google-fu.

+1 to that. If this is a boot disk you need to reinstall grub to it though. The other alternative is to 'attach' the disk as a mirror, let it silver up, then remove the smaller disk. It should grow to the rest of the disk when smaller disk removed. In either case, if this is rpool you still need to install grub.
Stuff.

coredog64
Posts: 324
Joined: Tue May 20, 2003 5:02 pm
Location: Phoenix, AZ
Contact:

Re: ZFS disk migration

Unread postby coredog64 » Thu Mar 18, 2010 7:40 pm

The tip about mirroring did it. I found this resource that had a discussion of what was being done along with a session capture:

http://www.castro.aus.net/~maurice/open ... irror.html

On SPARC the equivalent of reinstalling grub is "installboot /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/{new disk including slice 0}"
On my SB1000, it didn't like the `uname -i` portion and I had to replace it with the generic sun4u. Probably because the SB1000 is officially unsupported
by OpenSolaris 2009.06 ;)

The resilver is in process -- only 28m left.


Return to “Sun”

Who is online

Users browsing this forum: No registered users and 1 guest