Can not suspend VE with nfs mounts - even with bind mounts to HN
Since checkpointing does not work then there are nfs mounts inside VE, I've mounted the nfs partition in HN and bind mouted it in VE. root> cat /etc/vz/conf/102.mount #!/bin/bash mount -n --bind /users/staff /vz/root/102/users/staff exit ${?} Still gives the error: root> vzctl chkpnt 102 --suspend Setting up checkpoint... suspend... Can not suspend VE: Invalid argument unsupported fs type nfs Checkpointing failed The nfs mount is not listed in HN mtab, but is listed in VE102 mtab. And is listed both on HN & VE102 /proc/mounts. I've tried to remove the nfs mount from VE102 mtab but it did not help. So it looks like there is no way to checkpoint or migrate a VE which acts like an nfs client. Or should it still work with bind mounts?
Re: Can not suspend VE with nfs mounts - even with bind mounts to HN
Currently nfs is not supported by checkpointing. Moreover IMHO any external mounts prevents online migration. To migrate this VE you can umount nfs partiotion, migrate it to target node and then mount nfs again. thank you, Vasily Averin
mount -n mounts partition without writing into /etc/mtab. All actual mounts are visible via /proc/mounts file
vaverin wrote on Wed, 21 November 2007 10:33 Currently nfs is not supported by checkpointing. Moreover IMHO any external mounts prevents online migration. But In my previous post where i wrote what i have problem checkpointing a VE with internal only mounts, i was suggested to use bind mounts to solve the problem http://forum.openvz.org/index.php?t=tree&th=4251&mid =21887&&rev=&reveal= Quote: To migrate this VE you can umount nfs partiotion, migrate it to target node and then mount nfs again. And if there are processes accessing the nfs mounted fs, i would not want to stop them too, since it would be almost the same as complete shut down of VE, and it's not really live migration anymore. NFS is a very commonly used feature, is there a chance that NFS checkpointing implementation will get a high priority in the openvz TODO list? Thanks Alex
Hi Alex, thank you for link to old thread. Unfortunately Andrey Mirkin is on leave now and will be accessible on the next week. Let's wait his return, he should know more than me. thank you, Vasily Averin
Hello! Can you please specify what kernel version you use.
Hello! Can you please try attached patch. With this patch you should be able to migrate a VE with bind-mounted nfs partition.
Sorry for a delayed reply , i was overwhelmed with other stuff with the patch applied and bind mounts the suspend and live migration work ok. Will this patch be applied to the official openvz patch set? Any news with implementing support for native nfs mount suspend? Thanks Alex
Hello, I have suggested this patch just like a quick hack. I will try to find better sollution, which can be included in official openvz kernel. We plan to implement native NFS support in online migration, but right now I can't tell when it will be implemented.