[DRBD-user] drbd secondary all problem

cosmih cosmih at gmail.com
Wed Jul 4 10:39:38 CEST 2007

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


hi,


i try to change a drbd partition in the secondary state and make the other
one in primary mode
but i can change the state from primary to secondary

the drbd0 was formated with reiserfs beacause on this partition is alot of
small files and a lot od dirs and subdirs

the drbd0 disk was unmount and lsof output is shows that isn't any process
that use drbd

please help


drbdadm secondary all
---------------------------------
State change failed: (-12) Device is held open by someone
Command 'drbdsetup /dev/drbd0 secondary' terminated with exit code 11
drbdsetup exited with code 11

cat /proc/drbd
---------------------
version: 8.0.4 (api:86/proto:86)
SVN Revision: 2947 build by portage at olanda01, 2007-07-03 12:14:14
 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:2040996 nr:0 dw:988324 dr:3351781 al:530 bm:258 lo:0 pe:0 ua:0 ap:0
        resync: used:0/31 hits:65663 misses:129 starving:0 dirty:0
changed:129
        act_log: used:0/257 hits:246551 misses:569 starving:0 dirty:39
changed:530


lsof | grep drbd
----------------------
drbd0_wor  5308     root  cwd       DIR        8,2    4096       2 /
drbd0_wor  5308     root  rtd       DIR        8,2    4096       2 /
drbd0_wor  5308     root  txt   unknown
/proc/5308/exe
drbd0_rec  5326     root  cwd       DIR        8,2    4096       2 /
drbd0_rec  5326     root  rtd       DIR        8,2    4096       2 /
drbd0_rec  5326     root  txt   unknown
/proc/5326/exe
drbd0_ase  5899     root  cwd       DIR        8,2    4096       2 /
drbd0_ase  5899     root  rtd       DIR        8,2    4096       2 /
drbd0_ase  5899     root  txt   unknown
/proc/5899/exe

ps aux | grep 5308
---------------------------
root      5308  0.0  0.0      0     0 ?        S    Jul03   0:04
[drbd0_worker]
ps aux | grep 5326
---------------------------
root      5326  0.0  0.0      0     0 ?        S    Jul03   0:04
[drbd0_receiver]
ps aux | grep 5899
---------------------------
root      5899  0.0  0.0      0     0 ?        S    Jul03   0:01
[drbd0_asender]

from dmesg
-----------------
drbd0: State change failed: Device is held open by someone
drbd0:   state = { cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0:  wanted = { cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0: State change failed: Device is held open by someone
drbd0:   state = { cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0:  wanted = { cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate
r--- }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20070704/a30e40dd/attachment.htm>


More information about the drbd-user mailing list