LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-19-2010, 04:25 PM   #1
aschoessler
LQ Newbie
 
Registered: Jun 2006
Distribution: RedHatEL4
Posts: 14

Rep: Reputation: 0
Device already mounted or mount point busy with CentOS/corosync/pacemaker/DRBD


Hello,

I am trying to set up a cluster on CentOS by following the instructions on the Pacemaker site (http://clusterlabs.org/mediawiki/ima...n_Fedora11.pdf).

The cluster is working fine at this point aside from DRBD. When Pacemaker attempts to start DRBD on the cluster, I get an error saying that the device is already mounted or the mount point is busy. Neither of those is the case as near as I can tell, but I'm clearly doing something wrong.

Below are my configuration files and other relevant information. I have also attached the full log generated by the startup of corosync. The handful of search results on Google for this error turned up no leads, so my guess is that this is probably something pretty obvious that I'm missing if only a few people have run into it. Any help would be greatly appreciated!

Here is the error I'm getting:
Code:
Mar 19 14:27:00 yaaserver1 lrmd: [3038]: info: rsc:DatastoreFS:13: start
Mar 19 14:27:00 yaaserver1 Filesystem[3520]: INFO: Running start for /dev/mapper/VolGroup00-drbd on /datastore
Mar 19 14:27:00 yaaserver1 lrmd: [3038]: info: RA output: (DatastoreFS:start:stderr) 2010/03/19_14:27:00 INFO: Running start for /dev/mapper/VolGroup00-drbd on /datastore 
Mar 19 14:27:00 yaaserver1 lrmd: [3038]: info: RA output: (DatastoreFS:start:stderr) mount: /dev/mapper/VolGroup00-drbd already mounted or /datastore busy 
Mar 19 14:27:00 yaaserver1 Filesystem[3520]: ERROR: Couldn't mount filesystem /dev/mapper/VolGroup00-drbd on /datastore
Mar 19 14:27:00 yaaserver1 lrmd: [3038]: info: RA output: (DatastoreFS:start:stderr) 2010/03/19_14:27:00 ERROR: Couldn't mount filesystem /dev/mapper/VolGroup00-drbd on /datastore 
Mar 19 14:27:00 yaaserver1 lrmd: [3038]: WARN: Managed DatastoreFS:start process 3520 exited with return code 1.
Mar 19 14:27:01 yaaserver1 crmd: [3041]: info: process_lrm_event: LRM operation DatastoreFS_start_0 (call=13, rc=1, cib-update=43, confirmed=true) unknown error
Mar 19 14:27:01 yaaserver1 crmd: [3041]: WARN: status_from_rc: Action 37 (DatastoreFS_start_0) on yaaserver1 failed (target: 0 vs. rc: 1): Error
Here is the output of crm_mon:
Code:
============
Last updated: Fri Mar 19 14:46:27 2010
Stack: openais
Current DC: yaaserver1 - partition with quorum
Version: 1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782
2 Nodes configured, 2 expected votes
4 Resources configured.
============

Online: [ yaaserver1 yaaserver2 ]

ClusterIP       (ocf::heartbeat:IPaddr2):       Started yaaserver1
 Master/Slave Set: DatastoreDataClone
     Masters: [ yaaserver2 ]
     Slaves: [ yaaserver1 ]

Failed actions:
    DatastoreFS_start_0 (node=yaaserver1, call=13, rc=1, status=complete): unknown error
    DatastoreFS_start_0 (node=yaaserver2, call=14, rc=1, status=complete): unknown error
Here is my Pacemaker configuration:
Code:
[root@yaaserver1 /]# crm configure show
node yaaserver1
node yaaserver2
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        params ip="10.0.0.50" cidr_netmask="32" \
        op monitor interval="15s"
primitive DatastoreData ocf:linbit:drbd \
        params drbd_resource="datastore" \
        op monitor interval="60"
primitive DatastoreFS ocf:heartbeat:Filesystem \
        params device="/dev/mapper/VolGroup00-drbd" directory="/datastore" fstype="ext3"
primitive WebSite ocf:heartbeat:apache \
        params configfile="/etc/httpd/conf/httpd.conf" \
        op monitor interval="20s"
ms DatastoreDataClone DatastoreData \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation WebSite-with-DatastoreFS inf: WebSite DatastoreFS
colocation fs_on_drbd inf: DatastoreFS DatastoreDataClone:Master
colocation website-with-ip inf: WebSite ClusterIP
order DatastoreFS-after-DatastoreData inf: DatastoreDataClone:promote DatastoreFS:start
order WebSite-after-DatastoreFS inf: DatastoreFS WebSite
property $id="cib-bootstrap-options" \
        dc-version="1.0.7-d3fa20fc76c7947d6de66db7e52526dc6bd7d782" \
        cluster-infrastructure="openais" \
        expected-quorum-votes="2" \
        stonith-enabled="false" \
        no-quorum-policy="ignore"
rsc_defaults $id="rsc-options" \
        resource-stickiness="100"
Here is my DRBD configuration:
Code:
[root@yaaserver1 /]# cat /etc/drbd.conf
global {
  usage-count yes;
}
common {
  protocol C;
}
resource datastore {
  meta-disk internal;
  device    /dev/drbd1;
  syncer {
    verify-alg sha1;
    rate 40M;
  }
  net {
    allow-two-primaries;
  }
  on yaaserver1 {
    disk      /dev/mapper/VolGroup00-drbd;
    address   10.0.1.51:7789;
  }
  on yaaserver2 {
    disk      /dev/mapper/VolGroup00-drbd;
    address   10.0.1.52:7789;
  }
}
Here is the output of mount:
Code:
[root@yaaserver1 /]# mount
/dev/mapper/VolGroup00-os on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
The /datastore mount point exists and is empty:
Code:
[root@yaaserver1 /]# cd /datastore
[root@yaaserver1 datastore]# ls
[root@yaaserver1 datastore]#
DRBD is not running on startup:
Code:
[root@yaaserver1 datastore]# chkconfig --list drbd
service drbd supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add drbd')
Attached Files
File Type: txt messages.txt (74.7 KB, 9 views)
 
Old 04-02-2010, 08:11 AM   #2
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
hi,

i dont know how this is going to help you.But i had similar experience while mounting filesystem. Actually i had mounted a partition on a directory. e.g. /dev/sda2 on /fun.

And i deleted that partition without unmounting. Again i have created a new partition with the same partition number and tried to mount on a directory called /big.

But it does not allowed me to do that. it says Filesystem already mounted similar to that error. Then i deleted that partition and rebooted the system and then mounted it again.Then it worked.

I am not asking you to delete the partition.My point is that this may also be the reason for your error.

Just a guess.

Last edited by dinakumar12; 04-02-2010 at 08:13 AM.
 
  


Reply



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
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
Mount Problem: evice already mounted or mount point busy paldebojyoti Linux - Distributions 5 08-27-2009 02:46 AM
LXer: Installation And Setup Guide For DRBD, OpenAIS, Pacemaker + Xen On OpenSUSE 11. LXer Syndicated Linux News 0 08-19-2009 12:50 PM
CentOS 2.6.19.1: mounting /proc/bus/usb already mounted or busy chris24300 Fedora 1 08-07-2009 05:51 PM
Boot mount errors - partitions busy or already mounted Frank64 Linux - General 0 06-28-2008 09:35 AM

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

All times are GMT -5. The time now is 02:50 AM.

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