LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-03-2011, 10:40 AM   #1
kheldar
Member
 
Registered: Jul 2004
Location: Nottingham, England
Distribution: Fedora 17, Centos 6.3 x86_64
Posts: 35

Rep: Reputation: 2
LVM on DRBD - how do I get these to mount automatically after reboot?


I've a Fedora 14 system running a DRBD device which is the physical volume for a LVM.

After reboot, the DRBD hosted LVM volume group isn't active, and so if I have any mount points in the fstab the server fails to boot.

How do I get these to automatically activate and mount following a reboot?
 
Old 09-05-2011, 08:37 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
I have been reticent to take this off the "zero-reply" list as I haven't touched this. However, I see no-one else has responded, so ...
This sounds like a "timing" issue.
Are you sure you don't have things arse-about ?. Maybe the DRBD [cs]hould be defined on LVM pv's, and contain a "simple" filesystem rather than (yet another) block device driver that LVM exposes. Redhat does the scan for LVM entities early in the boot process - if your network infrastructure isn't up and active, you won't find that LVM on DRBD.
nfs has a separate mount module that incorporates timeouts for fstab to ensure the network (eventually) comes up so mounts can complete. You might be in need of something similar.

Else you could remove the entries from fstab altogether and do the mounts in rc.local - also enables you to include sleep(s) in need.

Last edited by syg00; 09-05-2011 at 08:38 AM.
 
  


Reply

Tags
drbd, fedora 14, lvm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DRBD can't mount on Secondary Patric.F Linux - Server 2 12-20-2010 04:28 AM
Device already mounted or mount point busy with CentOS/corosync/pacemaker/DRBD aschoessler Linux - Server 1 04-02-2010 08:11 AM
How to make a DRBD node start itself as a primary node automatically? pyruby Linux - Newbie 1 01-29-2010 12:41 PM
Automatically mount after reboot rust8y Linux - Newbie 1 05-25-2008 10:25 PM
LVM Partitions Automatically Unmount r_s_karthikeyan Linux - Newbie 1 01-03-2007 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration