sridhar surampudi
2010-Sep-20 18:03 UTC
[zfs-discuss] create mirror copy of existing zfs stack
Hi, I have a mirror pool tank having two devices underneath. Created in this way #zpool create tank mirror c3t500507630E020CEAd1 c3t500507630E020CEAd0 Created file system tank/home #zfs create tank/home Created another file system tank/home #zfs create tank/home/sridhar After that I have created files and directories under tank/home and tank/home/sridhar. Now I detached 2nd device i.e c3t500507630E020CEAd0 Since the above device is part of mirror pool, my guess it will have copy of data which is there in other device till detach and will have metadata with same pool name and file systems created. Question is is there any way I can create a new stack with renamed stack by providing the new pool name to this detached device and should access the same data for the c3t500507630E020CEAd0 which was created when it was in mirrored pool under tank. ? Thanks & Regards, sridhar. -- This message posted from opensolaris.org
On Mon, Sep 20, 2010 at 11:03 AM, sridhar surampudi <toyours_sridhar at yahoo.co.in> wrote:> I have a mirror pool tank having two devices underneath. Created in this way > > #zpool create tank mirror ?c3t500507630E020CEAd1 ?c3t500507630E020CEAd0 > > Created file system tank/home > #zfs create tank/home > > Created another file system tank/home > #zfs create tank/home/sridhar > After that I have created files and directories under tank/home and tank/home/sridhar. > > Now I detached 2nd device i.e c3t500507630E020CEAd0 > > Since the above device is part of mirror pool, my guess it will have copy of data which is there in other device till detach and will have metadata with same pool name and file systems created. > > Question is is there any way I can create a new stack with renamed stack by providing the new pool name to this detached device and should access the same data for the c3t500507630E020CEAd0 which was created when it was in mirrored pool under tank. ?If your ZFS version is new enough, there is a "zpool split" command you can use, for just this purpose. It splits a mirror vdev in half and assigns a new pool name to the drive you are removing. You can then use that drive to create a new pool, thus creating a duplicate of the original pool. -- Freddie Cash fjwcash at gmail.com
sridhar surampudi
2010-Sep-20 18:52 UTC
[zfs-discuss] create mirror copy of existing zfs stack
Thank you for your quick reply. When I run below command it is showing. bash-3.00# zpool upgrade This system is currently running ZFS pool version 15. All pools are formatted using this version. How can I upgrade to new zpool and zfs versions so that I can have zpool split capabilities ? I am bit new to Soaris and zfs. Could you please help how can I upgrade ? Thanks & Regards, sridhar. -- This message posted from opensolaris.org
On 09/21/10 06:52 AM, sridhar surampudi wrote:> Thank you for your quick reply. > > When I run below command it is showing. > bash-3.00# zpool upgrade > This system is currently running ZFS pool version 15. > > All pools are formatted using this version. > > > How can I upgrade to new zpool and zfs versions so that I can have zpool split capabilities ? > I am bit new to Soaris and zfs. > Could you please help how can I upgrade ? > >What operating system version are you running? -- Ian.
sridhar surampudi
2010-Sep-21 05:47 UTC
[zfs-discuss] create mirror copy of existing zfs stack
I am using solaris 10 9/10 SARC x64 version. Following are output of release file and uname -a respectively. bash-3.00# cat /etc/release Solaris 10 10/09 s10s_u8wos_08a SPARC Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 16 September 2009 bash-3.00# uname -a SunOS oigtsol12 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V440 I think zpool split is available with build 135. Not sure which build signifies of the version which I am using. I have also tried zpool upgrade -a but didn''t find any difference. Thanks & Regards, sridhar. -- This message posted from opensolaris.org
In your first sentence, you indicate you are using Update 9 (Sol 10 9/10). Where you have cat''ed out your /etc/release file, this shows that you are using Update 8, which predates the zpool split feature. I am not certain if you can patch an update 8 system to current levels, and get the features included in update 9. It is certainly a possibility, as new zfs features have been included in past patches. Another indicator to me that you are not on Update 9 is your kernel revision. your uname output indicates kernel 141444-09. Update 9 ships with kernel rev 142909-17. If you need Update 9 to get this feature, you should be able to go to Oracle''s download site. Also, regardless of how you upgrade/Live Update/etc, be aware of the new auto reg issue. Hope this helps, Jerry -- Linux infrequently disappoints but when it does so, it disappoints so brutally that you momentarily forget how badly Windows burned you. On 09/21/10 00:47, sridhar surampudi wrote:> I am using solaris 10 9/10 SARC x64 version. > > Following are output of release file and uname -a respectively. > > bash-3.00# cat /etc/release > Solaris 10 10/09 s10s_u8wos_08a SPARC > Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. > Use is subject to license terms. > Assembled 16 September 2009 > bash-3.00# uname -a > SunOS oigtsol12 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V440 > > I think zpool split is available with build 135. Not sure which build signifies of the version which I am using. > > I have also tried zpool upgrade -a but didn''t find any difference. > > Thanks& Regards, > sridhar.