ONTAP Discussions

Backup and Restore CIFS

tvmo_tvmo
6,575 Views

Hello,

I have a WMware virtual NT 4.0 CIFS file server (vSphere). The OS and CIFS data are sitting on VMDK files within NFS datastores on a FAS3140c.

As I understand it I can't present iSCSI to the NT 4.0 VM. How can I effectivly backup the CIFS file data and provide a single file restore when required?

Thanks

13 REPLIES 13

reinoud7
6,554 Views

Use your netapp filer as a file server is probably not the answer that you want 🙂

You can just make netapp snapshots of your netapp volume and then use the disk mount utility from VMWare to mount the VMDK in a specific snapshot. Than you can copy one file from the snapshot to the current cifs share. This is not a nice solution but it should be working.

Maybe someone else has a beter solution?

Other solution is that you use the filer as your fileserver 🙂

Reinoud

Darkstar
6,554 Views

Seriously, why not putt all your CIFS file data directly onto the filer instead of a LUN? You get flexible volume sizes and snapshots as free bonus, and you can finally retire that NT4 server 😉

-Michael

tvmo_tvmo
6,554 Views

I appreciate what you are saying, but CIFS has to come off the NetApps. I need the Ethernet ports to dedicate to NFS and iSCSI.

radek_kubka
6,554 Views

Hmm, I can only second to what other guys already said - creating file shares directly on the filer makes perfect sense, this is what NetApp boxes have been built for (amongst other things).

I appreciate you want to separate iSCSI & NFS from CIFS though. How many ports do you have to play with? Just four? If that's the case, then I'd consider adding NICs. If you have eight, then I'd run all IP storage (i.e. iSCSI + NFS if used for provisioning storage to ESX or Oracle) on half of them & use the other four for file sharing (i.e. CIFS & NFS if not used for ESX / Oracle).

Regards,

Radek

shane_bradley
6,554 Views

The thing is you can run iscsi/nfs and CIFS all over the same NIC's if you wanted to split up your traffic the you could use vlans?

The traffic is going to be coming across the NIC's no matter if its native cifs or iSCSI, the benefits you'll get from native CIFS are going to far outweigh the problems.

aborzenkov
6,552 Views

Returning to your original question - SMVI (Snap Manager for Virtual Infrastucture) does offer efficient backup of VM data files and offers single filer restore as well. One gotcha in your case - NT is not on the list of support guest operating systems ... with all implications. Any chance to update NT to something more up to date that is supported?

You could also manually create snapshots of NFS datastore; this will capture VMDKs in crash-consistent state. For single file restore present (Flex-)clone of VMDK in snapshot to the same or another VM as additional disk. This is effectivelly what SMVI does anyway, just that it automates it for you.

tvmo_tvmo
6,552 Views

aborzenkov wrote:

Returning to your original question - SMVI (Snap Manager for Virtual Infrastucture) does offer efficient backup of VM data files and offers single filer restore as well.

When you say 'data files', what type of data do you mean exactly (SQL, Oracle, Word, Excel, etc)? Upgrading NT 4 is an option on the table, however not for the moment.

aborzenkov wrote:

You could also manually create snapshots of NFS datastore; this will capture VMDKs in crash-consistent state.

     What do you mean by 'manually create snapshost' and 'crash-consistent state'?

aborzenkov wrote

For single file restore present (Flex-)clone of VMDK in snapshot to the same or another VM as additional disk. This is effectivelly what SMVI does anyway, just that it automates it for you.

     I don't have a flexclone license to manage the single file restore through SMVI

I agree, the simplest thing would be to put CIFS on the NetApps but, for reasons I won't go in to, this isn't going to happen. Good point about running more than one protocol over interfaces

Thanks

tvmo_tvmo
6,552 Views

Looks like ther's going to be some cash splashed and NT4 is going.

Instead, the shared data is going to be placed on iSCSI LUNs and mounted to Windows 2008. What's the best way for me to treat backup restore? Just use filer scheduled snapshots or use a SnapDrive script? Can I still use Windows prvious versions?

Any caveats?

Thanks

aborzenkov
6,552 Views

You can’t use Windows Previous Versions (I really wish we could; I do not know whether this is Windows or NetApp limitation).

You can use snapshots but keep in mind that recovery is rather awkward. To recover individual files you need manually map snapshot containing needed file. As there is not catalog to list available file versions, you are left with trial and error. It is possible that there is backup software that integrates and supports use of LUN snapshots on NetApp; those I am aware of (NetWorker, NetBackup, BackupExec) do not.

So I would use snapshots more or less for disaster protection and rely on standard operating system level file backup for daily use.

tvmo_tvmo
4,956 Views

Sorry I'm late getting back to this thread and thanks for all your replies.

Things have moved on a bit:

1. I'm looking to keep the file data on VMDK (in a NFS datastore) and using SMVI and flexclone (we've finally purchased a license!) for backup/restore

2. One issue I'm struggling with is getting a granular backup of the file data to tape. Is my only option here to run a backup client agent like Backup Exec within the guest OS?

Thanks

radek_kubka
4,956 Views

2. One issue I'm struggling with is getting a granular backup of the file data to tape. Is my only option here to run a backup client agent like Backup Exec within the guest OS?

If by 'granular' you mean file-level incremental backups, then yes, you need some sort of backup agent to basically read & set archive bits (to recognise changed files).

Why would you do that though? IMHO NetApp snapshots are good enough for everyday backup & restore needs, whilst backup to tape ticks the box for keeping data copy off-site, to enable DR recovery, should entire site suffer a major disaster (e.g. fire, flood, etc.). The likelihood of such incident is fairly small, so doing full backup to tape, say, weekly sounds to me like a reasonable approach.

Regards,
Radek

aborzenkov
4,956 Views

It could theoretically be scripted ... something along the lines

  • create flexclone of original datastore
  • present it to (another?) ESX
  • mount vmdk's snapshots on backup server
  • backup using whatever software and policies are required

This would give incremental backup of every snapshot.

Such backup could even be offloaded to non-ESX server - there is nice NetApp feature that allows presenting file on volume (vmdk-flat in this case) as LUN.

Of course I completely agree that snapshots are best suited for day to day incremental backups.

tvmo_tvmo
4,957 Views

Guys thanks very much for replying.

Why would I want to explore this approach? Not my choice, it comes down to money. Backup to disk is more expensive than using tape.

I'de like to explore Aborzenkov's script suggetion:

  • "Mount vmdk's snapshots on backup server" - how would you do this?
  • "Backup using whatever software and policies are required" - can you expand on this please?
  • "There is nice NetApp feature that allows presenting file on volume (vmdk-flat in this case) as LUN." - not sure what you mean here, can you explain please?

Thanks

Public