Cannot mount GFS2 filesystem on Raspberry Pi with DRBD












0















I've been trying to setup a pair of Raspberry Pis with DRBD+GFS2, in a dual-primary configuration.



I've successfully got working:




  • all packages installed

  • DRBD userland packages built from source and working

  • the 2 systems syncing an r0 device on /dev/drbd0


At this point I am having issues with getting the /dev/drbd0 device to mount on my /data dir. I get the error:



# mount -t gfs2 -o noatime,nodiratime,noquota /dev/drbd0 /data
mount: mount(2) failed: /data: No such file or directory


When I check my dmesg, I can see an error related to the lock_dlm protocol:



# dmesg | grep gfs
[159886.958163] gfs2: GFS2 installed
[159886.973908] gfs2: can't find protocol lock_dlm
[159925.272982] gfs2: can't find protocol lock_dlm
[160108.204231] gfs2: can't find protocol lock_dlm
[160139.555143] gfs2: can't find protocol lock_dlm
[161752.501161] gfs2: can't find protocol lock_dlm


The lock_dlm protocol is default when formatting GFS2:



mkfs.gfs2 -p lock_dlm -j 2 -t nfs:export /dev/drbd0


I've been doing some research on this, and as far as I can tell, the latest Rasbian kernel on the Raspberry Pi I'm using should support this and have the options enabled, notably CONFIG_GFS2_FS_LOCKING_DLM.



I'm having trouble verifying this, I'm not sure where to check.



I am not using custom compiled a kernel at this moment.



Can anyone advise how I can troubleshoot this?










share|improve this question























  • I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

    – Daniel B
    Jan 13 at 17:38











  • I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

    – Kareem
    Jan 13 at 19:30











  • I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

    – Daniel B
    Jan 13 at 19:33













  • I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

    – Kareem
    Jan 14 at 4:10













  • Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

    – Kareem
    Jan 18 at 15:46


















0















I've been trying to setup a pair of Raspberry Pis with DRBD+GFS2, in a dual-primary configuration.



I've successfully got working:




  • all packages installed

  • DRBD userland packages built from source and working

  • the 2 systems syncing an r0 device on /dev/drbd0


At this point I am having issues with getting the /dev/drbd0 device to mount on my /data dir. I get the error:



# mount -t gfs2 -o noatime,nodiratime,noquota /dev/drbd0 /data
mount: mount(2) failed: /data: No such file or directory


When I check my dmesg, I can see an error related to the lock_dlm protocol:



# dmesg | grep gfs
[159886.958163] gfs2: GFS2 installed
[159886.973908] gfs2: can't find protocol lock_dlm
[159925.272982] gfs2: can't find protocol lock_dlm
[160108.204231] gfs2: can't find protocol lock_dlm
[160139.555143] gfs2: can't find protocol lock_dlm
[161752.501161] gfs2: can't find protocol lock_dlm


The lock_dlm protocol is default when formatting GFS2:



mkfs.gfs2 -p lock_dlm -j 2 -t nfs:export /dev/drbd0


I've been doing some research on this, and as far as I can tell, the latest Rasbian kernel on the Raspberry Pi I'm using should support this and have the options enabled, notably CONFIG_GFS2_FS_LOCKING_DLM.



I'm having trouble verifying this, I'm not sure where to check.



I am not using custom compiled a kernel at this moment.



Can anyone advise how I can troubleshoot this?










share|improve this question























  • I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

    – Daniel B
    Jan 13 at 17:38











  • I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

    – Kareem
    Jan 13 at 19:30











  • I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

    – Daniel B
    Jan 13 at 19:33













  • I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

    – Kareem
    Jan 14 at 4:10













  • Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

    – Kareem
    Jan 18 at 15:46
















0












0








0








I've been trying to setup a pair of Raspberry Pis with DRBD+GFS2, in a dual-primary configuration.



I've successfully got working:




  • all packages installed

  • DRBD userland packages built from source and working

  • the 2 systems syncing an r0 device on /dev/drbd0


At this point I am having issues with getting the /dev/drbd0 device to mount on my /data dir. I get the error:



# mount -t gfs2 -o noatime,nodiratime,noquota /dev/drbd0 /data
mount: mount(2) failed: /data: No such file or directory


When I check my dmesg, I can see an error related to the lock_dlm protocol:



# dmesg | grep gfs
[159886.958163] gfs2: GFS2 installed
[159886.973908] gfs2: can't find protocol lock_dlm
[159925.272982] gfs2: can't find protocol lock_dlm
[160108.204231] gfs2: can't find protocol lock_dlm
[160139.555143] gfs2: can't find protocol lock_dlm
[161752.501161] gfs2: can't find protocol lock_dlm


The lock_dlm protocol is default when formatting GFS2:



