Cannot create gfs2 filesystem : can't open device /dev/drbd1: Read-only file system
Hi all,
I'm following Cluster from scratch edition 5 in order to create 2 node cluster, everything was pretty fine upto creating gfs2 file system when I was trying to execute "ssh pcmk-2 -- mkfs.gfs2 -p lock_dlm -j 2 -t mycluster:web /dev/drbd1" command I'm getting the error massage "/dev/drbd1: Read-only file system"
please help me with this
sample config files
corosync.conf
totem {
version: 2
# cypto_cipher and crypto_hash: Used for mutual node authentication.
# If you choose to enable this, then do remember to create a shared
# secret with "corosync-keygen".
crypto_cipher: none
crypto_hash: none
cluster_name: mycluster
crm_mon -1
Last updated: Sat Oct 20 01:42:13 2012
Last change: Sat Oct 20 01:14:13 2012 via cibadmin on pcmk-1
Stack: corosync
Current DC: pcmk-1 (1702537408) - partition with quorum
Version: 1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff
2 Nodes configured, unknown expected votes
5 Resources configured.
============
Online: [ pcmk-1 pcmk-2 ]
ClusterIP (ocf::heartbeat:IPaddr2): Started pcmk-1
Master/Slave Set: WebDataClone [WebData]
Masters: [ pcmk-1 ]
Slaves: [ pcmk-2 ]
drbd.conf
#include "drbd.d/global_common.conf";
#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 pcmk-1 {
disk /dev/vg_pcmk-1/drbd-demo;
address 192.168.122.101:7789;
}
on pcmk-2 {
disk /dev/vg_pcmk-2/drbd-demo;
address 192.168.122.102:7789;
}
}
and please tell me the location of "cluster.conf"
|