Skip to main content

NB LDOM (and so on) rpool clone w/ beadm

Task: copy current ZFS rpool (only for boot) to another physical destination. New disk is c2t1d0.

zpool create -f rpool_new c2t1d0
beadm create -p rpool_new sol11.
zpool set bootfs=rpool_new/ROOT/sol11. rpool_new
installboot -F zfs \
 /usr/platform/`uname -i`/lib/fs/zfs/bootblk \
# as required by installation
zfs create -V 8G -o refreservation=8G rpool_new/dump 
zfs create -V 4G -o refreservation=4G rpool_new/swap
beadm mount sol11. /mnt
# vim /etc/vfstab etc you need
# zfs create -o mountpoint=/export rpool_new/export # just ignore error...
# zfs create ... as you need 
# also may be copy something you need
beadm unmount sol11.
zpool export rpool_new

Do not forget run re-run dumpadm after booting from new rpool_new and run sysconfig unconfigure –destructive . That’s it.