[Pacemaker] cannot create gfs2 filesystem : can't open device /dev/drbd1: Read-only file system

Soni Maula Harriz soni.harriz at sangkuriang.co.id
Wed Oct 17 23:48:17 EDT 2012


On Wed, Oct 17, 2012 at 7:56 PM, Digimer <lists at alteeve.ca> wrote:

> Please paste your cluster.conf file


<?xml version="1.0"?>
<cluster config_version="1" name="cluster">
  <logging debug="off"/>
  <clusternodes>
    <clusternode name="cluster1" nodeid="1">
      <fence>
    <method name="pcmk-redirect">
          <device name="pcmk" port="cluster1"/>
        </method>
      </fence>
    </clusternode>
    <clusternode name="cluster2" nodeid="2">
      <fence>
    <method name="pcmk-redirect">
          <device name="pcmk" port="cluster2"/>
        </method>
      </fence>
    </clusternode>
  </clusternodes>
  <fencedevices>
    <fencedevice name="pcmk" agent="fence_pcmk"/>
  </fencedevices>
</cluster>



> and the output from 'cat
> /proc/drbd'.


[root at cluster1 ~]# cat /proc/drbd
version: 8.3.13 (api:88/proto:86-96)
GIT-hash: 83ca112086600faacab2f157bc5a9324f7bd7f77 build by dag at Build64R6,
2012-09-04 12:06:10

 1: cs:Connected ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
    ns:0 nr:401408 dw:401408 dr:5620 al:0 bm:50 lo:0 pe:0 ua:0 ap:0 ep:1
wo:b oos:0



> Also, did you configure and test stonith/fencing?
>

i didn't, didn't arrive at that part yet :)


>
> digimer
>
> On 10/17/2012 03:42 AM, Soni Maula Harriz wrote:
> > ok, it's done. i can now create gfs2 filesystem in cluster2, by following
> > configuration here www.neko-it.com/data-protection-2087.html
> >
> > On Wed, Oct 17, 2012 at 2:02 PM, Soni Maula Harriz <
> > soni.harriz at sangkuriang.co.id> wrote:
> >
> >> i succesfully created gfs2 filesystem on cluster1, the failure only
> happen
> >> to cluster2
> >>
> >>
> >> On Wed, Oct 17, 2012 at 2:00 PM, Soni Maula Harriz <
> >> soni.harriz at sangkuriang.co.id> wrote:
> >>
> >>> ok, the split brain condition has been resolved.
> >>>
> >>> On Wed, Oct 17, 2012 at 12:16 PM, Digimer <lists at alteeve.ca> wrote:
> >>>
> >>>> On 10/17/2012 12:58 AM, Soni Maula Harriz wrote:
> >>>>> and when i restart drbd service on node 2, i found this message :
> >>>>> [root at cluster2 ~]# service drbd restart
> >>>>> Stopping all DRBD resources: .
> >>>>> Starting DRBD resources: [ d(wwwdata) s(wwwdata) n(wwwdata)
> ]..........
> >>>>> ***************************************************************
> >>>>>  DRBD's startup script waits for the peer node(s) to appear.
> >>>>>  - In case this node was already a degraded cluster before the
> >>>>>    reboot the timeout is 0 seconds. [degr-wfc-timeout]
> >>>>>  - If the peer was available before the reboot the timeout will
> >>>>>    expire after 0 seconds. [wfc-timeout]
> >>>>>    (These values are for resource 'wwwdata'; 0 sec -> wait forever)
> >>>>>
> >>>>> and this is the drbd config :
> >>>>> include "drbd.d/*.res";
> >>>>> global {
> >>>>>  usage-count yes;
> >>>>> }
> >>>>> common {
> >>>>>  protocol C;
> >>>>> }
> >>>>> resource wwwdata {
> >>>>>  meta-disk internal;
> >>>>>  device  /dev/drbd1;
> >>>>>  syncer {
> >>>>>   verify-alg sha1;
> >>>>>  }
> >>>>>  net {
> >>>>>   allow-two-primaries;
> >>>>>  }
> >>>>>  on cluster1 {
> >>>>>   disk   /dev/vg_cluster1/drbd-demo;
> >>>>>   address  xxx.xxx.xxx.213:7789;
> >>>>>  }
> >>>>>  on cluster2 {
> >>>>>   disk   /dev/vg_cluster2/drbd-demo;
> >>>>>   address  xxx.xxx.xxx.235:7789;
> >>>>>  }
> >>>>> }
> >>>>
> >>>> Something is blocking your connection between the nodes' 'cluster1'
> and
> >>>> 'cluster2' on the given IPs/Ports. Are you running a firewall? Can you
> >>>> telnet to the opposing node's ip:port?
> >>>>
> >>>>
> >>> i have disabled the firewall (service iptables stop) on both nodes, and
> >>> the drbd driver has been loaded. but i still cannot do the telnet on
> port
> >>> does it related to cman that i have configured and ran ?
> >>> and still i cannot create the gfs2 filesystem, message 'can't open
> device
> >>> /dev/drbd1: Read-only file system' still appear.
> >>>
> >>>
> >>>>  digimer
> >>>>
> >>>> --
> >>>> Digimer
> >>>> Papers and Projects: https://alteeve.ca/w/
> >>>> What if the cure for cancer is trapped in the mind of a person without
> >>>> access to education?
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>> Best Regards,
> >>>
> >>> Soni Maula Harriz
> >>> Database Administrator
> >>> PT. Data Aksara Sangkuriang
> >>>
> >>>
> >>
> >>
> >> --
> >> Best Regards,
> >>
> >> Soni Maula Harriz
> >> Database Administrator
> >> PT. Data Aksara Sangkuriang
> >>
> >>
> >
> >
>
>
> --
> Digimer
> Papers and Projects: https://alteeve.ca/w/
> What if the cure for cancer is trapped in the mind of a person without
> access to education?
>



-- 
Best Regards,

Soni Maula Harriz
Database Administrator
PT. Data Aksara Sangkuriang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20121018/ede919a5/attachment-0003.html>


More information about the Pacemaker mailing list