Displaying 20 results from an estimated 4000 matches similar to: "Newbie Question -- Override String functionality"
2006 Aug 03
3
How to override append method for related attribute?
I have a model that looks something like this:
class Person < ActiveRecord::Base
has_many :tasks
[...]
end
I''d like to override/overload the append (<<) method for the tasks
relational attribute such that I can perform some error checking in
the context of a Person.tasks << task operation. Is there any way to
do this?
I wish I could do this in the context of
2008 Jun 13
2
cman stop failed
Dear All,
I am using CentOS4 Update 3 Cluster Suite for i386 Architecture and
my linux kernel version is 2.6.9-34.EL
I have configured two node cluster
My nodes are primary and secondary and I am using cluster to monitoring
scripts
During reboot or poweroff i am getting the problem is cman stop failed
and I have verified the "/var/log/messages" log file and i getting the
2005 Nov 11
3
Rebuilding RPMs
I am trying to install the Cluster RPMS from rpm.karan.org. But since I
have updated my kernel with yum, I have the wrong kernel for a couple of the
packages.
# rpm -i --test cman-kernel-smp-2.6.9-36.0.i686.rpm
error: Failed dependencies:
/lib/modules/2.6.9-11.ELsmp is needed by
cman-kernel-smp-2.6.9-36.0.i686
kernel-smp = 2.6.9-11.EL is needed by
cman-kernel-smp-2.6.9-36.0.i686
2009 Sep 16
3
Dependency problem between cman and openais with last cman update
Hi. Today I have updated my cluster installation with the version
cman-2.0.115-1 through yum update. When I have started the cman service
, it fails. If I execute cman_tool debug I get the following error :
[CMAN ] CMAN 2.0.115 (built Sep 16 2009 12:28:10) started
aisexec: symbol lookup error:
/usr/libexec/lcrso/service_cman.lcrso: undefined symbol:
2010 Mar 07
6
some love for migrations
I have a semi-grand plan for some changes to migrations. Mostly this
is motivated by the upcoming 3.0 release and wanting to get migrations
in engines working.
1. Don''t skip migrations with version numbers lower than "current".
I only recently tripped over this, but apparently it''s been this way
since 2.1 when we got timestamps masquerading as large/sparse
2011 Jan 17
2
ping_pong using o2cb and cman
I was testing ocfs2 on a 2 node cluster set up.
ocfs2-tools version is 1.6.3
ocfs2 kernel version is 2.6.36
Using cman on 2 nodes
node02 dw # ping_pong -rwm /data/test.dat 3
data increment = 2
14 locks/sec
node01 dw # ping_pong -rw /data/test.dat 3
data increment = 2
10 locks/sec
node02 dw # ping_pong -r /data/test.dat 3
1980 locks/sec
Using cman on 1 node
node02 dw #
2009 Mar 12
5
Alternatives to cman+clvmd ?
I currently have a few CentOS 5.2 based Xen clusters at different sites.
These are built around a group of 3 or more Xen nodes (blades) and
some sort of shared storage (FC or iSCSI) carved up by LVM and allocated
to the domUs.
I am "managing" the shared storage (from the dom0 perspective) using
cman+clvmd, so that changes to the LVs (rename/resize/create/delete/etc)
are
2011 Jun 20
2
ubuntu, ocfs2 with cman and ctdb
hi guys,
we're evaluating the available clustering options to get ctdb up and running
for a highly available file server.
we've set up both gluster and ocfs2 both on seperate 2 node setups.
ocfs2 seems to provide better throughput and iops to samba clients than does
gluster and that is comparing a single node server to a ctdb clustered 2
node server.
problem with ocfs2 is that i've
2009 Aug 03
1
CTDB+GFS2+CMAN. clean_start="0" or clean_start="1"?
Hi everybody,
I have tested CTDB+GFS2+CMAN under Debian. It works good but I do not
understand some points.
It is possible to run the CTDB defining it under services section in
cluster.conf but running it on the second node shuts down the process at the
first one. My CTDB configuration implies 2 active-active nodes.
Does CTDB care if the node starts with clean_start="0" or
2008 Jun 09
1
Clustersuite package installation failed in Itanium server
Dear All,
I am new in Itanium server Installation and I have installed all the
CentOS4.4 ia64 CDs and
I have try to install clustersuite packages and i am getting the
following error messages like
error: %post(package name here) scriptlet failed, exit status 255 and
error: %pre(package name here) scriptlet failed, exit status 255 problem
Cluster Suite RPMS are
ccs-1.0.7-0.i686.rpm
2014 Oct 29
2
CentOS 6.5 RHCS fence loops
Hi Guys,
I'm using centos 6.5 as guest on RHEV and rhcs for cluster web environment.
The environtment :
web1.example.com
web2.example.com
When cluster being quorum, the web1 reboots by web2. When web2 is going up,
web2 reboots by web1.
Does anybody know how to solving this "fence loop" ?
master_wins="1" is not working properly, qdisk also.
Below the cluster.conf, I
2012 Jun 05
1
cluster.conf validating, but cman not starting
Hi all,
since the last yum update cman does not start any more with the
following entries in /var/log/messages:
> Jun 5 20:50:39 pclus1cent6-02 corosync[1852]: [MAIN ] Corosync
> Cluster Engine ('1.4.1'): started and ready to provide service.
> Jun 5 20:50:39 pclus1cent6-02 corosync[1852]: [MAIN ] Corosync
> built-in features: nss dbus rdma snmp
> Jun 5
2010 Mar 27
1
DRBD,GFS2 and GNBD without all clustered cman stuff
Hi all,
Where i want to arrive:
1) having two storage server replicating partition with DRBD
2) exporting via GNBD from the primary server the drbd with GFS2
3) inporting the GNBD on some nodes and mount it with GFS2
Assuming no logical error are done in the last points logic this is the
situation:
Server 1: LogVol09, DRDB configured as /dev/drbd0 replicated to Server 2.
DRBD seems to work
2006 Apr 26
2
Where is clustat
I thought I've installed the clustering tools, but when I attempt to run
clustat, it says it doesn't exist. When I installed the suite, I ran:
yum install -y GFS GFS-kernel-smp magma-plugins fence dlm dlm-kernel-smp
gulm cman cman-kernel-smp
CCSD is running and when I "cat /proc/cluster/nodes", I see my three
nodes.
Does anyone see the package that I missed for
2011 Jun 23
1
ocfs2 with cman luster stack
hello,
i opened a bug on the ocfs2 bugzilla reporting difficulty i have utilize a
different cluster stack than o2cb.
link: http://oss.oracle.com/bugzilla/show_bug.cgi?id=1325
to summarize i'd like to use ocfs2 on an ubuntu server with drbd and ctdb.
ctdb requires fcntl locks for its lock files. however o2cb doesn't provide
that functionality whereas cman (redhat's cluster manager
2006 Jul 28
11
Forum
Im making forum and i have problem with paths.
Here is code:
http://pastie.caboo.se/6389
With this code, it works. But its a bit weird to use so many paths
function. For every path i need to make new function. So can you suggest
me something.
Tables are like here:
http://wiki.rubyonrails.com/rails/pages/ForumExample
--
Posted via http://www.ruby-forum.com/.
2006 Aug 14
4
Test for string in string
Hi,
Is there an easy way to test if a substring exists in a string?
I''m using this check:
if mystring.index(substring) > 0
but it doesn''t seem to be working....
Thanks!
--
Posted via http://www.ruby-forum.com/.
2005 Nov 21
7
cs & gfs
Hi all,
I was informed[1] that gfs & rhcs packages are in the works but that there are some problems with the code. What are these problems? Can we do anything to help test / solve them?
[1] http://www.karan.org/blog/index.php/2005/07/25/everyone_loves_a_cluster_as_do_i
--
Jure Pe?ar
http://jure.pecar.org
2006 Jan 18
3
Kernel update and csgfs
My apologies if this is a stupid question, but I'm not familiar with
how kernel updates and kernel modules interact.
I see that there are some kernel updates available via yum:
============================================================================
=
Package Arch Version Repository Size
2006 May 28
7
Join table not being populated
Hello,
I have the usual Categories and Products table scenario, mediated by a
Categories_Products join table. When I create a new Product and into a
given Category, I notice that my join table is not being populated.
Shouldn''t the join Categories_Products table be populated?
Thanks,
gk
--
Posted via http://www.ruby-forum.com/.