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 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."  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  AVAILCAP  HEALTH  ALTROOT
> rpool   3,97G  3,00G   988M75%  ONLINE  -
> rpool2  5,97G  3,00G  2,97G50%  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


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.
> So i create rpool2 and copy FS from rpool:
> domu # zfs send -R $srcpool@$srcsnap | zfs receive -vFd $dstpool

There's more required then simply copying the data. See
http://docs.oracle.com/cd/E23824_01/html/821-1448/recover-4.html

If your VM is full virtualization (e.g. hvm), then the instructions
should be the same. If it's xen PV, then the hardest part might be
finding the correct kernel boot parameter.

> Pool rpool2 should be rename to rpool.

Not really.

Last time I tried with some version of opensolaris, you can use
whatever pool name you want IF you create it manually (e.g. use a
variant of the above instructions). Check grub command line, it should
include the pool name to boot.

However note that using a pool name other than rpool is AFAIK
unsupported, so you might be best just follow the instructions above.
In your case it should basically be boot with rescue CD and WITHOUT
the old pool disks, then importing the new pool using a new name
(rpool), then follow the relevant part or the docs.

-- 
Fajar
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[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  3,00G   988M75%  ONLINE  -
rpool2  5,97G  3,00G  2,97G50%  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


Re: [zfs-discuss] Remove disk

2012-12-02 Thread Andrew Gabriel

Bob Friesenhahn wrote:

On Sat, 1 Dec 2012, Jan Owoc wrote:



When I would like to change the disk, I also would like change the disk
enclosure, I don't want to use the old one.


You didn't give much detail about the enclosure (how it's connected,
how many disk bays it has, how it's used etc.), but are you able to
power off the system and transfer the all the disks at once?


And what happen if I have 24, 36 disks to change ? It's take mounth 
to do

that.


Those are the current limitations of zfs. Yes, with 12x2TB of data to
copy it could take about a month.



You can create a brand new pool with the new chassis and use 'zfs 
send' to send a full snapshot of each filesystem to the new pool. 
After the bulk of the data has been transferred, take new snapshots 
and send the remainder. This expects that both pools can be available 
at once. 


or if you don't care about existing snapshots, use Shadow Migration to 
move the data across.


--
Andrew Gabriel
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Remove disk

2012-12-02 Thread Bob Friesenhahn

On Sat, 1 Dec 2012, Jan Owoc wrote:



When I would like to change the disk, I also would like change the disk
enclosure, I don't want to use the old one.


You didn't give much detail about the enclosure (how it's connected,
how many disk bays it has, how it's used etc.), but are you able to
power off the system and transfer the all the disks at once?



And what happen if I have 24, 36 disks to change ? It's take mounth to do
that.


Those are the current limitations of zfs. Yes, with 12x2TB of data to
copy it could take about a month.



You can create a brand new pool with the new chassis and use 'zfs 
send' to send a full snapshot of each filesystem to the new pool. 
After the bulk of the data has been transferred, take new snapshots 
and send the remainder.  This expects that both pools can be available 
at once.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] 6Tb Database with ZFS

2012-12-02 Thread Bob Friesenhahn

On Sat, 1 Dec 2012, Fung Zheng wrote:


Hello,

Thanks for you reply, i forgot to mention that the doc "Configuring ZFS for an 
Oracle Database" was followed, this
include primarycache, logbias, recordsize properties, all the best practices 
was followed and my only doubt is the
arc_max parameter, i want to know if 24Gb is good enough for a 6Tb database, 
someone have had implemented something
similar? which was the value used for arc_max?


As I recall, you can tune zfs_arc_max while the system is running so 
you can easily adjust this while your database is running and observe 
behavior and without rebooting.  It is possible that my recollection 
is wrong though.  If my recollection is correct, then it is not so 
important to know what is "good enough" before starting to put your 
database in service.


Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,http://www.GraphicsMagick.org/
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss