Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread Steven Ford
If you manage your server with something like Puppet, you could configure it to ensure the file system is mounted. Or use cron to check periodically. On 5/4/2016 5:02 AM, Steven Ford wrote: > You could also use pacemaker to manage promoting the drbd device and > mounting it with a dead master

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread John R Pierce
On 5/4/2016 5:02 AM, Steven Ford wrote: You could also use pacemaker to manage promoting the drbd device and mounting it with a dead master role as a dependency. Are you using anything to automatically promote the send slave already? I'm not using anything, this is a disaster recovery sort of

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread Steven Ford
That is a DRBD master role, not dead master. Good ol' auto correct. On Wed, May 4, 2016 at 8:02 AM, Steven Ford wrote: > You could also use pacemaker to manage promoting the drbd device and > mounting it with a dead master role as a dependency. Are you using anything > to

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread Steven Ford
You could also use pacemaker to manage promoting the drbd device and mounting it with a dead master role as a dependency. Are you using anything to automatically promote the send slave already? ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread James Hogarth
On 4 May 2016 09:11, "John R Pierce" wrote: > > On 5/4/2016 12:41 AM, Patrick Begou wrote: >> >> >> Any messages in /var/log/boot.log ? > > > indeed, it appears it tries to mount local file systems BEFORE drbd is started. because /data isn't mounted, backuppc can't start

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread John R Pierce
On 5/4/2016 12:41 AM, Patrick Begou wrote: Any messages in /var/log/boot.log ? indeed, it appears it tries to mount local file systems BEFORE drbd is started. because /data isn't mounted, backuppc can't start either. so do I have to edit the chkconfig priorities in /etc/init.d and

Re: [CentOS] c6, drbd and file systems

2016-05-04 Thread Patrick Begou
John R Pierce wrote: On 5/3/2016 2:52 PM, Clint Dilks wrote: Are you using SE Linux? If so does the context for /dev/drbd0 match on both systems ? afaik, this has nothing to do with the drbd slave. I reboot the master, replication resumes just fine, but the /data filesystem doesn't get

Re: [CentOS] c6, drbd and file systems

2016-05-03 Thread John R Pierce
On 5/3/2016 2:52 PM, Clint Dilks wrote: Are you using SE Linux? If so does the context for /dev/drbd0 match on both systems ? afaik, this has nothing to do with the drbd slave. I reboot the master, replication resumes just fine, but the /data filesystem doesn't get automounted til I

Re: [CentOS] c6, drbd and file systems

2016-05-03 Thread Clint Dilks
On Wed, May 4, 2016 at 9:41 AM, John R Pierce wrote: > I have a pair of centos 6 systems, with a rather large raid thats DRBD > replicated from box 1 to box 2... box 1 mounts this as /data > > when box 1 reboots, /data doesn't get mounted, but the drbd replication > starts

[CentOS] c6, drbd and file systems

2016-05-03 Thread John R Pierce
I have a pair of centos 6 systems, with a rather large raid thats DRBD replicated from box 1 to box 2... box 1 mounts this as /data when box 1 reboots, /data doesn't get mounted, but the drbd replication starts up just fine. the entry in fstab is... /dev/drbd0 /data