[DRBD-user] Confusion about DRBD 9

Eric Robinson eric.robinson at psmnv.com
Wed Jul 12 21:39:03 CEST 2017

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


In addition to the information in the email below, I am seeing the following messages in the logs. Why would the folder /var/lib/drbd.d not exist on either server? This is a fresh install of DRBD using the factory HA package that comes with SLES 12 SP2. 

I have the following folders...

/var/lib/drbd
/var/lib/drbdmanage
/etc/drbd.d

I do not have...

/var/lib/drbd.d

<log snippet>

ha11b:/var/log # grep ha02 messages
2017-07-11T11:45:59.735772-07:00 ha11b org.drbd.drbdmanaged[1369]:   Failed to find logical volume "drbdpool/ha02_mysql_00"
2017-07-11T11:45:59.813490-07:00 ha11b org.drbd.drbdmanaged[1369]:   Logical volume "ha02_mysql_00" created.
2017-07-11T11:45:59.832280-07:00 ha11b drbdmanaged[4631]: ERROR      cannot write to configuration file '/var/lib/drbd.d/drbdmanage_ha02_mysql.res' or '/var/lib/drbd.d/drbdmanage_global_common.conf', error returned by the OS is: No such file or directory
2017-07-11T11:55:59.953695-07:00 ha11b DRBDmanage:4861: spawning ['drbdadm', '-c', '-', 'attach', 'ha02_mysql/0']No valid meta data found
2017-07-11T11:55:59.953890-07:00 ha11b DRBDmanage:4861: Command 'drbdmeta 101 v09 /dev/drbdpool/ha02_mysql_00 internal apply-al' terminated with exit code 255
2017-07-11T11:56:00.037829-07:00 ha11b DRBDmanage:4877: spawning ['drbdadm', '-c', '-', 'connect', 'ha02_mysql']
2017-07-11T12:02:39.286130-07:00 ha11b drbdmanaged[4631]: ERROR      cannot write to configuration file '/var/lib/drbd.d/drbdmanage_ha02_mysql.res' or '/var/lib/drbd.d/drbdmanage_global_common.conf', error returned by the OS is: No such file or directory
2017-07-11T12:02:39.367599-07:00 ha11b drbdmanaged[4631]: ERROR      cannot write to configuration file '/var/lib/drbd.d/drbdmanage_ha02_mysql.res' or '/var/lib/drbd.d/drbdmanage_global_common.conf', error returned by the OS is: No such file or directory

--
Eric Robinson

> -----Original Message-----
> From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-
> bounces at lists.linbit.com] On Behalf Of Eric Robinson
> Sent: Wednesday, July 12, 2017 11:06 AM
> To: Roland Kammerer <roland.kammerer at linbit.com>; drbd-
> user at lists.linbit.com
> Subject: Re: [DRBD-user] Confusion about DRBD 9
> 
> [This sender failed our fraud detection checks and may not be who they
> appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing]
> 
> Thanks so much for your reply!
> 
> > > 1.       When you use drbdmanage to configure a cluster, does it
> > > create configuration files somewhere? I don't see my resources
> > > mentioned in the files under /etc/drbd.d or /var/lib/drbd.d.
> >
> > Should be in /var/lib/drbd.d/drbdmanage_<resource>.res
> 
> There is no directory by that name. There is only /var/lib/drbd, which
> contains...
> 
> -rw-r--r-- 1 root root 34 Jul 11 11:32 drbd-minor-0.lkbd
> -rw-r--r-- 1 root root 34 Jul 11 11:32 drbd-minor-1.lkbd
> 
> ..and also /etc/drbd.d, which contains...
> 
> -rw-r--r-- 1 root root  684 Jul 11 11:33 drbdctrl.res
> -rw-r--r-- 1 root root  541 Mar  8  2016 drbdctrl.res_template
> -rw-r--r-- 1 root root  211 Mar  8  2016 drbdmanage-resources.res
> -rw-r--r-- 1 root root 2062 Mar 27 07:37 global_common.conf
> 
> > > 3.       drbdmanage -list-assignments shows failed or pending actions.
> >
> > That requires log files to make assumptions.
> 
> Which log files should I copy and paste from?
> 
> > > 4.       What's the point of using drbdmanage if I'm going to have to
> > > do the old-style manual configuration anyway?
> >
> > You should not have to.
> 
> That's what I thought, but I'm clearly missing something.
> 
> --
> Eric Robinson
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



More information about the drbd-user mailing list