From owner-freebsd-cluster@FreeBSD.ORG Mon May 25 16:49:39 2009 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9D68106564A for ; Mon, 25 May 2009 16:49:39 +0000 (UTC) (envelope-from francisco.cabrita@gmail.com) Received: from mail-fx0-f168.google.com (mail-fx0-f168.google.com [209.85.220.168]) by mx1.freebsd.org (Postfix) with ESMTP id 4C0208FC43 for ; Mon, 25 May 2009 16:49:39 +0000 (UTC) (envelope-from francisco.cabrita@gmail.com) Received: by fxm12 with SMTP id 12so3349453fxm.43 for ; Mon, 25 May 2009 09:49:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=2sa21/fUKKFkNE5JaBe8hXKvEWqVmveIJ65zontMr90=; b=k0mWcDOEokDWySiX2Cdj6p2nL7u1d1zZ8oiGyMsNxrFtwLjFtOXjHM9mKhqx3jqHfP PYX4N0quh/KV6JWKCiaV9xuve7d09eOC45hDjkCSmlq6xbNpqO4gk367D2x2zh3rRqlT TxDi1MsH6dTqTXE2GF0mDMZMXoc3jfldJhIE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=c4z2GH0HtczYGHqngYlMMgDAXX+0mQefthQZBC7svjbXchYVG6AaPThsTVk/qtDXEr xaKOOH4kgRTFWCXWI5da7XT9uas/E5aV9BHWLWyhoYP5Orsmh1VNfMQDoVgvrc4v8weQ XYJWbsREoXKvqdDFYBB4XA8Z/YWUHre6Yms9o= MIME-Version: 1.0 Received: by 10.239.154.142 with SMTP id e14mr491551hbc.69.1243270178206; Mon, 25 May 2009 09:49:38 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 May 2009 17:49:38 +0100 Message-ID: From: Francisco Cabrita To: Bob McClure Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-cluster@freebsd.org Subject: Re: Question about iSCSI / NAS / Cluster X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 May 2009 16:49:40 -0000 Hi Bob, Thanks for your reply :) On Mon, May 25, 2009 at 5:25 PM, Bob McClure wrote: > Francisco, > This sounds very similar to the issue I encountered when trying to > backend a shared SAN connection. The problem that > I ran into was that this shared area would need to be configured as a > shared file system such as GFS that is not available > for FreeBSD. I did get concurrent connections, but bad things happened. Yep and those bad things did happen...(love backups) Yes that's sad we don't have such GFS but maybe CodaFS will be ready to production one day. (I have no idea how about MogileFS is regarding distributed FS under FreeBSD) > > > There is package that is available for FreeBSD (ifstated) that reportedly > will aid you with knowing when a carp status changed, but > I personally never got it to work properly due to time constraints. I know and I use ifstated to switch from Cable to ADSL Internet providers. It's a KISS solution. I didn't even think using it on this scenario... :) gonna think about it. > > My original solution that I still use is a script that looks at the carp > device info from ifconfig and reports MASTER or BACKUP. > This can be executed periodically by a script to have the new master mount > the shared resource and the non-master give it up. > This is far from ideal, but works in instances where immediate fail over is > not required. This is designed to be called from a shell > script via backtick. I see. link up for the master; test connection and in case of some network failure, get that target offline and mount another to slave one. > > > STATUS=`./carpstatus.pl` > if [ $STATUS = "MASTER" ] ; then > ..... > fi > > (carpstatus.pl) > #!/usr/bin/perl > # $output = `ifconfig | grep carp: | grep vhid | /usr/bin/awk '{print > \$2}'` ; > # chomp($output) ; > # print "$output" ; > > I hope this helps you with your issue. Carp sound really good to this. I was reading about Lagg operating as a failover but that don't make sense because I want to see and test both links but use just one at a given time. Very cool, and thanks very much for your tip! :) Best regards, Francisco Cabrita > > Bob McClure > > > > On Mon, May 25, 2009 at 9:39 AM, Francisco Cabrita < > francisco.cabrita@gmail.com> wrote: > >> Hi, >> >> I don't know if this ML is the right place to post a question about >> NAS/iSCSI and Cluster related issue. I will write it anyway. >> >> info: >> I have built a NAS server under FreeBSD. Geom RAID5 over 3 hard disks and >> iSCSI target0 created. >> It is up and running without problems "exporting" a SCSI driver to a Ms >> Windows 2000 Server with Microsoft iSCSI Inititator driver. >> The volume is NTFS. >> >> doubt: >> I have read multiple "old" posts around the web that I can't connect >> multiple initiators (w2k clients) to the same target. Is this true >> nowadays? >> >> Facts: >> I really need at least two w2k clients to the same "storage NAS". Any tip >> about how to solve this? >> Maybe some kind of failover technique between both w2k servers? >> >> I really appreciate your help. Thanks in advance >> >> Best Regards >> Francisco >> >> PS: I sent this email to freebsd-scsi ML too. No anwsers until now. >> >> -- >> blog: http://sufixo.com/raw >> http://www.linkedin.com/in/franciscocabrita >> _______________________________________________ >> freebsd-cluster@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-cluster >> To unsubscribe, send any mail to "freebsd-cluster-unsubscribe@freebsd.org >> " >> > > -- blog: http://sufixo.com/raw http://www.linkedin.com/in/franciscocabrita