[DRBD-user] mkfs /dev/drbd0 persmission denied

Kirk Waingrow wkrik at yahoo.com
Thu May 25 22:03:12 CEST 2006

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Originally I made the filesystem on the raw devide /dev/sda5 and it has been flakey. I could write about 10 megs and then the file system would turn into a read-only state. So I read here that the filesystem has to be made on /dev/drbd0.

Once I start drbd and it creates /dev/drbd0, I am unable to make a filesystem on it. It errors out with "Could not stat /dev/drbd0 --- Permission denied"

Any help is greatly appreciated!!!!!


[root at fcha1 /]# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
.
[root at fcha1 /]# drbdadm primary start
[root at fcha1 /]# /etc/init.d/drbd status
drbd driver loaded OK; device status:
version: 0.7.18 (api:78/proto:74)
SVN Revision: 2176 build by root at fcha1, 2006-05-24 13:46:08
 0: cs:Connected st:Primary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0

[root at fcha1 /]# ls -al /dev/drbd0
brw-r-----  1 root disk 147, 0 May 25 12:59 /dev/drbd0

[root at fcha1 /]# mkfs -t ext3 /dev/drbd0
mke2fs 1.37 (21-Mar-2005)
Could not stat /dev/drbd0 --- Permission denied

[root at fcha1 /]# dd if=/dev/zero of=/dev/drbd0 bs=1024 count=2
2+0 records in
2+0 records out
[root at fcha1 /]#

I do have both server instances running under vmware. could drbd be getting confused.

DRBD version: Version: 0.7.18
OS: Fedora Core 4
Server Type: VMware

Config File:
---------------------
resource r1 {
   protocol C;
   incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
   startup {
     degr-wfc-timeout 120;    # 2 minutes.
   }

   disk {
     on-io-error   detach;
   }

   net {
   }

   syncer {
     rate 100M;
     group 1;
     al-extents 257;
   }

   on fcha1 {
     device     /dev/drbd0;
     disk       /dev/sda5;
     address    192.168.100.1:7788;
     meta-disk  internal;
   }

   on fcha2 {
     device    /dev/drbd0;
     disk      /dev/sda5;
     address   192.168.100.2:7788;
     meta-disk internal;
   }
 }

		
---------------------------------
How low will we go? Check out Yahoo! Messenger�s low  PC-to-Phone call rates.
		
---------------------------------
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060525/20c56103/attachment.htm>


More information about the drbd-user mailing list