Mark Dornfeld
2008-Dec-14 00:44 UTC
[zfs-discuss] zpol mirror creation after non-mirrored zpool is setup
I have installed Solaris 10 on a ZFS filesystem that is not mirrored. Since I have an identical disk in the machine, I''d like to add that disk to the existing pool as a mirror. Can this be done, and if so, how do I do it? Thanks -- This message posted from opensolaris.org
Jeff Bonwick
2008-Dec-14 02:25 UTC
[zfs-discuss] zpol mirror creation after non-mirrored zpool is setup
On Sat, Dec 13, 2008 at 04:44:10PM -0800, Mark Dornfeld wrote:> I have installed Solaris 10 on a ZFS filesystem that is not mirrored. Since I have an identical disk in the machine, I''d like to add that disk to the existing pool as a mirror. Can this be done, and if so, how do I do it?Yes: # zpool attach <poolname> <old_disk> <new_disk> Jeff
Bob Netherton
2008-Dec-14 19:09 UTC
[zfs-discuss] zpol mirror creation after non-mirrored zpool is setup
Jeff Bonwick wrote:> On Sat, Dec 13, 2008 at 04:44:10PM -0800, Mark Dornfeld wrote: >> I have installed Solaris 10 on a ZFS filesystem that is not mirrored. Since I have an identical disk in the machine, I''d like to add that disk to the existing pool as a mirror. Can this be done, and if so, how do I do it? > > Yes: > > # zpool attach <poolname> <old_disk> <new_disk> >And if you want to be able to boot off of the newly attached replica you might want to install a boot block on it. See http://docs.sun.com/app/docs/doc/816-5166/installboot-1m # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk \ <raw device of the replica>
Mark Dornfeld
2008-Dec-14 19:24 UTC
[zfs-discuss] zpol mirror creation after non-mirrored zpool is setup
Thanks everyone for your answers. I am ashamed to say that I have become lax in reading documentation due to the high quality of the forums. Of course, my question was easily answered both by reading docs and quick responses. I rarely see anyone telling a questioner to RTFM anymore since the forums are such an efficient format. I guess the new directive should be RTFF. On 14-Dec-08, at 2:09 PM, Bob Netherton wrote:> > > Jeff Bonwick wrote: >> On Sat, Dec 13, 2008 at 04:44:10PM -0800, Mark Dornfeld wrote: >>> I have installed Solaris 10 on a ZFS filesystem that is not >>> mirrored. Since I have an identical disk in the machine, I''d like >>> to add that disk to the existing pool as a mirror. Can this be >>> done, and if so, how do I do it? >> Yes: >> # zpool attach <poolname> <old_disk> <new_disk> > And if you want to be able to boot off of the newly attached > replica you might want to install a boot block on it. > > See http://docs.sun.com/app/docs/doc/816-5166/installboot-1m > > # installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk \ > <raw device of the replica>Mark T. Dornfeld, Cyantic Systems Corporation 203-2800 Skymark Avenue Mississauga, Ontario, L4W 5A6 CANADA Cell: (416) 616-6682 Main: (416) 621-6161 Fax: (416) 622-4130 Email: mark at cyantic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20081214/5bb9fc22/attachment.html>