On Sun, Dec 21, 2008 at 8:00 PM, dick hoogendijk <d...@nagual.nl> wrote:
> On Sun, 21 Dec 2008 07:36:07 PST > Uwe Dippel <udip...@gmail.com> wrote: > > > [i]If you want to add the entire Solaris partition to the zfs pool as > > a mirror, use zpool attach -f rpool c1d0s0 c2d0s2[/i] > > > > So my mistake in the first place (see first post), in short, was only > > the last digit: I ought to have used the complete drive (slice 2), > > instead of *thinking* that it is untouchable, and zfs/zpool would set > > up s0 properly to be used? > > > > Dick, it seems we have to get used to the idea, that slice 2 is > > touchable, after all. > > That may be, but all my mirror disks are like c0d0s0 c0d1s0. s0 taking > up the whole disk. On some there is a s2 on some there isn't. Also, SUN > itself mentions s0 in explaining zfs root as bootable. There is no > mention of s2. As far as I'm concerned bootable ZFS is on s0; > non-bootable drives have an EFI label ;-) > I believe there are some bugs at present pertaining to booting form ZFS which, in that special case, requires you to use slices. Where I gave examples for adding p0 or s2 to a pool, I was not thinking about bootable pools. The ZFS admin guide has got examples on how to add a mirror to a pool and explains the gotchas / workarounds for these issues, but from memory you have to read the whole guide to get all the information. I have not looked recently to see whether it got updated / re-organized. >From memory, the "issues" are related to the start / offset of the pool on the disk which is added to the pool as a mirror, as well as the "manual" instalation of the bootblock on the disk added as a mirror. I can't remember the details now, but the first requires that a slice be created manually with the correct offset, rather than using the whole disk. I have not tried it yet and don't know the details of how to create this slice, or how the problem manifests itself. Right now I don't have time to search for this information, but if the question is still open by the 10th of January I'll look into it, though I'm sure someone else here will remember the details better than me. So to re-itterate, the exception is when adding disks to a bootable root-pool as a mirror. Otherwise, it is simple. -- Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke My blog: http://initialprogramload.blogspot.com
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss