Re: [zfs-discuss] zpool rpool rename offline

2012-12-03 Thread Jim Klimov
On 2012-12-03 20:51, Heiko L. wrote: jimklimov wrote: In general, I'd do the renaming with a "different bootable media", including a LiveCD/LiveUSB, another distro that can import and rename this pool version, etc. - as long as booting does not involve use of the old rpool. Thank you. I will t

Re: [zfs-discuss] zpool rpool rename offline

2012-12-03 Thread Heiko L.
jimklimov wrote: > In general, I'd do the renaming with a "different bootable media", > including a LiveCD/LiveUSB, another distro that can import and > rename this pool version, etc. - as long as booting does not > involve use of the old rpool. Thank you. I will test it in the coming days. btwn

Re: [zfs-discuss] zpool rpool rename offline

2012-12-03 Thread Jim Klimov
On 2012-12-03 20:35, Heiko L. wrote: I've already tested: beadm create -p $dstpool $bename beadm list zpool set bootfs=$dstpool/ROOT/$bename $dstpool beadm activate $bename beadm list init 6 - result: root@opensolaris:~# init 6 updating //platform/i86pc/boot_archive updating //platform/i86pc/amd

Re: [zfs-discuss] zpool rpool rename offline

2012-12-03 Thread Heiko L.
phillip.wagstrom wrote: > You can't change the name of a zpool without importing it. bad news... i hoped edit poolname with zdb or hexedit. > > 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

Re: [zfs-discuss] zpool rpool rename offline

2012-12-03 Thread Jim Klimov
On 2012-12-03 01:15, Phillip Wagstrom wrote: 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. In general, I'd do the

Re: [zfs-discuss] zpool rpool rename offline

2012-12-02 Thread Phillip Wagstrom
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 cre

Re: [zfs-discuss] zpool rpool rename offline

2012-12-02 Thread Fajar A. Nugraha
On Mon, Dec 3, 2012 at 4:14 AM, Heiko L. wrote: > Hallo, > > Howto rename zpool offline (with zdb)? You don't. You simply export the pool, and import it (zpool import). Something like # zpool import old_pool_name_or_ID new_pool_name > > I use OpenSolaris in a VM. > Pool rpool is to small. > S

[zfs-discuss] zpool rpool rename offline

2012-12-02 Thread Heiko L.
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 AVAILCAP HEALTH ALTROOT rpool 3,97G