Quote:
Originally Posted by blason Ok, here you go. Well at first I tried everything at one go by following article poseted on other site and I messed up the entire stuff hence I decided to follow one by one approach.
Here are my files
*************
[root@mail1 ~]# fdisk -l
Disk /dev/sdb: 10.7 GB, 10737418240 bytes
64 heads, 32 sectors/track, 10240 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 10240 10485744 83 Linux
********************
********
The issue right now I see is both the peers are detecting each other I am not able to mount the drive /dev/drbd0 /opt on other secondary box [root@mail1 ~]# mount -t ext3 /dev/drbd0 /opt/
[root@mail1 ~]#
***** [root@mail2 ~]# mount -t ext3 /dev/drbd0 /opt/
mount: block device /dev/drbd0 is write-protected, mounting read-only
mount: Wrong medium type
What could be the issue? |
It seems that you have wrong setup on your DRBD disk. What is the contents of /dev/sdb1 and does this partition already mounted on some folder elsewhere?
This is an example of my partition for DRBD :
Quote:
Disk /dev/sdc: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
|
As you'll see, Disk /dev/sdc states that it doesn't contain a valid partition table because the partition will be take over by drbd setup.
From your /etc/drbd.conf, disk /dev/sdb was configured for drbd disk. If this is true, you should not make any partition on it.
My Suggestion :
1. Modify /etc/drbd.conf (on both nodes) and change the following line :
to :
2. Backup a mounted disk of /dev/sdb1 if you have important data on it
3. Unmounting /dev/sdb1 on both nodes
4. Re-create drbd meta data disk on both nodes :
Code:
drbdadm create-md r0
service drbd start
service drbd status
5. Run the following command on first node to become a primary node :
Code:
drbdsetup /dev/drbd0 primary --overwrite-data-of-peer
service drbd status
Paste the results of command no 4 & 5 and let's discuss the rest setup after completing the above step.