[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 04:58:06 UTC 2012


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;
 }
}


On Wed, Oct 17, 2012 at 11:37 AM, Soni Maula Harriz <
soni.harriz at sangkuriang.co.id> wrote:

> hello all,
> i'm a newbie in clustering
> i've been following "cluster from scratch" tutorial, edition 5. everything
> goes well until drbd section.
> but, when i step ahead into "conversion to active/active", i follow
> "cluster from scratch" tutorial, edition 3 because i use 2 centos 6.3
> servers.
> and there is a problem :
> when i ran
> 'mkfs.gfs2 -p lock_dlm -j 2 -t cluster:web /dev/drbd1'
> this message appear 'can't open device /dev/drbd1: Read-only file system'
>
> in node 1 :
> [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:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r-----
>     ns:0 nr:0 dw:265816 dr:267548 al:97 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b
> oos:265484
>
>
> in node 2 :
> [root at cluster2 ~]# 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:StandAlone ro:Secondary/Unknown ds:UpToDate/DUnknown   r-----
>     ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:4
>
> this is the crm status
> [root at cluster1 ~]# crm status
> ============
> Last updated: Wed Oct 17 11:32:38 2012
> Last change: Wed Oct 17 10:08:21 2012 via crm_resource on cluster1
> Stack: cman
> Current DC: cluster1 - partition with quorum
> Version: 1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14
> 2 Nodes configured, 2 expected votes
> 5 Resources configured.
> ============
>
> Online: [ cluster1 cluster2 ]
>
>  ClusterIP    (ocf::heartbeat:IPaddr2):    Started cluster1
>  Master/Slave Set: WebDataClone [WebData]
>      Masters: [ cluster1 ]
>      Slaves: [ cluster2 ]
>
> and, this is the crm configuration
> [root at cluster1 dev]# crm configure show
> node cluster1 \
>     attributes standby="off"
> node cluster2 \
>     attributes standby="off"
> primitive ClusterIP ocf:heartbeat:IPaddr2 \
>     params ip="xxx.xxx.xxx.229" cidr_netmask="32" \
>     op monitor interval="30s"
> primitive WebData ocf:linbit:drbd \
>     params drbd_resource="wwwdata" \
>     op monitor interval="60s"
> primitive WebFS ocf:heartbeat:Filesystem \
>     params device="/dev/drbd/by-res/wwwdata" directory="/var/www/html"
> fstype="ext4" \
>     meta target-role="Stopped"
> primitive WebSite ocf:heartbeat:apache \
>     params configfile="/etc/httpd/conf/httpd.conf" statusurl="
> http://localhost/server-status" \
>     op monitor interval="1min"
> ms WebDataClone WebData \
>     meta master-max="1" master-node-max="1" clone-max="2"
> clone-node-max="1" notify="true"
> location location-WebSite-cluster1-50 WebSite 50: cluster1
> colocation WebSite-with-WebFS inf: WebSite WebFS
> colocation colocation-WebSite-ClusterIP-INFINITY inf: WebSite ClusterIP
> colocation fs_on_drbd inf: WebFS WebDataClone:Master
> order WebFS-after-WebData inf: WebDataClone:promote WebFS:start
> order WebSite-after-WebFS inf: WebFS WebSite
> order order-ClusterIP-WebSite-mandatory : ClusterIP:start WebSite:start
> property $id="cib-bootstrap-options" \
>     dc-version="1.1.7-6.el6-148fccfd5985c5590cc601123c6c16e966b85d14" \
>     cluster-infrastructure="cman" \
>     expected-quorum-votes="2" \
>     stonith-enabled="false" \
>     no-quorum-policy="ignore"
> rsc_defaults $id="rsc-options" \
>     resource-stickiness="100"
> op_defaults $id="op_defaults-options" \
>     timeout="240s"
>
> i've been googling, but the solution i found can't resolve mine.
> any help would be appreciated
>
> --
> Best Regards,
>
> Soni Maula Harriz
> Database Administrator
> PT. Data Aksara Sangkuriang
>



-- 
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/20121017/c0a66f20/attachment.htm>


More information about the Pacemaker mailing list