[Pacemaker] [Gluster-users] Pacemaker and GlusterFS

David Vossel dvossel at redhat.com
Tue Feb 18 15:58:26 UTC 2014





----- Original Message -----
> From: "Jefferson Carlos Machado" <lista.linux at results.com.br>
> To: "The Pacemaker cluster resource manager" <pacemaker at oss.clusterlabs.org>
> Sent: Tuesday, February 11, 2014 7:03:50 AM
> Subject: Re: [Pacemaker] [Gluster-users] Pacemaker and GlusterFS
> 
> 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

Ah, It looks like the FileSystem agent needs to be updated to work correctly with gluster then. 

-- Vossel

> [root at srvmail0 ~]# mount -a
> [root at 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 at 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 at srvmail0 ~]#
> 
> 
> 
> Regards,
> 
> Em 07-02-2014 17:53, David Vossel escreveu:
> >
> >
> >
> > ----- Original Message -----
> >> From: "Jefferson Carlos Machado" <lista.linux at results.com.br>
> >> To: "The Pacemaker cluster resource manager"
> >> <pacemaker at oss.clusterlabs.org>, gluster-users at 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-users at gluster.org
> >> http://supercolony.gluster.org/mailman/listinfo/gluster-users
> >>
> >> _______________________________________________
> >> Pacemaker mailing list: Pacemaker at 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 at 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 at 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
> 




More information about the Pacemaker mailing list