Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting of NFS share fails at the time of recovering Ubuntu_12.04_x64 VM to physical system #463

Closed
pramodbiradar89 opened this issue Sep 22, 2014 · 5 comments
Assignees
Milestone

Comments

@pramodbiradar89
Copy link

Steps:
1.Took backup of VM through rear by using NFS share.
2.created boot-able USB using iso.
3.On physical machine started recovery through rear.
4.on rear shell got error "Message: Mount command 'mount -v -t nfs -o rw,noatime 10.31.199.183:/NFS_DATA /tmp/rear.BTQ14pIsHuKqdsy/outputfs' failed."

  1. After making changes in /usr/share/rear/lib/global-functions.sh it got worked.
@pramodbiradar89
Copy link
Author

Attached two files before & after

https://gist.github.com/pramodbiradar89/9b6501a4c7a94edf1915

Please find the difference in code.& after that you can check in .

Please let me know anything more details needs to be shared,

@gdha gdha self-assigned this Sep 22, 2014
@gdha
Copy link
Member

gdha commented Sep 22, 2014

So basically the diff is:

<     local defaultoptions="rw,noatime,nolock"
---
>     local defaultoptions="rw,noatime"

the nolock is probably required for you as the NFS server is version 4, right? I think it would be better if we would foresee NFSv4 capabilities in rear itself instead of sating by default NFSv3 or v2.
We had already similar issues around this topic (issue #158)

@pramodbiradar89
Copy link
Author

@gdha Yes.NFS version is 4.

Also when tried to recover virtual machine which was having static ip on to physical machine having DHCP domain.

So here the issue o observed is:

1.when i started recovery , rear shell generally dont assigns IP to machine or it will take the VM machine IP as it is.
2 Now here it should get automatic DHCP IP through DHCP server where it does in other OS platform like RHEL .

3.But in case of Ubuntu12.04_x64 ,it doesn't take IP.

So to tackle this i executed dhclient interface (still machine dint get DHCP IP) &
then tried to assign IP by using ifconfig interface
then it got assigned a DHCP IP to that machine so i think here REAR is failing to take DHCP IP automatically.

Please update your comments.

@gdha
Copy link
Member

gdha commented Dec 2, 2014

NFSv4 support should be added in rear-1.18

@gdha
Copy link
Member

gdha commented Feb 9, 2016

See also http://pikachu.3ti.be/pipermail/rear-users/2016-February/003290.html for the dhclient issue

@gdha gdha closed this as completed Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants