Create NFS file share on Hyper-V Server 2016
-
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
It could be a ultra tiny Linux VM maybe. Even a Live CD with some injected script.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
-
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
Plus you can mount the vhdx file to access the data too.
-
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...
But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.
-
@dashrender said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...
But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.
Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.
That VHD will take a long time to restore as it contains so much other stuff.
Otherwise, all data would be directly on the hardware via NFS share... if I need to restore something, I would not need to restore the ENTIRE NFS share first, as it's not all in a single VHD.
If I have LinuxServer1, LinuxServer2, LinuxServer3, LinuxServer4, etc all in that VHD, I would still have to restore EVERYTHIGN to be able to make the NFS share available to restore a server from.
-
You see what I mean?
I don' twant to have to restore a 10TB VHD in order to restore a 5GB linux server that's in the NFS share inside that VHD.
-
@tim_g Why not simply have two VHD then?
One that the system boots off of, the other that contains the NFS share. You'd simply mount that drive to literally any other system, browse it, grab what you need all while working on restoring the primary system.
I think you're over complicating this. . .
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@dashrender said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...
But you're talking about mins worth of extra restore, not hours or days (in most cases) but with all kinds of added flexibility.
Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.
That VHD will take a long time to restore as it contains so much other stuff.
Otherwise, all data would be directly on the hardware via NFS share... if I need to restore something, I would not need to restore the ENTIRE NFS share first, as it's not all in a single VHD.
If I have LinuxServer1, LinuxServer2, LinuxServer3, LinuxServer4, etc all in that VHD, I would still have to restore EVERYTHIGN to be able to make the NFS share available to restore a server from.
This assumes that you don't have file level restore. So you grant yourself file level restore on bare metal, but not on the VM - why? How is this an apples to apples comparison?
Veeam for example, does backup the whole VHD, but allows file by file recovery. So you get the best of all worlds.
-
Why don't you try the LiveCD idea combined with some script? A lot of distros offer custom scripts to be executed on boot with their LiveCDs.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
Any reason not to host it from a lean VM on top of Hyper-V?
This would require the NFS share to live inside of a .VHDX.
The NFS share would be a backup repository for some things, and having to restore a .VHDX first to restore an NFS share is more time consuming and complex, and I was hoping to avoid that if possible. Otherwise, no I could create a VM to do it, I just prefer not to.
I get that it is an extra step, but a trivial one. You have to restore the data to Hyper-V regardless. If anything, restoring a single VHD is easier than having to restore an NFS directory and restoring the settings and such. I'd actually think that this logic would push you towards the VM rather than away from it.
I would rather back up some Linux server to an NFS share directly on a DAS attached to the host, rather than through a VM and into a VHD. It's twice the restores needed to get at something on the NFS share then...
Sort of, but not really. It's restoring one file instead of many. You don't backup the host, or you only do if you do this. So it is one restore either way.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.
That's really saying the same thing twice. You are restoring the one file, that's all. Yes it is large, but it is large regardless of where you put it.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
You see what I mean?
I don' twant to have to restore a 10TB VHD in order to restore a 5GB linux server that's in the NFS share inside that VHD.
I'm confused. How do you plan to get around this with your plan? Your plan has this issue the same as having the VM.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
That VHD will take a long time to restore as it contains so much other stuff.
Sure, but if the VHD doesn't take a long time to restore, then something else will take a long time to restore. One way or another, something is going to take a long time. And the best thing to take a long time is the singular VHD is our point.
-
@dustinb3403 said in Create NFS file share on Hyper-V Server 2016:
@tim_g Why not simply have two VHD then?
One that the system boots off of, the other that contains the NFS share. You'd simply mount that drive to literally any other system, browse it, grab what you need all while working on restoring the primary system.
I think you're over complicating this. . .
No, I'm not.
MD1000 is attached to a Hyper-V Server 2016 host. I want to host an NFS share on the MD1000, via "HVhost/NFSshare".
If I need to restore a server, I don't have to do anything at all. I just boot to the restore media on the LinuxServer, and point it to "HVhost/NFSshare". It's all there, no problem.
In the other scenario, I won't be able to get at the NFS share until first restoring the VHD and the VM that can run it. So if that VHD contains a TON of other data from other servers plus older backups, it's going to take a long time to restore that VHD. Then after the VHD is restored, simply mounting the VHD on something won't allow me to remotely browse the NFS share.
With a VHD file, you have to restore the whole thing to get at the NFS share inside of it. If the NFS share is on hardware, you only need to restore what you want.
-
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.
That's really saying the same thing twice. You are restoring the one file, that's all. Yes it is large, but it is large regardless of where you put it.
No the VHD is like a big box. Inside that box contains another box (the NFS share).
In a DR scenario, I'd have to restore the big box, just to be able to get at the box inside of it, which then contains the data I want.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
@scottalanmiller said in Create NFS file share on Hyper-V Server 2016:
@tim_g said in Create NFS file share on Hyper-V Server 2016:
Lets say I needed to restore something... I'd first have to restore a huge VHD and VM to make the included NFS share available. Then I would be able to restore a piece of data from that NFS share.
That's really saying the same thing twice. You are restoring the one file, that's all. Yes it is large, but it is large regardless of where you put it.
No the VHD is like a big box. Inside that box contains another box (the NFS share).
In a DR scenario, I'd have to restore the big box, just to be able to get at the box inside of it, which then contains the data I want.
Right - but in your scenario, what failed?
-
In the non-VHD scenario, i could simply just restore THAT ONE LINUX SERVER data from tape onto the NFS share, rather than first restoring that WHOLE VHD.
-
@tim_g said in Create NFS file share on Hyper-V Server 2016:
In the non-VHD scenario, i could simply just restore THAT ONE LINUX SERVER data from tape onto the NFS share, rather than first restoring that WHOLE VHD.
How can that change? That makes no sense. If you can back up Hyper-V that way, then you can back up Linux that way.
Sing the song "Anything you can do with Hyper-V, I can do with Linux better..."
What applies to one, applies to the other.