Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-20 Thread Gregg Wonderly
On 12/19/2011 8:51 PM, Frank Cusack wrote: If you don't detach the smaller drive, the pool size won't increase. Even if the remaining smaller drive fails, that doesn't mean you have to detach it. So yes, the pool size might increase, but it won't be unexpectedly. It will be because you

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-20 Thread Frank Cusack
On Tue, Dec 20, 2011 at 2:11 PM, Gregg Wonderly gregg...@gmail.com wrote: On 12/19/2011 8:51 PM, Frank Cusack wrote: If you don't detach the smaller drive, the pool size won't increase. Even if the remaining smaller drive fails, that doesn't mean you have to detach it. So yes, the pool

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-20 Thread Frank Cusack
Of course I meant 'zpool *' not 'zfs *' below. On Tue, Dec 20, 2011 at 4:27 PM, Frank Cusack fr...@linetwo.net wrote: On Tue, Dec 20, 2011 at 2:11 PM, Gregg Wonderly gregg...@gmail.comwrote: On 12/19/2011 8:51 PM, Frank Cusack wrote: If you don't detach the smaller drive, the pool size

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Darren J Moffat
On 12/18/11 11:52, Pawel Jakub Dawidek wrote: On Thu, Dec 15, 2011 at 04:39:07PM -0700, Cindy Swearingen wrote: Hi Anon, The disk that you attach to the root pool will need an SMI label and a slice 0. The syntax to attach a disk to create a mirrored root pool is like this, for example: #

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Pawel Jakub Dawidek
On Mon, Dec 19, 2011 at 10:18:05AM +, Darren J Moffat wrote: On 12/18/11 11:52, Pawel Jakub Dawidek wrote: On Thu, Dec 15, 2011 at 04:39:07PM -0700, Cindy Swearingen wrote: Hi Anon, The disk that you attach to the root pool will need an SMI label and a slice 0. The syntax to

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Jim Klimov
2011-12-19 16:58, Pawel Jakub Dawidek wrote: On Mon, Dec 19, 2011 at 10:18:05AM +, Darren J Moffat wrote: For those of us not familiar with how FreeBSD is installed and boots can you explain how boot works (ie do you use GRUB at all and if so which version and where the early boot ZFS code

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Cindy Swearingen
Hi Pawel, In addition to the current SMI label requirement for booting, I believe another limitation is that the boot info must be contiguous. I think an RFE is filed to relax this requirement as well. I just can't find it right now. Thanks, Cindy On 12/18/11 04:52, Pawel Jakub Dawidek

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Daugherity, Andrew W
Does current include sol10u10 as well as sol11? If so, when did that go in? Was it in sol10u9? Thanks, Andrew From: Cindy Swearingen cindy.swearin...@oracle.commailto:cindy.swearin...@oracle.com Subject: Re: [zfs-discuss] Can I create a mirror for a root rpool? Date: December 16, 2011 10

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Gregg Wonderly
That's why I'm asking. I think it should always mirror the partition table and allocate exactly the same amount of space so that the pool doesn't suddenly change sizes unexpectedly and require a disk size that I don't have at hand, to put the mirror back up. Gregg On 12/18/2011 4:08 PM,

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Frank Cusack
If you don't detach the smaller drive, the pool size won't increase. Even if the remaining smaller drive fails, that doesn't mean you have to detach it. So yes, the pool size might increase, but it won't be unexpectedly. It will be because you detached all smaller drives. Also, even if a

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-19 Thread Fajar A. Nugraha
On Tue, Dec 20, 2011 at 9:51 AM, Frank Cusack fr...@linetwo.net wrote: If you don't detach the smaller drive, the pool size won't increase.  Even if the remaining smaller drive fails, that doesn't mean you have to detach it.  So yes, the pool size might increase, but it won't be unexpectedly.

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-18 Thread Fajar A. Nugraha
On Sun, Dec 18, 2011 at 6:52 PM, Pawel Jakub Dawidek p...@freebsd.org wrote: BTW. Can you, Cindy, or someone else reveal why one cannot boot from RAIDZ on Solaris? Is this because Solaris is using GRUB and RAIDZ code would have to be licensed under GPL as the rest of the boot code? I'm

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-18 Thread Pawel Jakub Dawidek
On Sun, Dec 18, 2011 at 07:24:27PM +0700, Fajar A. Nugraha wrote: On Sun, Dec 18, 2011 at 6:52 PM, Pawel Jakub Dawidek p...@freebsd.org wrote: BTW. Can you, Cindy, or someone else reveal why one cannot boot from RAIDZ on Solaris? Is this because Solaris is using GRUB and RAIDZ code would

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-18 Thread Nathan Kroenert
Do note, that though Frank is correct, you have to be a little careful around what might happen should you drop your original disk, and only the large mirror half is left... ;) On 12/16/11 07:09 PM, Frank Cusack wrote: You can just do fdisk to create a single large partition. The attached

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Frank Cusack
You can just do fdisk to create a single large partition. The attached mirror doesn't have to be the same size as the first component. On Thu, Dec 15, 2011 at 11:27 PM, Gregg Wonderly gregg...@gmail.com wrote: Cindy, will it ever be possible to just have attach mirror the surfaces, including

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Andrew Gabriel
On 12/16/11 07:27 AM, Gregg Wonderly wrote: Cindy, will it ever be possible to just have attach mirror the surfaces, including the partition tables? I spent an hour today trying to get a new mirror on my root pool. There was a 250GB disk that failed. I only had a 1.5TB handy as a

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Anonymous Remailer (austria)
Thank you all for your answers and links :-) ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Cindy Swearingen
Hi Tim, No, in current Solaris releases the boot blocks are installed automatically with a zpool attach operation on a root pool. Thanks, Cindy On 12/15/11 17:13, Tim Cook wrote: Do you still need to do the grub install? On Dec 15, 2011 5:40 PM, Cindy Swearingen cindy.swearin...@oracle.com

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Cindy Swearingen
Hi Gregg, Yes, fighting with partitioning is just silly. Santa will bring us bootable GPT/EFI labels in the coming year is my wish so you will be able to just attach disks to root pools. Send us some output so we can see what the trouble is. In the meantime, the links below might help.

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Gregg Wonderly
The issue is really quite simple. The solaris install, on x86 at least, chooses to use slice-0 for the root partition. That slice is not created by a default format/fdisk, and so we have the web strewn with prtvtoc path/to/old/slice2 | fmthard -s - path/to/new/slice2 As a way to cause the

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-16 Thread Cindy Swearingen
Yep, well said, understood, point taken, I hear you, you're preaching to the choir. Have faith in Santa. A few comments: 1. I need more info on the x86 install issue. I haven't seen this problem myself. 2. We don't use slice2 for anything and its not recommended. 3. The SMI disk is a

[zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Anonymous Remailer (austria)
On Solaris 10 If I install using ZFS root on only one drive is there a way to add another drive as a mirror later? Sorry if this was discussed already. I searched the archives and couldn't find the answer. Thank you. ___ zfs-discuss mailing list

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Alan Hargreaves
Title: signature You do it as you would any zpool. Mirroring is OK for the zpool. It's just things like raidz* and concats that are not. # zpool attach rpool device Note the use of attach. "add" will try to make a concat. Regards, Alan Hargreaves

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Cindy Swearingen
Hi Anon, The disk that you attach to the root pool will need an SMI label and a slice 0. The syntax to attach a disk to create a mirrored root pool is like this, for example: # zpool attach rpool c1t0d0s0 c1t1d0s0 Thanks, Cindy On 12/15/11 16:20, Anonymous Remailer (austria) wrote: On

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread John D Groenveld
In message a8a35e221e94fdd99d3467bf6113d...@remailer.privacy.at, Anonymous R emailer (austria) writes: On Solaris 10 If I install using ZFS root on only one drive is there a way to add another drive as a mirror later? Sorry if this was discussed already. I searched the archives and couldn't find

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Frank Cusack
Yes, except if your root pool is on a USB stick or removable media. On Thu, Dec 15, 2011 at 3:20 PM, Anonymous Remailer (austria) mixmas...@remailer.privacy.at wrote: On Solaris 10 If I install using ZFS root on only one drive is there a way to add another drive as a mirror later? Sorry if

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Frank Cusack
It can still be done for USB, but you have to boot from alternate media to attach the mirror. On Thu, Dec 15, 2011 at 3:41 PM, Frank Cusack fr...@linetwo.net wrote: Yes, except if your root pool is on a USB stick or removable media. On Thu, Dec 15, 2011 at 3:20 PM, Anonymous Remailer

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Tim Cook
Do you still need to do the grub install? On Dec 15, 2011 5:40 PM, Cindy Swearingen cindy.swearin...@oracle.com wrote: Hi Anon, The disk that you attach to the root pool will need an SMI label and a slice 0. The syntax to attach a disk to create a mirrored root pool is like this, for

Re: [zfs-discuss] Can I create a mirror for a root rpool?

2011-12-15 Thread Gregg Wonderly
Cindy, will it ever be possible to just have attach mirror the surfaces, including the partition tables? I spent an hour today trying to get a new mirror on my root pool. There was a 250GB disk that failed. I only had a 1.5TB handy as a replacement. prtvtoc ... | fmthard does not work in