Hi, I have a zpool with only one disk. No mirror. I have some data in the file system. Is it possible to make my zpool redundant by adding a new disk in the pool and making it a mirror with the initial disk? If yes, how? Thanks Martin This message posted from opensolaris.org
Read the man page for zpool. Specifically, zpool attach. On 4/10/07, Martin Girard <martin.girard at sun.com> wrote:> Hi, > > I have a zpool with only one disk. No mirror. > I have some data in the file system. > > Is it possible to make my zpool redundant by adding a new disk in the pool > and making it a mirror with the initial disk? > If yes, how? > > Thanks > > Martin > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- Regards, Jeremy
On Tue, 10 Apr 2007, Martin Girard wrote:> Is it possible to make my zpool redundant by adding a new disk in the pool > and making it a mirror with the initial disk?Sure, by using zpool attach: # mkfile 64m /tmp/foo /tmp/bar # zpool create tank /tmp/foo # zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 /tmp/foo ONLINE 0 0 0 errors: No known data errors # zpool attach tank /tmp/foo /tmp/bar # zpool status pool: tank state: ONLINE scrub: resilver completed with 0 errors on Tue Apr 10 10:51:58 2007 config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 mirror ONLINE 0 0 0 /tmp/foo ONLINE 0 0 0 /tmp/bar ONLINE 0 0 0 errors: No known data errors # Regards, markm
Cindy.Swearingen at Sun.COM
2007-Apr-10 15:50 UTC
[zfs-discuss] Add mirror to an existing Zpool
Hi Martin, Yes, you can do this with the zpool attach command. See the output below. An example in the ZFS Admin Guide is here: http://docs.sun.com/app/docs/doc/817-2271/6mhupg6ft?a=view Cindy # zpool create mpool c1t20d0 # zpool status mpool pool: mpool state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM mpool ONLINE 0 0 0 c1t20d0 ONLINE 0 0 0 errors: No known data errors # zpool attach mpool c1t20d0 c1t21d0 # zpool status mpool pool: mpool state: ONLINE scrub: resilver completed with 0 errors on Tue Apr 10 08:52:30 2007 config: NAME STATE READ WRITE CKSUM mpool ONLINE 0 0 0 mirror ONLINE 0 0 0 c1t20d0 ONLINE 0 0 0 c1t21d0 ONLINE 0 0 0 errors: No known data errors # Martin Girard wrote:> Hi, > > I have a zpool with only one disk. No mirror. > I have some data in the file system. > > Is it possible to make my zpool redundant by adding a new disk in the pool > and making it a mirror with the initial disk? > If yes, how? > > Thanks > > Martin > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss