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 
rpool. 

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. 

-Phil

Sent from my iPad

On Dec 2, 2012, at 3:14 PM, "Heiko L." <h.lehm...@hs-lausitz.de> 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
> NAME     SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
> 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@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to