FW: [DRBD-user] DRBD installation problems
Alex Vrenios
alex at DSRLab.com
Tue Mar 1 18:24:34 CET 2005
> -----Original Message-----
> From: drbd-user-bounces at lists.linbit.com
> [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of
> Patrick Jaromin
> Sent: Tuesday, March 01, 2005 7:51 AM
> To: 'Alex Vrenios'; drbd-user at linbit.com
> Subject: RE: [DRBD-user] DRBD installation problems
>
>
> > -----Original Message-----
> > From: drbd-user-bounces at linbit.com
> > [mailto:drbd-user-bounces at linbit.com]
> > On Behalf Of Alex Vrenios
> > Sent: Monday, February 28, 2005 5:17 PM
> > To: drbd-user at linbit.com
> > Subject: RE: [DRBD-user] DRBD installation problems
> >
> > Hi,
> >
> > I just posted an answer to the same question, because I had
> the same
> > problem and solved it. (At least I think I did!)
> >
> > First, I have 0.7.10 on a Redhat 9 pair and I dedicated two
> 4G drives
> > to DBRD, one added to each PC at /dev/hdd. I made two partitions on
> > each: 3G and 1G defined as /dev/hdd1 and /dev/hdd2,
> respectively. Then I issued:
> >
> > root# drbdsetup /dev/drbd0 disk /dev/hdd1 /dev/hdd2 1
> >
> > where /dev/hdd1 is my "resource file" that I want DRBD to mirror,
> > dev/hdd2 is the "meta data" file that DRBD uses to track mirroring,
> > and 1 (the number
> > one) is the index number that seems to work. (Someone here
> recommended
> > using -1,but that was an invalid choice according to the drbdsetup
> > command. 1 works, but 2 doesn't - I have no idea what this means.)
>
>
> If you choose to use the "internal" metadata device, the
> correct index is -1.
>
> >
> > More (not all) info on meta data file sizes and use can be found in
> > the man page for drbdsetup: "man drbdsetup" works on my PC
> under RH9.
> >
> > Finally, after the drbdsetup command above, I issue:
> >
> > root# mkfs -b 3072 /dev/drbd0
> >
> > root# cd /; mkdir /data
> >
> > root# mount /dev/drbd0 /data
> >
> > root# chmod 777 /data
> >
> > After these commands, I add "/etc/init.d/drbd start" to
> my rc.local
> >
>
> I would suggest not putting the startup in the rc.local file.
> This would require you to add any future services that rely
> on drbd to the rc.local file as well.
>
Having the start command in rc.local was suggested by the articles/docs for
Heartbeat. My goal is to run HA pair without having to buy an external
storage device. (This is for a class on clustering.)
(And I really don't mind adding other commands to rc.local. If I am
designing a system that is dedicated to a "family" of applications, like
DRBD, Heartbeat, etc., then rc.local seems a good place for their
initialization to be.)
Alex
More information about the drbd-user
mailing list