AW: [DRBD-user] ERROR: Module drbd is in use

Schmidt, Florian florian.schmidt at altroconsult.de
Mon Mar 10 13:03:13 CET 2008

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


> -----Ursprüngliche Nachricht-----
> Von: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-
> bounces at lists.linbit.com] Im Auftrag von Tom Brown
> Gesendet: Freitag, 7. März 2008 19:57
> An: drbd-user at lists.linbit.com
> Betreff: [DRBD-user] ERROR: Module drbd is in use
> 
> Hi,
> 
> I am experiencing an inconsistent error when I run
> 
> /etc/init.d/drbd stop
> 
> Here's what I see:
> 
> tbrown at fs01:~$ sudo /etc/init.d/drbd stop
> Stopping all DRBD resourcesERROR: Module drbd is in use
> .
> 
> Then the drbd module is left loaded. However, I can run

I do not see any answers yet, so maybe this helps:
Maybe you tried to stop DRBD while the partition was still mounted?
So try to unmount it first and then stop drbd via /etc/init.d/drbd stop.

Regards
Florian


> 
> sudo rmmod drbd
> 
> just after that and it unloads the module without a problem.
> 
> I decided I could work around this problem by modifying the drbd init
> script a little. I just have the script retry unloading the module if it
> fails initially. It retries in a loop until it succeeds or fails five
> times. I've only seen it fail up to two times on a given 'stop' command.
> 
> I am concerned that this may be indicative of a bigger problem. I saw
> one post from 12/18/2007 that had the same error, but I didn't see any
> solutions. Any ideas on what the problem is?
> 
> Thanks,
> Tom
> 
> Hardware: 2 Dell PowerEdge SC1435's
> OS: Debian Etch 4.0r3
> Kernel: vanilla kernel 2.6.24.3
> DRBD: 8.2.5
> 
> drbd.conf:
> global {
>     usage-count yes;
> }
> 
> common {
>   syncer { rate 115M; }
> }
> 
> resource r0 {
>   protocol C;
>   handlers {
>     pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
>     pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
>     local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
>     outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";
>   }
>   startup {
>     wfc-timeout  20;
>     degr-wfc-timeout 120;
>   }
>   disk {
>     on-io-error   detach;
>   }
>   net {
>     after-sb-0pri disconnect;
>     after-sb-1pri disconnect;
>     after-sb-2pri disconnect;
>     rr-conflict disconnect;
>   }
>   syncer {
>     al-extents 257;
>   }
>   on fs01 {
>     device     /dev/drbd0;
>     disk       /dev/sdb1;
>     address    192.168.1.3:7788;
>     meta-disk  /dev/sda2 [0];
>   }
>   on fs02 {
>     device     /dev/drbd0;
>     disk       /dev/sdb1;
>     address    192.168.1.4:7788;
>     meta-disk  /dev/sda2 [0];
>   }
> }
> 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user



More information about the drbd-user mailing list