[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Sharing GFS Partition



The cluster start but I couldn't mount.

The process fenced is started.
21399 ?        Ssl    0:00 /sbin/ccsd
21421 ?        Ss     0:00 /sbin/groupd
21429 ?        Ss     0:00 /sbin/fenced
21435 ?        Ss     0:00 /sbin/dlm_controld
21441 ?        Ss     0:00 /sbin/gfs_controld
21831 ?        Ssl    0:00 clvmd -T20


[root vserver1 ~]# clustat
Member Status: Quorate

  Member Name                        ID   Status
  ------ ----                        ---- ------
  vserver1.teste.br                    1 Online, Local, rgmanager
  vserver2.teste.br                    2 Offline

  Service Name         Owner (Last)                   State
  ------- ----         ----- ------                   -----
  service:teste        (none)                         stopped

[root vserver1 ~]# cman_tool services
type             level name       id       state
fence            0     default    00010001 JOIN_START_WAIT
[1]
dlm              1     clvmd      00020001 none
[1]
dlm              1     rgmanager  00030001 none
[1]

My cluster.conf:

<?xml version="1.0" ?>
<cluster alias="cluster1" config_version="18" name="cluster1">
        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="vserver1.uniube.br" nodeid="1" votes="1">
                        <fence>
                                <method name="1"/>
                        </fence>
                </clusternode>
                <clusternode name="vserver2.uniube.br" nodeid="2" votes="1">
                        <fence/>
                </clusternode>
        </clusternodes>
        <cman expected_votes="1" two_node="1"/>
        <fencedevices/>
        <rm>
                <failoverdomains>
                        <failoverdomain name="gfsaluno" ordered="1" restricted="0">
                                <failoverdomainnode name="vserver1.uniube.br" priority="1"/>
                                <failoverdomainnode name="vserver2.uniube.br" priority="2"/>
                        </failoverdomain>
                </failoverdomains>
                <resources>
                        <clusterfs device="/dev/VGALUNO/LVAluno" force_unmount="0" fsid="63078" fstype="gfs" mountpoint="/storage/aluno" name="gfsaluno" options=""/>
                </resources>
                <service autostart="1" domain="gfsaluno" name="teste">
                        <clusterfs ref="gfsaluno"/>
                </service>
        </rm>
</cluster>

The service "teste" don't start.

[root vserver1 cluster]# mount -t gfs /dev/VGALUNO/LVAluno /storage/aluno/
/sbin/mount.gfs: node not a member of the default fence domain
/sbin/mount.gfs: error mounting lockproto lock_dlm

[root vserver1 cluster]# lsmod | grep dlm
lock_dlm               56009  1
gfs2                  522861  1 lock_dlm
dlm                   153185  13 lock_dlm
configfs               62301  2 dlm


------------------------------
Marcos Ferreira da Silva
Digital Tecnologia
Uberlandia-MG
(34) 9154-0150 / 3226-2534

-------- Mensagem Original --------
> De: Lon Hohberger <lhh redhat com>
> Enviado: terça-feira, 5 de fevereiro de 2008 17:55
> Para: marcos digitaltecnologia info, linux clustering <linux-cluster redhat com>
> Assunto: SPAM-LOW:  Re: [Linux-cluster] Sharing GFS Partition
> 
> On Tue, 2008-02-05 at 14:42 -0500, Marcos Ferreira da Silva wrote:
> > How could I share a partition in a storage with tow nodes running a service?
> > 
> > I create a partition and use mkfs
> >  mkfs.gfs -r2048 -p lock_dlm -t cluster1:gfsaluno -j 8 /dev/VGALUNO/LVAluno
> > 
> >  mount -t gfs /dev/VGALUNO/LVAluno /storage/aluno/
> > 
> > /sbin/mount.gfs: node not a member of the default fence domain
> > /sbin/mount.gfs: error mounting lockproto lock_dlm
> > 
> 
> chkconfig --level 2345 fenced on
> 
> (for starters). You *must* have fencing.
> 
> To make two services share it:
> 
>   <resources>
>     <clusterfs ... name="mygfs" />
>   </resources>
>   <service name="foo">
>     <clusterfs ref="mygfs"/>
>   </service>
>   <service name="bar">
>     <clusterfs ref="mygfs"/>
>   </service>
> 
> -- Lon 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]