Mertol Ozyoney
2007-Oct-19 21:49 UTC
[zfs-discuss] Mounting ZFS Pool to a different server
Hi; One of my customers is using ZFs on IBM DS4800 Lun''s. They use one lun for each ZFS pool if it matters. They want to take the pool offline from one server and take it nline from an other server. In summary they want to take the control of a ZFS pool if the primary server fails for some reason. I know we can do it with Sun Cluster how ever this is pretty complex and expensive . How can this be achieved? Regards Mertol <http://www.sun.com/> http://www.sun.com/emrkt/sigs/6g_top.gif Mertol Ozyoney Storage Practice - Sales Manager Sun Microsystems, TR Istanbul TR Phone +902123352200 Mobile +905339310752 Fax +902123352222 Email <mailto:Ayca.Yalcin at Sun.COM> mertol.ozyoney at Sun.COM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20071020/c0db7ad5/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 1257 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20071020/c0db7ad5/attachment.gif>
The ideal situation it would go like: host1# zpool export pool host2# zpool import pool If you know (really know) that it is offline on the other server (e.g. you can verify the host is dead), you can use: # zpool import -f <pool> Mike On 10/19/07, Mertol Ozyoney <Mertol.Ozyoney at sun.com> wrote:> > Hi; > > > > One of my customers is using ZFs on IBM DS4800 Lun''s. They use one lun for > each ZFS pool if it matters. > > They want to take the pool offline from one server and take it nline from > an other server. > > > > In summary they want to take the control of a ZFS pool if the primary > server fails for some reason. I know we can do it with Sun Cluster how ever > this is pretty complex and expensive . > > > > How can this be achieved? > > > > Regards > > Mertol > > > > > > [image: http://www.sun.com/emrkt/sigs/6g_top.gif] <http://www.sun.com/> > > *Mertol Ozyoney * > Storage Practice - Sales Manager > > *Sun Microsystems, TR* > Istanbul TR > Phone +902123352200 > Mobile +905339310752 > Fax +902123352222 > Email mertol.ozyoney at Sun.COM <Ayca.Yalcin at Sun.COM> > > > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > >-- Mike Gerdts http://mgerdts.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20071019/d49eae07/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 1257 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20071019/d49eae07/attachment.gif>
Yes we do this currently on some systems where we haven''t had time to install and test Cluster software. Even old 3310 array can be setup so 2 servers have storage visible. We export pool on one system and import it on the other, move over a virtual IP and the service is back up. You *really* don''t want the confusion of 2 servers accessing the same pool though, this will ruin metadata and you''d better have backups. The problem I could see is some over-anxious admin does a zpool import -f to force access on the backup server, and the primary server is not dead but perhaps VERY busy and suddenly un-hangs and thinks it still has control of the pool. I''d get someone to pull the plug or if you have console bring it to OK prompt on the primary just to be sure of things. This message posted from opensolaris.org
Hello Mike, Saturday, October 20, 2007, 3:21:16 AM, you wrote: > The ideal situation it would go like: host1# zpool export pool host2# zpool import pool If you know (really know) that it is offline on the other server (e.g. you can verify the host is dead), you can use: # zpool import -f And probably it would be good to use zpool import -R / .... -- Best regards, Robert mailto:rmilkowski@task.gda.pl http://milek.blogspot.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Hello Mertol, Friday, October 19, 2007, 10:49:13 PM, you wrote: > Hi; In summary they want to take the control of a ZFS pool if the primary server fails for some reason. I know we can do it with Sun Cluster how ever this is pretty complex and expensive . Well, Sun Cluster is for free if you don''t need a support -- Best regards, Robert Milkowski mailto:rmilkowski@task.gda.pl http://milek.blogspot.com _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss