Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Humm, yes, i got this, what i don't get is, for example, an error i get and which happens when starting heartbeat on the secondary server : here it is, and my haresources follows it : ------------------------------------------------------------------------- Starting High-Availability services: mknod: wrong number of arguments Try `mknod --help' for more information. Heartbeat failure [rc=6]. Failed. heartbeat: 2006/01/09_10:24:07 info: Neither logfile nor logfacility found. heartbeat: 2006/01/09_10:24:07 info: Logging defaulting to /var/log/ha-log heartbeat: 2006/01/09_10:24:07 info: ************************** heartbeat: 2006/01/09_10:24:07 info: Configuration validated. Starting heartbeat 1.2.3 heartbeat: 2006/01/09_10:24:07 ERROR: Bad nodename in /etc/ha.d/haresources [nfs-kernel-server] heartbeat: 2006/01/09_10:24:07 ERROR: Configuration error, heartbeat not started. ------------------------------------------------------------------------- /etc/ha.d/haresources: management drbddisk::drbd-resource-0 \ Filesystem::/dev/drbd0::/share/spool0/data::ext3 \ killnfsd \ nfs-common \ nfs-kernel-server \ sleep::3 \ IPaddr::10.0.1.200/24/eth1 ------------------------------------------------------------------------- this same file works on the primary server, note that "management" is the hostname of the primary server where "node1" is the name of the secondary. so heartbeat doesn't works on my secondary... I decided to create /share/spool0 on the secondary. Last question beeing: On the primary server, /var/lib/nfs is copied on the mounted/shared partition. and a link is done. I guess on the secondary, i should delete /var/lib/nfs and create the same link so when it failover, nfs knows what to do... right ? Thanks again :) Pierre. On Mon, 2006-01-09 at 12:14 -0500, Chip Burke wrote: > **** after a reboot of my secondary server (replicate) i get > secondary/primary in /proc/drbd. Isn't supposed to be secondary/secondary ? > > No, it will pop back on as the secondary just as you would expect. However, > if there was a heartbeat failover, heartbeat will set the secondary to > primary and the failed server will come back up as the secondary. > > **** NFS works, i got the share working but i am lost with something about > the failover. > on the primary server, i got /dev/drbd0 mounted as /share/spool0/data/ > which i share then... but this directory doesn't exists in the secondary > server (I followed an how-to) i guess i should create it and tell > heartbeat to mount automaticaly the file and share it then, i don't > really know if this theory is good, sounds logical to me. > > > The drbd device will only be usable if the original fails and the secondary > is set to primary. If they were both writable/readable you would get out of > sync and have corrupt data, therefore only the partition on the primary can > be mounted. Read this doc: > > http://www.linux-ha.com/DataRedundancyByDrbd > > Pay special attention to the section called Unattended Mode which shows how > to do an automated failover and mount using drbd and heartbeat. > > > > ________________________________________ > Chip Burke > ________________________________________ > > > -----Original Message----- > From: drbd-user-bounces at lists.linbit.com > [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Pierre Ancelot > Sent: Monday, January 09, 2006 12:06 PM > To: drbd-user at linbit.com > Subject: [DRBD-user] A few questions :) > > Hi everyone, here are a few questions. > I have setup drbd/nfs/heartbeat but for example, after a reboot of my > secondary server (replicate) i get secondary/primary in /proc/drbd. > Isn't supposed to be secondary/secondary ? > > NFS works, i got the share working but i am lost with something about > the failover. > on the primary server, i got /dev/drbd0 mounted as /share/spool0/data/ > which i share then... but this directory doesn't exists in the secondary > server (I followed an how-to) i guess i should create it and tell > heartbeat to mount automaticaly the file and share it then, i don't > really know if this theory is good, sounds logical to me. > > Thanks for your help... > Pierre > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user > > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user