You can't change the name of a zpool without importing it. 

For what you're attempting to do, why not attach a larger vdisk and mirror the 
existing disk in rpool?  Then drop the smaller vdisk and you'll have a larger 

Alternatively, take a look at "beadm" as it should have a means of creating a 
new BE on your rpool2, though I suspect you will have to install grub on it to 
make it bootable once you remove the old rpool. 


Sent from my iPad

On Dec 2, 2012, at 3:14 PM, "Heiko L." <> wrote:

> Hallo,
> Howto rename zpool offline (with zdb)?
> I use OpenSolaris in a VM.
> Pool rpool is to small.
> So i create rpool2 and copy FS from rpool:
> domu # zfs send -R $srcpool@$srcsnap | zfs receive -vFd $dstpool
> status:
> domu # zpool list
> rpool   3,97G  3,00G   988M    75%  ONLINE  -
> rpool2  5,97G  3,00G  2,97G    50%  ONLINE  -
> dom0 # xm list $vm -l | egrep "vbd|:disk|zvol"
>        (vbd
>            (dev xvda:disk)
>            (uname phy:/dev/zvol/dsk/rpool/zvol/domu-2-root)
>        (vbd
>            (dev xvdb:disk)
>            (uname phy:/dev/zvol/dsk/rpool/zvol/domu-21-root)
> Pool rpool2 should be rename to rpool.
> But pool rpool is online, no rename is possible.
> Howto rename rpool2 to rpool (with zdb) offline?
> regards Heiko
> _______________________________________________
> zfs-discuss mailing list
zfs-discuss mailing list

Reply via email to