Re: Question about iSCSI / NAS / Cluster

Bob McClure <[email protected]>
Newsgroups gmane.os.freebsd.devel.cluster
Message-ID <[email protected]>
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.

  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.

  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.

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.

Bob McClure



On Mon, May 25, 2009 at 9:39 AM, Francisco Cabrita <
[email protected]> 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
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-cluster
> To unsubscribe, send any mail to "[email protected]"
>
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-cluster
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.