Yes, the folder structure will be recreated 'above' the files. I guess
it may not be possible to restore an empty directory....
There is also a limit of 1024 files selected this way to restore, or NBU
again turns off DAR. You can break your restore up into lists of 1024
files, or you can increase the limit, see below...also it may not
apply....
It looks like this limit was raised at 5.1MP2 and I think 4.5FP9 - the
release notes say that for a NetApp more than 1024 files can be restored
using DAR - does not say what if any the limit is now.
You can use bplist to produce a list to feed to bprestore, but if the file
names contain spaces you have to treat it with awk to prefix each line
with the character count of each file path.
Here are some notes from the Admin Guide:
Notes on DAR
$B"!(B DAR can be used when restoring backups that were made by NetBackup
4.5GA or
later. Starting with NetBackup 4.5GA, NetBackup stores the required DAR
offset
information on each backup.
Note For backups made by pre-4.5GA versions of NetBackup, restores cannot
use DAR,
because the pre-4.5 versions did not store the DAR offset information.
$B"!(B DAR can be used when restoring files, but not when restoring
directories.
$B"!(B Backups must have been performed with the NetBackup catalog set to
binary mode.
For backups made with the catalog set to ASCII mode, restores cannot use
DAR,
because ASCII mode did not store the required DAR offset information on
each
backup. Note that all backups made prior to NetBackup 4.5 used ASCII
catalog mode.
$B"!(B To use DAR with NetBackup, the NDMP host you want to restore must
support DAR.
Some NDMP host vendors do not currently support DAR.
Troubleshooting DAR
In certain situations, one of the following messages may appear in the
unified logs for
ndmpagent (originator ID 134) on the NetBackup media server. These are
also written to
the progress log.
Message:
DAR disabled - Number of paths n > DAR_MAXIMUM_FILE_LIST_COUNT x
Explanation:
The number of files being restored is greater than the maximum allowed
(default is 1024).
You can either select fewer files for the restore, or increase the DAR
maximum Backup
Selections list count. (Increasing the maximum is not supported by some
NDMP host
vendors.)
To increase the DAR maximum Backup Selections list count, place a
?DAR_MAXIMUM_FILE_ LIST_COUNT x? entry in the following file and specify x
as a
number greater than 1024.
On UNIX:
/usr/openv/netbackup/db/config/ndmp.cfg
On Windows:
install_path\NetBackup\db\config\ndmp.cfg
Message:
DAR disabled - not supported by NDMP host
Explanation:
The current NDMP host does not support DAR.
Message:
DAR disabled - unable to retrieve DAR info
Explanation:
DAR information is not available for the file.
Message:
DAR disabled - Backup performed prior to NB 4.5
Explanation:
The DAR feature can be used when restoring backups that were made by
NetBackup
4.5GA or later. Starting with NetBackup 4.5GA, NetBackup stores the
required DAR offset
information on each backup. For backups made by pre-4.5GA versions of
NetBackup,
restores cannot use DAR, because the pre-4.5 versions did not store the
DAR offset
information.
Message:
DAR disabled - NDMP host did not provide DAR info during backup
Explanation:
The backup was performed with an NDMP host version that does not support
DAR. Ask
the NDMP host vendor if a later NAS software version is available that
supports DAR.
Message:
DAR disabled - Optimal DAR parameters exceeded for this image size
Explanation:
NetBackup determined that the restore would take longer with DAR than
without it.
Message:
DAR disabled - Directory DAR not supported
Explanation:
DAR is automatically disabled when a restore job specifies a directory to
restore. DAR can
be used when restoring files, but not when restoring directories.
Message:
DAR disabled by DAR config file
Explanation:
DAR was disabled by adding the entry NDMP_DAR_DISABLED to the following
file:
On UNIX:
/usr/openv/netbackup/db/config/ndmp.cfg
On Windows:
install_path\NetBackup\db\config\ndmp.cfg
This method of disabling DAR is obsolete. Use the Host Properties dialog
as explained
under ?Enabling/Disabling DAR? on page 40.
Message:
DAR disabled by host parameters
Explanation:
DAR was disabled on the Master or Media Server Properties dialog.
To re-enable DAR, see ?Enabling/Disabling DAR? on page 40.
William D L Brown
Mark.Donaldson AT cexp DOT com
14-Dec-2005 17:51
To
william.d.brown AT gsk DOT com, veritas-bu AT mailman.eng.auburn DOT edu
cc
Subject
RE: [Veritas-bu] time for NDMP restores
We're looking into this (NDMP backups) and the "can't restore a directory"
problem might be an issue.
If you want to restore a directory, then, you have to find every file from
that point down & restore it individually? Will it create missing
subdirectories, ie:
restoredir/file1
restoredir/file2
restoredir/subdir1/file1
restoredir/subdir1/file2
...If the above was your list of files to be restored, does "subdir1" get
created?
-M
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of
william.d.brown AT gsk DOT com
Sent: Wednesday, December 14, 2005 10:45 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] time for NDMP restores
Did you request to restore files or folders? DAR is not supported for
directory restores - so it is *very* important that you pick files to
restore, and never folders. Otherwise it scans the whole tape, even if it
already found what you wanted.
William D L Brown
"Paul Keating" <pkeating AT bank-banque-canada DOT ca>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
14-Dec-2005 16:29
To
veritas-bu AT mailman.eng.auburn DOT edu
cc
Subject
[Veritas-bu] time for NDMP restores
Hi all.
it's been years since I've worked with NDMP much (NB 3.x and Auspex file
servers), with 32 and 64 gig filessytems
so I'm re-learning everything with NetApp, NB5.0 and TB+ filesystems, and
refreshing lots of old memories.
seems a restore, even of a couple files from a 600+ Gig FS backup (home
directoy FS) takes HOURS....like 5-7 hours.
The progress monitor shows the tape mounted, positioned, etc, then sits
there for hours with no KB/s or KB restored reported, then, bam, it's
done.
this more or less normal?
If so, do you folks have SLAs that account for this kind of timeframe for
restores?
or do you you snapshots exclusively for restores of user data and only use
tape for DR?
Paul
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|