Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Sun Nov 23, 2014 3:47 am

All times are UTC - 8 hours [ DST ]


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ZFS disk migration
Unread postPosted: Tue Mar 16, 2010 7:39 pm 
Offline

Joined: Tue May 20, 2003 5:02 pm
Posts: 324
Location: Phoenix, AZ
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?


Top
 Profile  
 
 Post subject: Re: ZFS disk migration
Unread postPosted: Wed Mar 17, 2010 1:38 am 
Offline
User avatar

Joined: Thu Nov 08, 2007 5:35 pm
Posts: 708
Location: Lynnwood, WA
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


Top
 Profile  
 
 Post subject: Re: ZFS disk migration
Unread postPosted: Wed Mar 17, 2010 3:39 am 
Offline
User avatar

Joined: Mon Aug 31, 2009 9:11 am
Posts: 893
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.


Top
 Profile  
 
 Post subject: Re: ZFS disk migration
Unread postPosted: Thu Mar 18, 2010 7:40 pm 
Offline

Joined: Tue May 20, 2003 5:02 pm
Posts: 324
Location: Phoenix, AZ
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group