mkfs.gfs2 -p lock_dlm -j 2 -t nfs:export /dev/drbd0


I've been doing some research on this, and as far as I can tell, the latest Rasbian kernel on the Raspberry Pi I'm using should support this and have the options enabled, notably CONFIG_GFS2_FS_LOCKING_DLM.



I'm having trouble verifying this, I'm not sure where to check.



I am not using custom compiled a kernel at this moment.



Can anyone advise how I can troubleshoot this?










share|improve this question














I've been trying to setup a pair of Raspberry Pis with DRBD+GFS2, in a dual-primary configuration.



I've successfully got working:




  • all packages installed

  • DRBD userland packages built from source and working

  • the 2 systems syncing an r0 device on /dev/drbd0


At this point I am having issues with getting the /dev/drbd0 device to mount on my /data dir. I get the error:



# mount -t gfs2 -o noatime,nodiratime,noquota /dev/drbd0 /data
mount: mount(2) failed: /data: No such file or directory


When I check my dmesg, I can see an error related to the lock_dlm protocol:



# dmesg | grep gfs
[159886.958163] gfs2: GFS2 installed
[159886.973908] gfs2: can't find protocol lock_dlm
[159925.272982] gfs2: can't find protocol lock_dlm
[160108.204231] gfs2: can't find protocol lock_dlm
[160139.555143] gfs2: can't find protocol lock_dlm
[161752.501161] gfs2: can't find protocol lock_dlm


The lock_dlm protocol is default when formatting GFS2:



mkfs.gfs2 -p lock_dlm -j 2 -t nfs:export /dev/drbd0


I've been doing some research on this, and as far as I can tell, the latest Rasbian kernel on the Raspberry Pi I'm using should support this and have the options enabled, notably CONFIG_GFS2_FS_LOCKING_DLM.



I'm having trouble verifying this, I'm not sure where to check.



I am not using custom compiled a kernel at this moment.



Can anyone advise how I can troubleshoot this?







nas raspberry-pi storage raspbian






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 13 at 17:04









KareemKareem

637




637













  • I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

    – Daniel B
    Jan 13 at 17:38











  • I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

    – Kareem
    Jan 13 at 19:30











  • I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

    – Daniel B
    Jan 13 at 19:33













  • I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

    – Kareem
    Jan 14 at 4:10













  • Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

    – Kareem
    Jan 18 at 15:46





















  • I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

    – Daniel B
    Jan 13 at 17:38











  • I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

    – Kareem
    Jan 13 at 19:30











  • I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

    – Daniel B
    Jan 13 at 19:33













  • I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

    – Kareem
    Jan 14 at 4:10













  • Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

    – Kareem
    Jan 18 at 15:46



















I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

– Daniel B
Jan 13 at 17:38





I’m not familiar with GFS2, but I found a module called dlm that’s not automatically loaded with gfs2. Maybe that’s required somehow?

– Daniel B
Jan 13 at 17:38













I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

– Kareem
Jan 13 at 19:30





I found that there is a package called dlm-controld but I cannot find on the Pis I've setup any package called dlm. It's also not listed on the debian package dependency list: packages.debian.org/jessie/gfs2-utils Any idea what this dlm package might mean? I'm trying to work this out, but I think it has something to do with kernel support.

– Kareem
Jan 13 at 19:30













I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

– Daniel B
Jan 13 at 19:33







I’m not referring to a package but a kernel module, present in /lib/modules on Raspbian. You can load it using modprobe.

– Daniel B
Jan 13 at 19:33















I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

– Kareem
Jan 14 at 4:10







I spent some time working on it, and got DLM running, but experienced the same issue. I managed to get everything working (Pacemaker, DLM, Corosync). When I try to mount, I noticed that in the dmesg the error still [ 3995.934192] gfs2: can't find protocol lock_dlm. Using journalctl I found another message raspberrypi4.local.lan kernel: gfs2: can't find protocol lock_dlm. Seems that it might still be a kernel issue that I need to track down and verify. If anyone knows anything about how to verify, I would appreciate any help.

– Kareem
Jan 14 at 4:10















Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

– Kareem
Jan 18 at 15:46







Turns out, its almost definitely something to do with CONFIG_GFS2_FS_LOCKING_DLM I found a question at stackexchange that solved the same issue by recompiling the kernel: unix.stackexchange.com/questions/439311/… However, they failed to provide any details of how they did this smoothly. I have tried, and its been quite frustrating. If anyone knows how I can move forward with this, I'd really appreciate the help. :)

– Kareem
Jan 18 at 15:46












0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393826%2fcannot-mount-gfs2-filesystem-on-raspberry-pi-with-drbd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393826%2fcannot-mount-gfs2-filesystem-on-raspberry-pi-with-drbd%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido