Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi Louai, Hi Lars, Lars Ellenberg schrieb: > / 2005-10-30 05:12:38 +0300 > \ Louai Al-Awami: > > >>1. Suppose I mounted my drbd drive on the primary node using >> >>mount /dev/drbd/0 /tmp/drbd > > > you definetly do not want a mount point in /tmp. > put it in /mnt, or wherever. but not in tmp. > > >>then I moved my webpage into drbd using: >> >>cp /var/www /tmp/drbd >> >> >> >>Finally, I make a soft link to the replicated webpage using >> >>ln -s /tmp/drbd /var/www >> >>The question is how to do this automatically, Thats the typical Newbie question I had, too a few month ago. Louai wants to automate the takeover from node 1 to node 2. Louai you need: heartbeat > > > I don't really understand what exactly you want to automate, > since this is a one time job, once setup, always in place. > > >>and how to do the same thing on the secondary node so it does the >>mounting when taking over. > > > just put the symlink in place, and let heartbeat mount it on the same > mount point. > > >>2. A second question, in case you have an LVS with a pool of identical >>real servers that use drbd, I would like all real server to have the same >>image of the block device. The question is who to do the same steps on the >>real servers while they are all in secondary state to make use of the >>replicated data simultaneously. > > > I don't quite understand what you are asking for. > but just in case: DRBD is strictly between two nodes. > and at most one of them may access the data at any given time. > cu Andreas