Hi Vossel,

I allready do this.

 Resource: home (class=ocf provider=heartbeat type=Filesystem)
  Attributes: device=localhost:/home_gv directory=/home fstype=glusterfs
  Operations: start interval=0 timeout=60 (home-start-interval-0)
              stop interval=0 timeout=240 (home-stop-interval-0)
              monitor interval=30s role=Started (home-monitor-interval-0)

But when I try start I get error bellow and can see error in the log.

Operation start for home (ocf:heartbeat:Filesystem) returned 1
 >  stdout: Mount failed. Please check the log file for more details.
 >  stderr: INFO: Running start for localhost:/home_gv on /home
 >  stderr: ERROR: Couldn't mount filesystem localhost:/home_gv on /home

Work fine with fstab and mount -a

[root@srvmail0 ~]# mount -a
[root@srvmail0 ~]# df
Filesystem                   1K-blocks     Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root   1491664  1298072    117816  92% /
tmpfs                           312236    44080    268156  15% /dev/shm
/dev/xvda1                      495844    75560    394684  17% /boot
/dev/xvdb1                    20954552 16049876   4904676  77% /gv
/dev/xvdc1                     2063504  1133824    824860  58% /var
localhost:/gv_home            20954496 16049920   4904576  77% /home
[root@srvmail0 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Wed Dec 19 18:01:54 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=a7af8398-cbea-495f-80cd-1a642d94d9f4 /boot ext4    defaults        1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs                   /dev/shm                tmpfs defaults        0 0
devpts                  /dev/pts                devpts gid=5,mode=620  0 0
sysfs                   /sys                    sysfs defaults        0 0
proc                    /proc                   proc defaults        0 0
/dev/xvdb1         /gv               xfs    defaults        1 1
/dev/xvdc1         /var                  ext4    defaults        1 1
localhost:/gv_home       /home   glusterfs       _netdev 0 0
[root@srvmail0 ~]#



Regards,

Em 07-02-2014 17:53, David Vossel escreveu:



----- Original Message -----
From: "Jefferson Carlos Machado" <lista.li...@results.com.br>
To: "The Pacemaker cluster resource manager" <pacemaker@oss.clusterlabs.org>, 
gluster-us...@gluster.org
Sent: Friday, February 7, 2014 11:55:37 AM
Subject: [Pacemaker] [Gluster-users] Pacemaker and GlusterFS

Hi,

How the best way to create a resource filesystem managed type glusterfs?
I suppose using the Filesystem resource agent. 
https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/Filesystem

-- Vossel

Regards,
_______________________________________________
Gluster-users mailing list
gluster-us...@gluster.org
http://supercolony.gluster.org/mailman/listinfo/gluster-users

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


_______________________________________________
Pacemaker mailing list: Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to